; generated by Component: ARM Compiler 5.06 update 4 (build 422) Tool: ArmCC [4d3604] ; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o.\obj\acmp.o --asm_dir=.\lst\ --list_dir=.\lst\ --depend=.\obj\acmp.d --cpu=Cortex-M0 --apcs=interwork -O3 --diag_suppress=9931 -I..\..\..\Library\CMSIS\Include -I..\..\..\Library\Device\Nuvoton\Mini58Series\Include -I..\..\..\Library\StdDriver\inc -I..\..\Template -I..\..\..\Library\StdDriver\driver -I.\RTE\_Template -ID:\Keil_v5\ARM\PACK\Nuvoton\NuMicro_DFP\1.0.9\Device\Mini58\Include -ID:\Keil_v5\ARM\CMSIS\Include -D__MICROLIB -D__UVISION_VERSION=523 --omf_browse=.\obj\acmp.crf ..\..\..\Library\StdDriver\src\acmp.c] THUMB AREA ||i.ACMP_Close||, CODE, READONLY, ALIGN=2 ACMP_Close PROC ;;;78 */ ;;;79 void ACMP_Close(ACMP_T *acmp, uint32_t u32ChNum) 000000 4803 LDR r0,|L1.16| ;;;80 { ;;;81 ACMP->CTL[u32ChNum] &= (~ACMP_CTL_ACMPEN_Msk); 000002 0089 LSLS r1,r1,#2 000004 1808 ADDS r0,r1,r0 000006 6801 LDR r1,[r0,#0] 000008 0849 LSRS r1,r1,#1 00000a 0049 LSLS r1,r1,#1 00000c 6001 STR r1,[r0,#0] ;;;82 } 00000e 4770 BX lr ;;;83 ENDP |L1.16| DCD 0x400d0000 AREA ||i.ACMP_Open||, CODE, READONLY, ALIGN=2 ACMP_Open PROC ;;;62 */ ;;;63 void ACMP_Open(ACMP_T *acmp, uint32_t u32ChNum, uint32_t u32NegSrc, uint32_t u32HysteresisEn) 000000 b510 PUSH {r4,lr} ;;;64 { ;;;65 if(u32NegSrc != ACMP_VNEG_PIN) ;;;66 ACMP->VREF = u32NegSrc; 000002 480a LDR r0,|L2.44| 000004 2aff CMP r2,#0xff ;65 000006 d000 BEQ |L2.10| 000008 60c2 STR r2,[r0,#0xc] |L2.10| ;;;67 ACMP->CTL[u32ChNum] = (ACMP->CTL[u32ChNum] & (~(ACMP_CTL_NEGSEL_Msk | ACMP_CTL_HYSSEL_Msk))) | 00000a 0089 LSLS r1,r1,#2 00000c 1809 ADDS r1,r1,r0 00000e 6808 LDR r0,[r1,#0] 000010 2414 MOVS r4,#0x14 000012 43a0 BICS r0,r0,r4 000014 2aff CMP r2,#0xff 000016 d001 BEQ |L2.28| ;;;68 ((u32NegSrc != ACMP_VNEG_PIN ? ACMP_CTL_NEGSEL_Msk : 0) | u32HysteresisEn | ACMP_CTL_ACMPEN_Msk); 000018 2210 MOVS r2,#0x10 00001a e000 B |L2.30| |L2.28| 00001c 2200 MOVS r2,#0 |L2.30| 00001e 431a ORRS r2,r2,r3 000020 4310 ORRS r0,r0,r2 000022 2201 MOVS r2,#1 000024 4310 ORRS r0,r0,r2 000026 6008 STR r0,[r1,#0] ;;;69 } 000028 bd10 POP {r4,pc} ;;;70 ENDP 00002a 0000 DCW 0x0000 |L2.44| DCD 0x400d0000 ;*** Start embedded assembler *** #line 1 "..\\..\\..\\Library\\StdDriver\\src\\acmp.c" AREA ||.rev16_text||, CODE THUMB EXPORT |__asm___6_acmp_c_3ee57136____REV16| #line 388 "..\\..\\..\\Library\\CMSIS\\Include\\cmsis_armcc.h" |__asm___6_acmp_c_3ee57136____REV16| PROC #line 389 rev16 r0, r0 bx lr ENDP AREA ||.revsh_text||, CODE THUMB EXPORT |__asm___6_acmp_c_3ee57136____REVSH| #line 402 |__asm___6_acmp_c_3ee57136____REVSH| PROC #line 403 revsh r0, r0 bx lr ENDP ;*** End embedded assembler ***