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

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

                  LCD_Cmd PROC
;;;131     */
;;;132    void LCD_Cmd(FunctionalState NewState)
000000  4905              LDR      r1,|L1.24|
;;;133    {
;;;134      /* Check the parameters */
;;;135      assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;136    
;;;137      if(NewState != DISABLE)
000002  2800              CMP      r0,#0
;;;138      {
;;;139        /* Enable the LCD_LED Counter */
;;;140        LCD_LED->DDR_CON |= DDR_CON_DDRON;
;;;141      }
;;;142      else
;;;143      {
;;;144        /* Disable the LCD_LED Counter */
;;;145        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              ;140
00000a  4310              ORRS     r0,r0,r2              ;140
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]            ;140
;;;146      }
;;;147    }
000014  4770              BX       lr
;;;148    
                          ENDP

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

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

                  LCD_CustomModeScan PROC
;;;181     */
;;;182    void LCD_CustomModeScan(void)
000000  4803              LDR      r0,|L2.16|
;;;183    {
;;;184      LCD_LED->DDR_CON |= DDR_CON_TRICOM;
000002  6801              LDR      r1,[r0,#0]
000004  2201              MOVS     r2,#1
000006  0392              LSLS     r2,r2,#14
000008  4311              ORRS     r1,r1,r2
00000a  6001              STR      r1,[r0,#0]
;;;185    }
00000c  4770              BX       lr
;;;186    
                          ENDP

00000e  0000              DCW      0x0000
                  |L2.16|
                          DCD      0x40022280

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

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


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

                  LCD_Init PROC
;;;56      */
;;;57     void LCD_Init(LCD_InitTypeDef* LCD_InitStruct)
000000  b510              PUSH     {r4,lr}
;;;58     {
;;;59       uint32_t tmpreg;
;;;60     
;;;61       /* Check the parameters */
;;;62       assert_param(IS_LCD_FRAMEFRE(LCD_InitStruct->LCD_FrameFre));
;;;63       assert_param(IS_LCD_DUTY(LCD_InitStruct->LCD_Duty));
;;;64     
;;;65       /*---------------------------- LCD_LEDx DDR_CON Configuration ------------------------*/
;;;66       /* Get the LCD_LEDx DDR_CON value */
;;;67       tmpreg = LCD_LED->DDR_CON;
000002  490d              LDR      r1,|L4.56|
000004  680a              LDR      r2,[r1,#0]
;;;68     
;;;69       /* Clear DMOD,BIAS,VOIRSIF,TYPE,DDRCK and TRIMODE bits */
;;;70       tmpreg &= (uint32_t) ~(DDR_CON_DMOD | DDR_CON_TYPE | DDR_CON_DDRCK | DDR_CON_TRIMODE);
000006  4b0d              LDR      r3,|L4.60|
;;;71     
;;;72       /* Configure LCD_LEDx: */
;;;73       /* Set DMOD bit to LCD_LED_MOD value */
;;;74       /* Set DDRCK,TRIMODE and TRIMODE bit to LCD_LED_FrameFre value */
;;;75       /* Set BIAS bit to LED_BiasVoltage value */
;;;76       /* Set VOIRSF bit to LED_VOIRSIF value */
;;;77       tmpreg |= (uint32_t)(LCD_InitStruct->LCD_FrameFre |
000008  88c4              LDRH     r4,[r0,#6]
00000a  401a              ANDS     r2,r2,r3              ;70
00000c  8803              LDRH     r3,[r0,#0]
00000e  4323              ORRS     r3,r3,r4
000010  8884              LDRH     r4,[r0,#4]
000012  4314              ORRS     r4,r4,r2
000014  4323              ORRS     r3,r3,r4
;;;78                            LCD_InitStruct->LCD_Bias | LCD_InitStruct->LCD_VOIRSIF);
;;;79     
;;;80       /* Write to LCD_LEDx DDR_CON */
;;;81       LCD_LED->DDR_CON = tmpreg;
000016  600b              STR      r3,[r1,#0]
;;;82     
;;;83       /*---------------------------- LCD_LEDx DDR_CFG Configuration ------------------------*/
;;;84       /* Get the LCD_LEDx DDR_CFG value */
;;;85       tmpreg = LCD_LED->DDR_CFG;
000018  684a              LDR      r2,[r1,#4]
;;;86     
;;;87       /* Clear DUTY,VOIRS and SCS bits */
;;;88       tmpreg &= (uint32_t) ~(DDR_CFG_DMOD | DDR_CFG_DUTY  | DDR_CFG_SCS);
00001a  23b3              MOVS     r3,#0xb3
00001c  439a              BICS     r2,r2,r3
;;;89     
;;;90       /* Configure LCD_LEDx: */
;;;91       /* Set DUTY bits to LCD_MOD value */
;;;92       /* Set VOIRS bits to LCD_ResSel value */
;;;93       /* Set SCS bits to LCD_Voltage value */
;;;94       tmpreg |= (uint32_t)(LCD_InitStruct->LCD_ResSel |
00001e  8903              LDRH     r3,[r0,#8]
000020  8844              LDRH     r4,[r0,#2]
000022  4323              ORRS     r3,r3,r4
000024  8944              LDRH     r4,[r0,#0xa]
000026  0224              LSLS     r4,r4,#8
000028  4314              ORRS     r4,r4,r2
00002a  4323              ORRS     r3,r3,r4
;;;95                            LCD_InitStruct->LCD_Duty | (LCD_InitStruct->LCD_Voltage << DDR_CFG_VLCD_Pos));
;;;96     
;;;97       /* Write to LCD_LEDx DDR_CON */
;;;98       LCD_LED->DDR_CFG = tmpreg;
00002c  604b              STR      r3,[r1,#4]
;;;99     
;;;100      /* Write to LCD_LEDx SEG_EN */
;;;101      LCD_LED->SEG_EN = LCD_InitStruct->LCD_SegPin;
00002e  6902              LDR      r2,[r0,#0x10]
000030  608a              STR      r2,[r1,#8]
;;;102    
;;;103      /* Write to LCD_LEDx COM_EN */
;;;104      LCD_LED->COM_EN = LCD_InitStruct->LCD_ComPin;
000032  68c0              LDR      r0,[r0,#0xc]
000034  6108              STR      r0,[r1,#0x10]
;;;105    }
000036  bd10              POP      {r4,pc}
;;;106    
                          ENDP

                  |L4.56|
                          DCD      0x40022280
                  |L4.60|
                          DCD      0xffff7cee

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

                  LCD_StructInit PROC
;;;112      */
;;;113    void LCD_StructInit(LCD_InitTypeDef* LCD_InitStruct)
000000  2100              MOVS     r1,#0
;;;114    {
;;;115      /* Set the default configuration */
;;;116    	LCD_InitStruct->LCD_Bias = LCD_Bias_1_4;
000002  80c1              STRH     r1,[r0,#6]
;;;117    	LCD_InitStruct->LCD_ComPin = LCD_Channel_Less;
;;;118    	LCD_InitStruct->LCD_Duty = LCD_Duty_1_8;
000004  60c1              STR      r1,[r0,#0xc]
000006  8041              STRH     r1,[r0,#2]
;;;119    	LCD_InitStruct->LCD_FrameFre = LCD_FrameFre_B64Hz;
000008  8001              STRH     r1,[r0,#0]
;;;120    	LCD_InitStruct->LCD_ResSel = LCD_ResSel_33K;
00000a  8101              STRH     r1,[r0,#8]
;;;121    	LCD_InitStruct->LCD_SegPin =  LCD_Channel_Less;
;;;122    	LCD_InitStruct->LCD_VOIRSIF= LCD_VOIRSIF_Disable;
00000c  6101              STR      r1,[r0,#0x10]
00000e  8081              STRH     r1,[r0,#4]
;;;123    	LCD_InitStruct->LCD_Voltage = 0;
000010  8141              STRH     r1,[r0,#0xa]
;;;124    }
000012  4770              BX       lr
;;;125    
                          ENDP


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

                  LCD_Write PROC
;;;170     */
;;;171    void LCD_Write(LCD_RAMRegister_Typedef LCD_RAMRegister, uint8_t LCD_LED_Data)
000000  4a02              LDR      r2,|L6.12|
;;;172    {
;;;173      LCD_LED->SEGRn[LCD_RAMRegister] = LCD_LED_Data;
000002  0080              LSLS     r0,r0,#2
000004  1880              ADDS     r0,r0,r2
000006  6301              STR      r1,[r0,#0x30]
;;;174    }
000008  4770              BX       lr
;;;175    
                          ENDP

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

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
