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

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

                  PWR_EnterIDLEMode PROC
;;;46       */
;;;47     void PWR_EnterIDLEMode(uint8_t PWR_IDLEEntry)
000000  4906              LDR      r1,|L1.28|
;;;48     {
;;;49       /* Check the parameters */
;;;50       assert_param(IS_PWR_IDLE_ENTRY(PWR_IDLEEntry));
;;;51     
;;;52       /* Reset SLEEPDEEP bit of Cortex System Control Register */
;;;53       SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk); 
000002  690a              LDR      r2,[r1,#0x10]
000004  2304              MOVS     r3,#4
000006  439a              BICS     r2,r2,r3
000008  610a              STR      r2,[r1,#0x10]
;;;54       
;;;55       /* Select SLEEP mode entry -------------------------------------------------*/
;;;56       if(PWR_IDLEEntry == PWR_IDLEEntry_WFI)
00000a  2801              CMP      r0,#1
00000c  d003              BEQ      |L1.22|
;;;57       {
;;;58         /* Request Wait For Interrupt */
;;;59         __WFI();
;;;60       }
;;;61       else
;;;62       {
;;;63         /* Request Wait For Event */
;;;64         __SEV();
00000e  bf40              SEV      
;;;65         __WFE(); 
000010  bf20              WFE      
;;;66         __WFE();
000012  bf20              WFE      
;;;67       }
;;;68     }
000014  4770              BX       lr
                  |L1.22|
000016  bf30              WFI                            ;59
000018  4770              BX       lr
;;;69     
                          ENDP

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

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

                  PWR_EnterSTOPMode PROC
;;;78       */
;;;79     void PWR_EnterSTOPMode(uint8_t PWR_STOPEntry)
000000  4907              LDR      r1,|L2.32|
;;;80     {
;;;81       /* Check the parameters */
;;;82       assert_param(IS_PWR_STOP_ENTRY(PWR_STOPEntry));
;;;83     
;;;84       /* Set STOPDEEP bit of Cortex System Control Register */
;;;85       SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
000002  690b              LDR      r3,[r1,#0x10]
000004  2204              MOVS     r2,#4
000006  4313              ORRS     r3,r3,r2
000008  610b              STR      r3,[r1,#0x10]
;;;86       
;;;87       /* Select STOP mode entry -------------------------------------------------*/
;;;88       if(PWR_STOPEntry == PWR_STOPEntry_WFI)
00000a  2801              CMP      r0,#1
00000c  d006              BEQ      |L2.28|
;;;89       {
;;;90         /* Request Wait For Interrupt */
;;;91         __WFI();
;;;92       }
;;;93       else
;;;94       {
;;;95         /* Request Wait For Event */
;;;96         __SEV();
00000e  bf40              SEV      
;;;97         __WFE(); 
000010  bf20              WFE      
;;;98         __WFE();
000012  bf20              WFE      
                  |L2.20|
;;;99       }
;;;100    	
;;;101      /* Reset STOPDEEP bit of Cortex System Control Register */
;;;102      SCB->SCR &= (uint32_t)~((uint32_t)SCB_SCR_SLEEPDEEP_Msk);  
000014  6908              LDR      r0,[r1,#0x10]
000016  4390              BICS     r0,r0,r2
000018  6108              STR      r0,[r1,#0x10]
;;;103    }
00001a  4770              BX       lr
                  |L2.28|
00001c  bf30              WFI                            ;91
00001e  e7f9              B        |L2.20|
;;;104    
                          ENDP

                  |L2.32|
                          DCD      0xe000ed00

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
