; generated by Component: ARM Compiler 5.05 update 1 (build 106) Tool: ArmCC [4d0efa]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\stop_idle_wakeup_example.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\stop_idle_wakeup_example.d --cpu=Cortex-M0+ --apcs=interwork --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SC32F10xx\FWLib\SC32_Lib\inc -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SH32F2xx\Include -D__UVISION_VERSION=538 -DSC32F10xx --omf_browse=..\output\stop_idle_wakeup_example.crf ..\Apps\STOP_IDLE_WakeUp_Example.c]
                          THUMB

                          AREA ||i.BTM_WakeUp_BTMHandler||, CODE, READONLY, ALIGN=2

                  BTM_WakeUp_BTMHandler PROC
;;;77     //BTMж
;;;78     void BTM_WakeUp_BTMHandler(void)
000000  b510              PUSH     {r4,lr}
;;;79     {
;;;80     	/* жBTMжǷ */
;;;81     	if(BTM_GetFlagStatus(BTM,BTM_FLAG_IF) == SET)
000002  4c06              LDR      r4,|L1.28|
000004  2101              MOVS     r1,#1
000006  4620              MOV      r0,r4
000008  f7fffffe          BL       BTM_GetFlagStatus
00000c  2801              CMP      r0,#1
00000e  d103              BNE      |L1.24|
;;;82     	{
;;;83     		BTM_ClearFlag(BTM,BTM_FLAG_IF);	//BTMжϱ־
000010  2101              MOVS     r1,#1
000012  4620              MOV      r0,r4
000014  f7fffffe          BL       BTM_ClearFlag
                  |L1.24|
;;;84     	}
;;;85     }
000018  bd10              POP      {r4,pc}
;;;86     
                          ENDP

00001a  0000              DCW      0x0000
                  |L1.28|
                          DCD      0x40022100

                          AREA ||i.INT_WakeUp_INT0Handler||, CODE, READONLY, ALIGN=2

                  INT_WakeUp_INT0Handler PROC
;;;87     //INTж
;;;88     void INT_WakeUp_INT0Handler(void)
000000  b510              PUSH     {r4,lr}
;;;89     {
;;;90       if(INT_GetFlagStatus(INT_Channel_0, INT_Flag_Rising)) //жINT0־λ
000002  2101              MOVS     r1,#1
000004  4608              MOV      r0,r1
000006  f7fffffe          BL       INT_GetFlagStatus
00000a  2800              CMP      r0,#0
00000c  d002              BEQ      |L2.20|
;;;91       {
;;;92     		RT_BIT(0)=0; //INT0жϱ־
00000e  4902              LDR      r1,|L2.24|
000010  2000              MOVS     r0,#0
000012  7008              STRB     r0,[r1,#0]
                  |L2.20|
;;;93       }
;;;94     }
000014  bd10              POP      {r4,pc}
;;;95     
                          ENDP

000016  0000              DCW      0x0000
                  |L2.24|
                          DCD      0x400113e0

                          AREA ||i.STOP_IDLE_WakeUp_Function||, CODE, READONLY, ALIGN=2

                  STOP_IDLE_WakeUp_Function PROC
;;;21     
;;;22     void STOP_IDLE_WakeUp_Function(void)
000000  b51c              PUSH     {r2-r4,lr}
;;;23     {
;;;24     	GPIO_InitTypeDef GPIO_InitStruct; //GPIOʼṹ
;;;25       /* PA10Ϊ */
;;;26       GPIO_InitStruct.GPIO_Pin = GPIO_Pin_10;
000002  2001              MOVS     r0,#1
000004  0280              LSLS     r0,r0,#10
000006  4669              MOV      r1,sp
000008  8008              STRH     r0,[r1,#0]
;;;27       GPIO_InitStruct.GPIO_Mode = GPIO_Mode_OUT_PP;
00000a  2002              MOVS     r0,#2
;;;28       GPIO_Init(GPIOA, &GPIO_InitStruct);
00000c  4c16              LDR      r4,|L3.104|
00000e  8048              STRH     r0,[r1,#2]            ;27
000010  4620              MOV      r0,r4
000012  f7fffffe          BL       GPIO_Init
;;;29     	
;;;30     #if (WakeUp_Mode == 0)
;;;31     	/* BTM */
;;;32     	RCC_Unlock(0xFF);
000016  20ff              MOVS     r0,#0xff
000018  f7fffffe          BL       RCC_Unlock
;;;33     	RCC_LIRCCmd(ENABLE);//ʹLIRC
00001c  2001              MOVS     r0,#1
00001e  f7fffffe          BL       RCC_LIRCCmd
;;;34     	RCC_APB2Cmd(ENABLE);//ʹBTMʱ
000022  2001              MOVS     r0,#1
000024  f7fffffe          BL       RCC_APB2Cmd
;;;35     	
;;;36     	BTM_FSConfig(BTM,BTM_FreqSelect_500MS);//BTMʱʱ
000028  4e10              LDR      r6,|L3.108|
00002a  2105              MOVS     r1,#5
00002c  4630              MOV      r0,r6
00002e  f7fffffe          BL       BTM_FSConfig
;;;37     	BTM_ITConfig(BTM,BTM_IT_INT,ENABLE);//ʹBTMж
000032  2201              MOVS     r2,#1
000034  2140              MOVS     r1,#0x40
000036  4630              MOV      r0,r6
000038  f7fffffe          BL       BTM_ITConfig
00003c  2501              MOVS     r5,#1
00003e  490c              LDR      r1,|L3.112|
000040  2040              MOVS     r0,#0x40
000042  6008              STR      r0,[r1,#0]
;;;38     	NVIC_EnableIRQ(BTM_IRQn);
;;;39     	
;;;40     	BTM_Cmd(BTM,ENABLE);//ʹBTM
000044  4629              MOV      r1,r5
000046  4630              MOV      r0,r6
000048  f7fffffe          BL       BTM_Cmd
                  |L3.76|
;;;41     #elif(WakeUp_Mode == 1)
;;;42     	INT_InitTypeDef INT_InitStruct; //INTʼṹ
;;;43     
;;;44       //PA0Ϊж
;;;45       INT_InitStruct.INT_Channel = INT_Channel_0;
;;;46       INT_InitStruct.INT_INTSEL = INT_INTSEL_PA;
;;;47       INT_InitStruct.INT_Trigger = INT_Trigger_Rising;
;;;48       INT_Init(&INT_InitStruct);
;;;49     	
;;;50     	/* Ӧж */
;;;51       INT_ITConfig(INT_Channel_0, INT_IT_Rising, ENABLE);
;;;52       NVIC_EnableIRQ(INT0_IRQn);
;;;53     	
;;;54     #endif
;;;55     	while(1)
;;;56     	{
;;;57     #if (IC_Mode == 0)
;;;58     	  printf("STOPģʽ\r\n");
00004c  a009              ADR      r0,|L3.116|
00004e  f7fffffe          BL       __2printf
;;;59     		PWR_EnterSTOPMode(PWR_STOPEntry_WFI);//STOPģʽ
000052  2001              MOVS     r0,#1
000054  f7fffffe          BL       PWR_EnterSTOPMode
;;;60     		SC_Init(); //³ʼʱ
000058  f7fffffe          BL       SC_Init
;;;61     		
;;;62     #elif(IC_Mode == 1)
;;;63     		printf("IDLEģʽ\r\n");
;;;64     		PWR_EnterIDLEMode(PWR_IDLEEntry_WFI);//IDLEģʽ	
;;;65     #endif
;;;66     		
;;;67     		PA_OT(10); //PA10ת
00005c  76a5              STRB     r5,[r4,#0x1a]
;;;68     		
;;;69     #if (WakeUp_Mode == 0)
;;;70     		printf("BTMжϻѣ\r\n");
00005e  a00a              ADR      r0,|L3.136|
000060  f7fffffe          BL       __2printf
000064  e7f2              B        |L3.76|
;;;71     #elif(WakeUp_Mode == 1)
;;;72         printf("INTжϻѣ\r\n");
;;;73     #endif
;;;74     	}
;;;75     }
;;;76     
                          ENDP

000066  0000              DCW      0x0000
                  |L3.104|
                          DCD      0x40011000
                  |L3.108|
                          DCD      0x40022100
                  |L3.112|
                          DCD      0xe000e100
                  |L3.116|
000074  bdf8c8eb          DCB      189,248,200,235,"STOP",196,163,202,189,163,161,"\r\n",0
000078  53544f50
00007c  c4a3cabd
000080  a3a10d0a
000084  00      
000085  00                DCB      0
000086  00                DCB      0
000087  00                DCB      0
                  |L3.136|
000088  b1bb4254          DCB      177,187,"BTM",214,208,182,207,187,189,208,209,163,161,"\r"
00008c  4dd6d0b6
000090  cfbbbdd0
000094  d1a3a10d
000098  0a00              DCB      "\n",0
00009a  00                DCB      0
00009b  00                DCB      0

;*** Start embedded assembler ***

#line 1 "..\\Apps\\STOP_IDLE_WakeUp_Example.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___26_STOP_IDLE_WakeUp_Example_c_95f1cd3c____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___26_STOP_IDLE_WakeUp_Example_c_95f1cd3c____REV16| PROC
#line 464

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___26_STOP_IDLE_WakeUp_Example_c_95f1cd3c____REVSH|
#line 478
|__asm___26_STOP_IDLE_WakeUp_Example_c_95f1cd3c____REVSH| PROC
#line 479

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
