; 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\sc32f1xxx_vref.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\sc32f1xxx_vref.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\sc32f1xxx_vref.crf ..\FWLib\SC32F1XXX_Lib\src\sc32f1xxx_vref.c]
                          THUMB

                          AREA ||i.Vref_DIVENCmd||, CODE, READONLY, ALIGN=1

                  Vref_DIVENCmd PROC
;;;127     */
;;;128    void Vref_DIVENCmd(VREF_TypeDef* Vrefx, FunctionalState NewState)
000000  2900              CMP      r1,#0
;;;129    {
;;;130    	  assert_param(IS_Vref_ALL_PERIPH(Vrefx));
;;;131        assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;132        if(NewState != SC_DISABLE)
000002  d004              BEQ      |L1.14|
;;;133        {
;;;134            Vrefx->VREF_CFG |= VREF_CFG_DIVEN;
000004  6802              LDR      r2,[r0,#0]
000006  2340              MOVS     r3,#0x40
000008  431a              ORRS     r2,r2,r3
00000a  6002              STR      r2,[r0,#0]
00000c  e003              B        |L1.22|
                  |L1.14|
;;;135        }
;;;136        else
;;;137        {
;;;138            Vrefx->VREF_CFG &= (~(VREF_CFG_DIVEN));
00000e  6802              LDR      r2,[r0,#0]
000010  2340              MOVS     r3,#0x40
000012  439a              BICS     r2,r2,r3
000014  6002              STR      r2,[r0,#0]
                  |L1.22|
;;;139        }
;;;140    }
000016  4770              BX       lr
;;;141    #endif
                          ENDP


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

                  Vref_ReferenceVoltageConfig PROC
;;;70      */
;;;71     ErrorStatus Vref_ReferenceVoltageConfig(VREF_TypeDef* Vrefx, Vref_ReferenceVoltage_TypeDef Vref_ReferenceVoltage)
000000  b510              PUSH     {r4,lr}
;;;72     {
000002  4602              MOV      r2,r0
000004  460b              MOV      r3,r1
;;;73          uint32_t tmpreg = 0;
000006  2100              MOVS     r1,#0
;;;74     	
;;;75         /* Check the parameters */
;;;76         assert_param(IS_Vref_ALL_PERIPH(Vrefx));
;;;77         assert_param(IS_Vref_ReferenceVoltage(Vref_ReferenceVoltage));
;;;78         
;;;79     
;;;80         tmpreg  =   Vrefx->VREF_CFG;
000008  6811              LDR      r1,[r2,#0]
;;;81         tmpreg &= ~(VREF_CFG_VREFS|0x03);
00000a  0909              LSRS     r1,r1,#4
00000c  0109              LSLS     r1,r1,#4
;;;82         tmpreg |= (uint32_t)Vref_ReferenceVoltage;
00000e  4608              MOV      r0,r1
000010  4318              ORRS     r0,r0,r3
000012  4601              MOV      r1,r0
;;;83         Vrefx->VREF_CFG =  tmpreg;
000014  6011              STR      r1,[r2,#0]
;;;84     	 if((VREF->VREF_CFG & 0x03)==0x01)
000016  480a              LDR      r0,|L2.64|
000018  69c0              LDR      r0,[r0,#0x1c]
00001a  0780              LSLS     r0,r0,#30
00001c  0f80              LSRS     r0,r0,#30
00001e  2801              CMP      r0,#1
000020  d10b              BNE      |L2.58|
;;;85     	 {
;;;86     		 if((uint8_t)(VREF->VREF_CFG & VREF_CFG_VREFS) == ((Vref_ReferenceVoltage)&0xFC))
000022  4807              LDR      r0,|L2.64|
000024  69c0              LDR      r0,[r0,#0x1c]
000026  240c              MOVS     r4,#0xc
000028  4020              ANDS     r0,r0,r4
00002a  24fc              MOVS     r4,#0xfc
00002c  401c              ANDS     r4,r4,r3
00002e  42a0              CMP      r0,r4
000030  d101              BNE      |L2.54|
;;;87     				return SC_SUCCESS;
000032  2000              MOVS     r0,#0
                  |L2.52|
;;;88     		 else
;;;89     				return SC_ERROR;
;;;90        }
;;;91     	 else
;;;92     		 return SC_SUCCESS;
;;;93     }
000034  bd10              POP      {r4,pc}
                  |L2.54|
000036  2001              MOVS     r0,#1                 ;89
000038  e7fc              B        |L2.52|
                  |L2.58|
00003a  2000              MOVS     r0,#0                 ;92
00003c  e7fa              B        |L2.52|
;;;94     
                          ENDP

00003e  0000              DCW      0x0000
                  |L2.64|
                          DCD      0x40022180

                          AREA ||i.Vref_VMIDCmd||, CODE, READONLY, ALIGN=1

                  Vref_VMIDCmd PROC
;;;105     */
;;;106    void Vref_VMIDCmd(VREF_TypeDef* Vrefx, FunctionalState NewState)
000000  2900              CMP      r1,#0
;;;107    {
;;;108        assert_param(IS_Vref_ALL_PERIPH(Vrefx));
;;;109        assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;110        if(NewState != SC_DISABLE)
000002  d004              BEQ      |L3.14|
;;;111        {
;;;112            Vrefx->VREF_CFG |= VREF_CFG_VMIDEN;
000004  6802              LDR      r2,[r0,#0]
000006  2320              MOVS     r3,#0x20
000008  431a              ORRS     r2,r2,r3
00000a  6002              STR      r2,[r0,#0]
00000c  e003              B        |L3.22|
                  |L3.14|
;;;113        }
;;;114        else
;;;115        {
;;;116            Vrefx->VREF_CFG &= (~(VREF_CFG_VMIDEN));
00000e  6802              LDR      r2,[r0,#0]
000010  2320              MOVS     r3,#0x20
000012  439a              BICS     r2,r2,r3
000014  6002              STR      r2,[r0,#0]
                  |L3.22|
;;;117        }
;;;118    }
000016  4770              BX       lr
;;;119    /**
                          ENDP


;*** Start embedded assembler ***

#line 1 "..\\FWLib\\SC32F1XXX_Lib\\src\\sc32f1xxx_vref.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___16_sc32f1xxx_vref_c_c90bffd3____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___16_sc32f1xxx_vref_c_c90bffd3____REV16| PROC
#line 464

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
