; 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 --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 -DSC32f10xx --omf_browse=..\output\btm_base.crf ..\Apps\BTM_Base.c]
                          THUMB

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

                  BTM_BTMHandler PROC
;;;33     
;;;34     void BTM_BTMHandler(void)
000000  b510              PUSH     {r4,lr}
;;;35     {
;;;36     	/* 判断BTM0中断是否置起 */
;;;37     	if(BTM_GetFlagStatus(BTM,BTM_FLAG_IF) == SET)
000002  4c07              LDR      r4,|L1.32|
000004  2101              MOVS     r1,#1
000006  4620              MOV      r0,r4
000008  f7fffffe          BL       BTM_GetFlagStatus
00000c  2801              CMP      r0,#1
00000e  d106              BNE      |L1.30|
;;;38     	{
;;;39     		BTM_ClearFlag(BTM,BTM_FLAG_IF);	//清除BTM0中断
000010  2101              MOVS     r1,#1
000012  4620              MOV      r0,r4
000014  f7fffffe          BL       BTM_ClearFlag
;;;40     		printf("The BTM interrupt is triggered every 500mS.\r\n");
000018  a002              ADR      r0,|L1.36|
00001a  f7fffffe          BL       __2printf
                  |L1.30|
;;;41     	}
;;;42     }
00001e  bd10              POP      {r4,pc}
                          ENDP

                  |L1.32|
                          DCD      0x40022100
                  |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);
000002  f7fffffe          BL       RCC_APB2Cmd
;;;19     #endif
;;;20     	
;;;21     	/* BTM定时时间设置	*/
;;;22     	BTM_FSConfig(BTM,BTM_FreqSelect_500MS);
000006  4c09              LDR      r4,|L2.44|
000008  2105              MOVS     r1,#5
00000a  4620              MOV      r0,r4
00000c  f7fffffe          BL       BTM_FSConfig
;;;23     	
;;;24     	/* 使能BTM中断 */
;;;25     	BTM_ITConfig(BTM,BTM_IT_INT,ENABLE);
000010  2201              MOVS     r2,#1
000012  2140              MOVS     r1,#0x40
000014  4620              MOV      r0,r4
000016  f7fffffe          BL       BTM_ITConfig
00001a  4a05              LDR      r2,|L2.48|
00001c  2140              MOVS     r1,#0x40
00001e  6011              STR      r1,[r2,#0]
;;;26     	NVIC_EnableIRQ(BTM_IRQn);
;;;27     	
;;;28     	/* BTM外设初始化 */
;;;29     	BTM_Cmd(BTM,ENABLE);
000020  2101              MOVS     r1,#1
000022  4620              MOV      r0,r4
000024  f7fffffe          BL       BTM_Cmd
                  |L2.40|
;;;30     
;;;31     	while(1);
000028  e7fe              B        |L2.40|
;;;32     }
;;;33     
                          ENDP

00002a  0000              DCW      0x0000
                  |L2.44|
                          DCD      0x40022100
                  |L2.48|
                          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 ***
