Index: LPM_SLEEP/LPM_TEST/prj/MDK/Objects/YC3121_Keil.axf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: LPM_SLEEP/LPM_TEST/prj/MDK/Objects/YC3121_Keil.axf
___________________________________________________________________
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: LPM_SLEEP/LPM_TEST/prj/MDK/YC3121_Keil.uvoptx
===================================================================
--- /YC3121_demo/ModuleDemo/LPM_SLEEP/LPM_TEST/prj/MDK/YC3121_Keil.uvoptx	(revision 573)
+++ /YC3121_demo/ModuleDemo/LPM_SLEEP/LPM_TEST/prj/MDK/YC3121_Keil.uvoptx	(working copy)
@@ -77,7 +77,7 @@
         <tvExpOptDlg>0</tvExpOptDlg>
         <IsCurrentTarget>1</IsCurrentTarget>
       </OPTFL>
-      <CpuCode>0</CpuCode>
+      <CpuCode>7</CpuCode>
       <DebugOpt>
         <uSim>0</uSim>
         <uTrg>1</uTrg>
Index: LPM_SLEEP/LPM_TEST/user/main.c
===================================================================
--- /YC3121_demo/ModuleDemo/LPM_SLEEP/LPM_TEST/user/main.c	(revision 584)
+++ /YC3121_demo/ModuleDemo/LPM_SLEEP/LPM_TEST/user/main.c	(working copy)
@@ -52,7 +52,6 @@
 /* Private variables ---------------------------------------------------------*/
 /* Private function prototypes -----------------------------------------------*/
 void UART_Configuration(void);
-void NVIC_Configuration(void);
 uint8_t IpcReadData(void);
 
 /**
@@ -63,7 +62,6 @@
 int main(void)
 {
 	UART_Configuration();
-	NVIC_Configuration();
 
   MyPrintf("Yichip Yc3121 LPM test Demo V1.0.\r\n");
 	
@@ -72,6 +70,7 @@
 	
 	//step2:enable BT
 	IpcInit();
+	NVIC_EnableIRQ(BT_IRQn);
 	
 	//step3:close unused clk
 	SYSCTRL_AHBPeriphClockCmd(SYSCTRL_AHBPeriph_INTR|SYSCTRL_AHBPeriph_SHA|\
@@ -99,7 +98,9 @@
 			MyPrintf("BT start sleep..............\n\n");
 			
 			BT_Hibernate();
+			NVIC_DisableIRQ(BT_IRQn);
 //			IpcInit(); 通过Ipcinit唤醒BT
+//			NVIC_EnableIRQ(BT_IRQn);
 			first++;			
 		}
 		if(GPIO_ReadInputDataBit(GPIOC, GPIO_Pin_8) == 1)
@@ -147,17 +148,6 @@
 	UART_Init(UART0, &UART_InitStruct);
 }
 
-/**
-  * @brief  NVIC configuration function.
-  * @param  None
-  * @retval None
-  */
-void NVIC_Configuration(void)
-{
-	NVIC_EnableIRQ(BT_IRQn);
-	NVIC_SetPriority(BT_IRQn, 0);
-}
-
 uint8_t IpcReadData(void)
 {
 	MyPrintf("ipc read test\n");
