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

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

                  LED_Cmd PROC
;;;113     */
;;;114    void LED_Cmd(FunctionalState NewState)
000000  4905              LDR      r1,|L1.24|
;;;115    {
;;;116      /* Check the parameters */
;;;117      assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;118    
;;;119      if(NewState != DISABLE)
000002  2800              CMP      r0,#0
;;;120      {
;;;121        /* Enable the LCD_LED Counter */
;;;122        LCD_LED->DDR_CON |= DDR_CON_DDRON;
;;;123      }
;;;124      else
;;;125      {
;;;126        /* Disable the LCD_LED Counter */
;;;127        LCD_LED->DDR_CON &= (uint16_t)~DDR_CON_DDRON;
000004  6808              LDR      r0,[r1,#0]
000006  d002              BEQ      |L1.14|
000008  2280              MOVS     r2,#0x80              ;122
00000a  4310              ORRS     r0,r0,r2              ;122
00000c  e001              B        |L1.18|
                  |L1.14|
00000e  4a03              LDR      r2,|L1.28|
000010  4010              ANDS     r0,r0,r2
                  |L1.18|
000012  6008              STR      r0,[r1,#0]            ;122
;;;128      }
;;;129    }
000014  4770              BX       lr
;;;130    
                          ENDP

000016  0000              DCW      0x0000
                  |L1.24|
                          DCD      0x40022280
                  |L1.28|
                          DCD      0x0000ff7f

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

                  LED_CustomModeScan PROC
;;;163     */
;;;164    void LED_CustomModeScan(void)
000000  2001              MOVS     r0,#1
;;;165    {
;;;166      LCD_LED->DDR_CON = DDR_CON_TRICOM;
000002  4902              LDR      r1,|L2.12|
000004  0380              LSLS     r0,r0,#14
000006  6008              STR      r0,[r1,#0]
;;;167    }
000008  4770              BX       lr
;;;168    
                          ENDP

00000a  0000              DCW      0x0000
                  |L2.12|
                          DCD      0x40022280

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

                  LED_DeInit PROC
;;;38      */
;;;39     void LED_DeInit(void)
000000  b510              PUSH     {r4,lr}
;;;40     {
;;;41       /* Enable LCD_LED reset state */
;;;42       RCC_APB2PeriphResetCmd(RCC_APB2Periph_LCD_LED, ENABLE);
000002  2101              MOVS     r1,#1
000004  2003              MOVS     r0,#3
000006  f7fffffe          BL       RCC_APB2PeriphResetCmd
;;;43       /* Disable LCD_LED reset state */
;;;44       RCC_APB2PeriphResetCmd(RCC_APB2Periph_LCD_LED, DISABLE);
00000a  2100              MOVS     r1,#0
00000c  2003              MOVS     r0,#3
00000e  f7fffffe          BL       RCC_APB2PeriphResetCmd
;;;45     }
000012  bd10              POP      {r4,pc}
;;;46     
                          ENDP


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

                  LED_Init PROC
;;;53      */
;;;54     void LED_Init(LED_InitTypeDef* LED_InitStruct)
000000  b510              PUSH     {r4,lr}
;;;55     {
;;;56       uint32_t tmpreg;
;;;57     	
;;;58       /* Check the parameters */
;;;59       assert_param(IS_LED_FRAMEFRE(LED_InitStruct->LED_FrameFre));
;;;60       assert_param(IS_LED_DUTY(LED_InitStruct->LED_Duty));
;;;61     
;;;62       /*---------------------------- LCD_LEDx DDR_CON Configuration ------------------------*/
;;;63       /* Get the LCD_LEDx DDR_CFG value */
;;;64       tmpreg = LCD_LED->DDR_CON;
000002  490b              LDR      r1,|L4.48|
000004  680a              LDR      r2,[r1,#0]
;;;65     
;;;66       /* Clear DMOD,TYPE,DDRCK and TRIMODE bits */
;;;67       tmpreg &= (uint32_t) ~(DDR_CON_DMOD | DDR_CON_TYPE | DDR_CON_DDRCK | DDR_CON_TRIMODE);
000006  4b0b              LDR      r3,|L4.52|
;;;68     
;;;69       /* Configure LCD_LEDx: */
;;;70       /* Set DMOD bit to LED_MOD value */
;;;71       /* Set DDRCK,TRIMODE and TRIMODE bit to LED_FrameFre value */
;;;72       tmpreg |= (uint32_t)(DDR_CON_DMOD |
000008  2401              MOVS     r4,#1
00000a  401a              ANDS     r2,r2,r3              ;67
00000c  8803              LDRH     r3,[r0,#0]
00000e  4322              ORRS     r2,r2,r4
000010  4313              ORRS     r3,r3,r2
;;;73                            LED_InitStruct->LED_FrameFre);
;;;74       /* Write to LCD_LEDx DDR_CON */
;;;75       LCD_LED->DDR_CON = tmpreg;
000012  600b              STR      r3,[r1,#0]
;;;76     
;;;77       /*---------------------------- LCD_LEDx DDR_CFG Configuration ------------------------*/
;;;78       /* Clear DUTY and BIAS bits */
;;;79       LCD_LED->DDR_CFG &= (uint32_t) ~(DDR_CFG_DUTY  | DDR_CFG_SCS);
000014  684a              LDR      r2,[r1,#4]
000016  23b0              MOVS     r3,#0xb0
000018  439a              BICS     r2,r2,r3
00001a  604a              STR      r2,[r1,#4]
;;;80     
;;;81       /* Configure LCD_LEDx: */
;;;82       /* Set DUTY bits to LED_MOD value */
;;;83       /* Set SCS bit to LED_TPYE value */
;;;84       LCD_LED->DDR_CFG |= (uint32_t)LED_InitStruct->LED_Duty;
00001c  684a              LDR      r2,[r1,#4]
00001e  8843              LDRH     r3,[r0,#2]
000020  431a              ORRS     r2,r2,r3
000022  604a              STR      r2,[r1,#4]
;;;85     
;;;86       /* Write to LCD_LEDx SEG_EN */
;;;87       LCD_LED->SEG_EN = LED_InitStruct->LED_SegPin;
000024  6882              LDR      r2,[r0,#8]
000026  608a              STR      r2,[r1,#8]
;;;88     
;;;89       /* Write to LCD_LEDx COM_EN */
;;;90       LCD_LED->COM_EN = LED_InitStruct->LED_ComPin;
000028  6840              LDR      r0,[r0,#4]
00002a  6108              STR      r0,[r1,#0x10]
;;;91     }
00002c  bd10              POP      {r4,pc}
;;;92     
                          ENDP

00002e  0000              DCW      0x0000
                  |L4.48|
                          DCD      0x40022280
                  |L4.52|
                          DCD      0xffff7cee

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

                  LED_StructInit PROC
;;;98       */
;;;99     void LED_StructInit(LED_InitTypeDef* LED_InitStruct)
000000  2100              MOVS     r1,#0
;;;100    {
;;;101      /* Set the default configuration */
;;;102    	LED_InitStruct->LED_ComPin = LED_Channel_Less;
;;;103    	LED_InitStruct->LED_Duty = LED_Duty_1_8;
000002  6041              STR      r1,[r0,#4]
000004  8041              STRH     r1,[r0,#2]
;;;104    	LED_InitStruct->LED_FrameFre = LED_FrameFre_B64Hz;
000006  8001              STRH     r1,[r0,#0]
;;;105    	LED_InitStruct->LED_SegPin =  LED_Channel_Less;
000008  6081              STR      r1,[r0,#8]
;;;106    }
00000a  4770              BX       lr
;;;107    
                          ENDP


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

                  LED_Write PROC
;;;152     */
;;;153    void LED_Write(LED_RAMRegister_Typedef LED_RAMRegister, uint8_t LED_Data)
000000  4a02              LDR      r2,|L6.12|
;;;154    {
;;;155      LCD_LED->SEGRn[LED_RAMRegister] = LED_Data;
000002  0080              LSLS     r0,r0,#2
000004  1880              ADDS     r0,r0,r2
000006  6301              STR      r1,[r0,#0x30]
;;;156    }
000008  4770              BX       lr
;;;157    
                          ENDP

00000a  0000              DCW      0x0000
                  |L6.12|
                          DCD      0x40022300

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
