; generated by Component: ARM Compiler 5.06 update 7 (build 960) Tool: ArmCC [4d365d]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\btm_base.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\btm_base.d --cpu=Cortex-M0+ --apcs=interwork -O0 --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -IF:\Users\SOC\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\Device\ARM\ARMCM0plus\Include -D__UVISION_VERSION=536 -DARMCM0P -DSC32f15xx --omf_browse=..\output\btm_base.crf ..\Apps\BTM_Base.c]
                          THUMB

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

                  BTM_BTMHandler PROC
;;;36     
;;;37     void BTM_BTMHandler(void)
000000  b510              PUSH     {r4,lr}
;;;38     {
;;;39     	/* жBTM0жǷ */
;;;40     	if(BTM_GetFlagStatus(BTM,BTM_FLAG_IF) == SET)
000002  2101              MOVS     r1,#1
000004  4806              LDR      r0,|L1.32|
000006  f7fffffe          BL       BTM_GetFlagStatus
00000a  2801              CMP      r0,#1
00000c  d106              BNE      |L1.28|
;;;41     	{
;;;42     		BTM_ClearFlag(BTM,BTM_FLAG_IF);	//BTM0ж
00000e  2101              MOVS     r1,#1
000010  4803              LDR      r0,|L1.32|
000012  f7fffffe          BL       BTM_ClearFlag
;;;43     		printf("The BTM interrupt is triggered every 500mS.\r\n");
000016  a003              ADR      r0,|L1.36|
000018  f7fffffe          BL       __2printf
                  |L1.28|
;;;44     	}
;;;45     }
00001c  bd10              POP      {r4,pc}
                          ENDP

00001e  0000              DCW      0x0000
                  |L1.32|
                          DCD      0x40021080
                  |L1.36|
000024  54686520          DCB      "The BTM interrupt is triggered every 500mS.\r\n",0
000028  42544d20
00002c  696e7465
000030  72727570
000034  74206973
000038  20747269
00003c  67676572
000040  65642065
000044  76657279
000048  20353030
00004c  6d532e0d
000050  0a00    
000052  00                DCB      0
000053  00                DCB      0

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

                  BTM_Base_Function PROC
;;;13     
;;;14     void BTM_Base_Function(void)
000000  2001              MOVS     r0,#1
;;;15     {
;;;16     #if defined(SC32f10xx)||defined(SC32f12xx)
;;;17     	/* ʹBTMʱ */
;;;18     	RCC_APB2Cmd(ENABLE);
;;;19     #elif  defined(SC32f15xx)
;;;20       /* ʹBTMʱ */
;;;21     	RCC_APB1Cmd(ENABLE);
000002  f7fffffe          BL       RCC_APB1Cmd
;;;22     #endif
;;;23     	
;;;24     	/* BTMʱʱ	*/
;;;25     	BTM_FSConfig(BTM,BTM_FreqSelect_500MS);
000006  2105              MOVS     r1,#5
000008  480b              LDR      r0,|L2.56|
00000a  f7fffffe          BL       BTM_FSConfig
;;;26     	
;;;27     	/* ʹBTMж */
;;;28     	BTM_ITConfig(BTM,BTM_IT_INT,ENABLE);
00000e  2201              MOVS     r2,#1
000010  2140              MOVS     r1,#0x40
000012  4809              LDR      r0,|L2.56|
000014  f7fffffe          BL       BTM_ITConfig
;;;29     	NVIC_EnableIRQ(BTM_IRQn);
000018  2006              MOVS     r0,#6
00001a  2800              CMP      r0,#0
00001c  db05              BLT      |L2.42|
00001e  06c2              LSLS     r2,r0,#27
000020  0ed2              LSRS     r2,r2,#27
000022  2101              MOVS     r1,#1
000024  4091              LSLS     r1,r1,r2
000026  4a05              LDR      r2,|L2.60|
000028  6011              STR      r1,[r2,#0]
                  |L2.42|
00002a  bf00              NOP      
;;;30     	
;;;31     	/* BTMʼ */
;;;32     	BTM_Cmd(BTM,ENABLE);
00002c  2101              MOVS     r1,#1
00002e  4802              LDR      r0,|L2.56|
000030  f7fffffe          BL       BTM_Cmd
;;;33     
;;;34     	while(1);
000034  bf00              NOP      
                  |L2.54|
000036  e7fe              B        |L2.54|
;;;35     }
;;;36     
                          ENDP

                  |L2.56|
                          DCD      0x40021080
                  |L2.60|
                          DCD      0xe000e100

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
