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

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

                  LINCalChecksum PROC
;;;874     */
;;;875    uint8_t LINCalChecksum ( uint8_t id, uint8_t *data, uint8_t len )
000000  b5f7              PUSH     {r0-r2,r4-r7,lr}
;;;876    {
000002  460e              MOV      r6,r1
000004  4617              MOV      r7,r2
;;;877        uint32_t sum = LIN_CalID ( id );
000006  9800              LDR      r0,[sp,#0]
000008  f7fffffe          BL       LIN_CalID
00000c  4604              MOV      r4,r0
;;;878        uint8_t i = 0;
00000e  2500              MOVS     r5,#0
;;;879    
;;;880        for ( i = 0; i < len; i++ )
000010  bf00              NOP      
000012  e00a              B        |L1.42|
                  |L1.20|
;;;881        {
;;;882            sum += data[i];
000014  5d70              LDRB     r0,[r6,r5]
000016  1904              ADDS     r4,r0,r4
;;;883            if ( sum & 0xFF00 )
000018  20ff              MOVS     r0,#0xff
00001a  0200              LSLS     r0,r0,#8
00001c  4020              ANDS     r0,r0,r4
00001e  2800              CMP      r0,#0
000020  d001              BEQ      |L1.38|
;;;884            {
;;;885                sum = ( sum & 0x00FF ) + 1;
000022  b2e0              UXTB     r0,r4
000024  1c44              ADDS     r4,r0,#1
                  |L1.38|
000026  1c68              ADDS     r0,r5,#1              ;880
000028  b2c5              UXTB     r5,r0                 ;880
                  |L1.42|
00002a  42bd              CMP      r5,r7                 ;880
00002c  dbf2              BLT      |L1.20|
;;;886            }
;;;887        }
;;;888    
;;;889        sum ^= 0x00FF;
00002e  20ff              MOVS     r0,#0xff
000030  4044              EORS     r4,r4,r0
;;;890        return ( uint8_t ) sum;
000032  b2e0              UXTB     r0,r4
;;;891    }
000034  bdfe              POP      {r1-r7,pc}
;;;892    #endif
                          ENDP


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

                  LIN_CalID PROC
;;;855     */
;;;856    uint8_t LIN_CalID ( uint8_t id )
000000  b530              PUSH     {r4,r5,lr}
;;;857    {
000002  4601              MOV      r1,r0
;;;858        uint8_t parity = 0, p0 = 0, p1 = 0;
000004  2000              MOVS     r0,#0
000006  2200              MOVS     r2,#0
000008  2300              MOVS     r3,#0
;;;859    
;;;860        parity = id;
00000a  4608              MOV      r0,r1
;;;861        p0 = (uint8_t)(( BIT ( parity, 0 ) ^ BIT ( parity, 1 ) ^ BIT ( parity, 2 ) ^ BIT ( parity, 4 ) ) << 6);
00000c  07c4              LSLS     r4,r0,#31
00000e  0fe4              LSRS     r4,r4,#31
000010  0785              LSLS     r5,r0,#30
000012  0fed              LSRS     r5,r5,#31
000014  406c              EORS     r4,r4,r5
000016  0745              LSLS     r5,r0,#29
000018  0fed              LSRS     r5,r5,#31
00001a  406c              EORS     r4,r4,r5
00001c  06c5              LSLS     r5,r0,#27
00001e  0fed              LSRS     r5,r5,#31
000020  406c              EORS     r4,r4,r5
000022  01a2              LSLS     r2,r4,#6
;;;862        p1 = (uint8_t)(( ! ( BIT ( parity, 1 ) ^ BIT ( parity, 3 ) ^ BIT ( parity, 4 ) ^ BIT ( parity, 5 ) ) ) << 7);
000024  0784              LSLS     r4,r0,#30
000026  0fe4              LSRS     r4,r4,#31
000028  0705              LSLS     r5,r0,#28
00002a  0fed              LSRS     r5,r5,#31
00002c  406c              EORS     r4,r4,r5
00002e  06c5              LSLS     r5,r0,#27
000030  0fed              LSRS     r5,r5,#31
000032  406c              EORS     r4,r4,r5
000034  0685              LSLS     r5,r0,#26
000036  0fed              LSRS     r5,r5,#31
000038  406c              EORS     r4,r4,r5
00003a  2501              MOVS     r5,#1
00003c  406c              EORS     r4,r4,r5
00003e  01e3              LSLS     r3,r4,#7
;;;863    
;;;864        parity |= ( p0 | p1 );
000040  4614              MOV      r4,r2
000042  431c              ORRS     r4,r4,r3
000044  4320              ORRS     r0,r0,r4
;;;865    
;;;866        return parity;
;;;867    }
000046  bd30              POP      {r4,r5,pc}
;;;868    /**
                          ENDP


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

                  UART_ClearFlag PROC
;;;644     */
;;;645    void UART_ClearFlag ( UART_TypeDef* UARTx, uint16_t UART_FLAG )
000000  6041              STR      r1,[r0,#4]
;;;646    {
;;;647        /* Check the parameters */
;;;648        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;649    
;;;650        /* Clear the flags */
;;;651        UARTx->UART_STS = ( uint16_t ) UART_FLAG;
;;;652    	
;;;653    #if (UARTOptSwitch)
;;;654    #if defined(SC32f10xx)
;;;655    		if(UARTx == UART0)
;;;656    		{
;;;657    				/* Restore the UART RX status */
;;;658            UARTx->UART_CON |= RXStatus;
;;;659    		}
;;;660    #elif defined(SC32f12xx)
;;;661    		if((UARTx == UART1) && ((UART1->UART_CON & UART_CON_SPOS) == 0))
;;;662    		{
;;;663    				/* Restore the UART RX status */
;;;664            UARTx->UART_CON |= RXStatus;
;;;665    		}
;;;666    #elif defined(SC32f15xx)
;;;667    		if((UARTx == UART0) && ((UART0->UART_CON & UART_CON_SPOS) == 0))
000002  4a08              LDR      r2,|L3.36|
000004  4290              CMP      r0,r2
000006  d10c              BNE      |L3.34|
000008  4a06              LDR      r2,|L3.36|
00000a  3a20              SUBS     r2,r2,#0x20
00000c  6a12              LDR      r2,[r2,#0x20]
00000e  2301              MOVS     r3,#1
000010  035b              LSLS     r3,r3,#13
000012  401a              ANDS     r2,r2,r3
000014  2a00              CMP      r2,#0
000016  d104              BNE      |L3.34|
;;;668    		{
;;;669    				/* Restore the UART RX status */
;;;670            UARTx->UART_CON |= RXStatus;
000018  6802              LDR      r2,[r0,#0]
00001a  4b03              LDR      r3,|L3.40|
00001c  681b              LDR      r3,[r3,#0]  ; RXStatus
00001e  431a              ORRS     r2,r2,r3
000020  6002              STR      r2,[r0,#0]
                  |L3.34|
;;;671    		}
;;;672    #endif
;;;673    #endif
;;;674    }
000022  4770              BX       lr
;;;675    
                          ENDP

                  |L3.36|
                          DCD      0x40020020
                  |L3.40|
                          DCD      RXStatus

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

                  UART_DMACmd PROC
;;;692     */
;;;693    void UART_DMACmd ( UART_TypeDef* UARTx, uint16_t UART_DMAReq, FunctionalState NewState )
000000  b510              PUSH     {r4,lr}
;;;694    {
;;;695        /* Check the parameters */
;;;696        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;697        assert_param ( IS_UART_DMAREQ ( UART_DMAReq ) );
;;;698        assert_param ( IS_FUNCTIONAL_STATE ( NewState ) );
;;;699    
;;;700        if ( NewState != SC_DISABLE )
000002  2a00              CMP      r2,#0
000004  d003              BEQ      |L4.14|
;;;701        {
;;;702            /* Enable the DMA transfer for selected requests by setting the DMAT and/or
;;;703               DMAR bits in the UART IDE register */
;;;704            UARTx->UART_IDE |= UART_DMAReq;
000006  6903              LDR      r3,[r0,#0x10]
000008  430b              ORRS     r3,r3,r1
00000a  6103              STR      r3,[r0,#0x10]
00000c  e004              B        |L4.24|
                  |L4.14|
;;;705        }
;;;706        else
;;;707        {
;;;708            /* Disable the DMA transfer for selected requests by clearing the DMAT and/or
;;;709               DMAR bits in the UART IDE register */
;;;710            UARTx->UART_IDE &= ( uint16_t ) ~UART_DMAReq;
00000e  6903              LDR      r3,[r0,#0x10]
000010  43cc              MVNS     r4,r1
000012  b2a4              UXTH     r4,r4
000014  4023              ANDS     r3,r3,r4
000016  6103              STR      r3,[r0,#0x10]
                  |L4.24|
;;;711        }
;;;712    }
000018  bd10              POP      {r4,pc}
;;;713    
                          ENDP


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

                  UART_DeInit PROC
;;;56      */
;;;57     void UART_DeInit ( UART_TypeDef* UARTx )
000000  b510              PUSH     {r4,lr}
;;;58     {
000002  4604              MOV      r4,r0
;;;59         assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;60     
;;;61         if ( UARTx == UART0 )
000004  4812              LDR      r0,|L5.80|
000006  4284              CMP      r4,r0
000008  d108              BNE      |L5.28|
;;;62         {
;;;63             /* Enable UART0 reset state */
;;;64             RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART0, SC_ENABLE );
00000a  2101              MOVS     r1,#1
00000c  2040              MOVS     r0,#0x40
00000e  f7fffffe          BL       RCC_APB0PeriphResetCmd
;;;65             /* Release UART0 from reset state */
;;;66             RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART0, SC_DISABLE );
000012  2100              MOVS     r1,#0
000014  2040              MOVS     r0,#0x40
000016  f7fffffe          BL       RCC_APB0PeriphResetCmd
00001a  e017              B        |L5.76|
                  |L5.28|
;;;67         }
;;;68         else if ( UARTx == UART1 )
00001c  480c              LDR      r0,|L5.80|
00001e  3060              ADDS     r0,r0,#0x60
000020  4284              CMP      r4,r0
000022  d108              BNE      |L5.54|
;;;69         {
;;;70             /* Enable UART1 reset state */
;;;71             RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART1, SC_ENABLE );
000024  2101              MOVS     r1,#1
000026  2080              MOVS     r0,#0x80
000028  f7fffffe          BL       RCC_APB0PeriphResetCmd
;;;72             /* Release UART1 from reset state */
;;;73             RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART1, SC_DISABLE );
00002c  2100              MOVS     r1,#0
00002e  2080              MOVS     r0,#0x80
000030  f7fffffe          BL       RCC_APB0PeriphResetCmd
000034  e00a              B        |L5.76|
                  |L5.54|
;;;74         }
;;;75         else if ( UARTx == UART2 )
000036  4807              LDR      r0,|L5.84|
000038  4284              CMP      r4,r0
00003a  d107              BNE      |L5.76|
;;;76         {
;;;77             /* Enable UART2 reset state */
;;;78             RCC_APB1PeriphResetCmd ( RCC_APB1Periph_UART2, SC_ENABLE );
00003c  2101              MOVS     r1,#1
00003e  2080              MOVS     r0,#0x80
000040  f7fffffe          BL       RCC_APB1PeriphResetCmd
;;;79             /* Release UART2 from reset state */
;;;80             RCC_APB1PeriphResetCmd ( RCC_APB1Periph_UART2, SC_DISABLE );
000044  2100              MOVS     r1,#0
000046  2080              MOVS     r0,#0x80
000048  f7fffffe          BL       RCC_APB1PeriphResetCmd
                  |L5.76|
;;;81         }
;;;82     #if !defined(SC32f15xx)
;;;83         else if ( UARTx == UART3 )
;;;84         {
;;;85             /* Enable UART3 reset state */
;;;86             RCC_APB2PeriphResetCmd ( RCC_APB2Periph_UART3, SC_ENABLE );
;;;87             /* Release UART3 from reset state */
;;;88             RCC_APB2PeriphResetCmd ( RCC_APB2Periph_UART3, SC_DISABLE );
;;;89         }
;;;90     #endif
;;;91     #if defined(SC32f12xx)
;;;92         if ( UARTx == UART4 )
;;;93         {
;;;94             /* Enable UART0 reset state */
;;;95             RCC_APB1PeriphResetCmd ( RCC_APB1Periph_UART4, SC_ENABLE );
;;;96             /* Release UART0 from reset state */
;;;97             RCC_APB1PeriphResetCmd ( RCC_APB1Periph_UART4, SC_DISABLE );
;;;98         }
;;;99         else if ( UARTx == UART5 )
;;;100        {
;;;101            /* Enable UART5 reset state */
;;;102            RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART5, SC_ENABLE );
;;;103            /* Release UART5 from reset state */
;;;104            RCC_APB0PeriphResetCmd ( RCC_APB0Periph_UART5, SC_DISABLE );
;;;105        }
;;;106    #endif
;;;107    }
00004c  bd10              POP      {r4,pc}
;;;108    
                          ENDP

00004e  0000              DCW      0x0000
                  |L5.80|
                          DCD      0x40020020
                  |L5.84|
                          DCD      0x40021020

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

                  UART_GetFlagStatus PROC
;;;602     */
;;;603    FlagStatus UART_GetFlagStatus ( UART_TypeDef* UARTx, UART_FLAG_TypeDef UART_FLAG )
000000  4602              MOV      r2,r0
;;;604    {
;;;605        ITStatus bitstatus = SC_RESET;
000002  2000              MOVS     r0,#0
;;;606        /* Check the parameters */
;;;607        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;608        assert_param ( IS_GET_UART_FLAG ( UART_FLAG ) );
;;;609    
;;;610        if ( ( UARTx->UART_STS & UART_FLAG ) != ( uint16_t ) SC_RESET )
000004  6853              LDR      r3,[r2,#4]
000006  400b              ANDS     r3,r3,r1
000008  2b00              CMP      r3,#0
00000a  d001              BEQ      |L6.16|
;;;611        {
;;;612            bitstatus = SC_SET;
00000c  2001              MOVS     r0,#1
00000e  e000              B        |L6.18|
                  |L6.16|
;;;613        }
;;;614        else
;;;615        {
;;;616            bitstatus = SC_RESET;
000010  2000              MOVS     r0,#0
                  |L6.18|
;;;617        }
;;;618        return bitstatus;
;;;619    }
000012  4770              BX       lr
;;;620    
                          ENDP


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

                  UART_ITConfig PROC
;;;561     */
;;;562    void UART_ITConfig ( UART_TypeDef* UARTx, uint16_t UART_IT, FunctionalState NewState )
000000  b510              PUSH     {r4,lr}
;;;563    {
;;;564        /* Check the parameters */
;;;565        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;566        assert_param ( IS_UART_IT ( UART_IT ) );
;;;567        assert_param ( IS_FUNCTIONAL_STATE ( NewState ) );
;;;568    
;;;569        if ( NewState != SC_DISABLE )
000002  2a00              CMP      r2,#0
000004  d003              BEQ      |L7.14|
;;;570        {
;;;571            /* Enable the Interrupt sources */
;;;572            UARTx->UART_IDE |= UART_IT;
000006  6903              LDR      r3,[r0,#0x10]
000008  430b              ORRS     r3,r3,r1
00000a  6103              STR      r3,[r0,#0x10]
00000c  e004              B        |L7.24|
                  |L7.14|
;;;573        }
;;;574        else
;;;575        {
;;;576            /* Disable the Interrupt sources */
;;;577            UARTx->UART_IDE &= ( uint16_t ) ~UART_IT;
00000e  6903              LDR      r3,[r0,#0x10]
000010  43cc              MVNS     r4,r1
000012  b2a4              UXTH     r4,r4
000014  4023              ANDS     r3,r3,r4
000016  6103              STR      r3,[r0,#0x10]
                  |L7.24|
;;;578        }
;;;579    }
000018  bd10              POP      {r4,pc}
;;;580    
                          ENDP


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

                  UART_Init PROC
;;;125     */
;;;126    void UART_Init ( UART_TypeDef* UARTx, UART_InitTypeDef* UART_InitStruct )
000000  b570              PUSH     {r4-r6,lr}
;;;127    {
000002  4604              MOV      r4,r0
000004  460d              MOV      r5,r1
;;;128        uint32_t tmpreg = 0;
000006  2600              MOVS     r6,#0
;;;129        /* Check the parameters */
;;;130        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;131        assert_param ( IS_UART_Mode ( UART_InitStruct->UART_Mode ) );
;;;132    
;;;133        tmpreg = UARTx->UART_CON;
000008  6826              LDR      r6,[r4,#0]
;;;134        tmpreg &= ( uint32_t ) ~ ( UART_CON_SM01 | UART_CON_SM2 );
00000a  08f6              LSRS     r6,r6,#3
00000c  00f6              LSLS     r6,r6,#3
;;;135        tmpreg |= ( uint32_t ) ( UART_InitStruct->UART_Mode );
00000e  68a8              LDR      r0,[r5,#8]
000010  4306              ORRS     r6,r6,r0
;;;136        UARTx->UART_CON = tmpreg;
000012  6026              STR      r6,[r4,#0]
;;;137    
;;;138        if ( UART_InitStruct->UART_Mode == UART_Mode_8B )
000014  68a8              LDR      r0,[r5,#8]
000016  2800              CMP      r0,#0
000018  d10c              BNE      |L8.52|
;;;139        {
;;;140            assert_param ( IS_UART_PRESCALER ( UART_InitStruct->UART_BaudRate ) );
;;;141    			
;;;142    				if(UART_InitStruct->UART_BaudRate == UART_PRESCALER_12)
00001a  6868              LDR      r0,[r5,#4]
00001c  2800              CMP      r0,#0
00001e  d104              BNE      |L8.42|
;;;143    				{
;;;144    						UARTx->UART_CON &= ~ ( uint32_t ) UART_CON_PERSCALER;
000020  6820              LDR      r0,[r4,#0]
000022  2110              MOVS     r1,#0x10
000024  4388              BICS     r0,r0,r1
000026  6020              STR      r0,[r4,#0]
000028  e01a              B        |L8.96|
                  |L8.42|
;;;145    				}
;;;146    				else
;;;147    				{
;;;148    						UARTx->UART_CON |= ( uint32_t ) UART_CON_PERSCALER;
00002a  6820              LDR      r0,[r4,#0]
00002c  2110              MOVS     r1,#0x10
00002e  4308              ORRS     r0,r0,r1
000030  6020              STR      r0,[r4,#0]
000032  e015              B        |L8.96|
                  |L8.52|
;;;149    				}
;;;150        }
;;;151        else
;;;152        {
;;;153    				if(UART_InitStruct->UART_BaudRate != 0)
000034  6868              LDR      r0,[r5,#4]
000036  2800              CMP      r0,#0
000038  d012              BEQ      |L8.96|
;;;154    				{
;;;155    						tmpreg = ( UART_InitStruct->UART_ClockFrequency / UART_InitStruct->UART_BaudRate );
00003a  6869              LDR      r1,[r5,#4]
00003c  6828              LDR      r0,[r5,#0]
00003e  f7fffffe          BL       __aeabi_uidivmod
000042  4606              MOV      r6,r0
;;;156    						if ( tmpreg > 65535 )
000044  4807              LDR      r0,|L8.100|
000046  4286              CMP      r6,r0
000048  d905              BLS      |L8.86|
;;;157    						{
;;;158    								UARTx->UART_CON |= ( uint32_t ) UART_CON_PERSCALER;
00004a  6820              LDR      r0,[r4,#0]
00004c  2110              MOVS     r1,#0x10
00004e  4308              ORRS     r0,r0,r1
000050  6020              STR      r0,[r4,#0]
;;;159    								tmpreg = tmpreg / 16;
000052  0936              LSRS     r6,r6,#4
000054  e003              B        |L8.94|
                  |L8.86|
;;;160    						}
;;;161    						else
;;;162    						{
;;;163    								UARTx->UART_CON &= ~ ( uint32_t ) UART_CON_PERSCALER;
000056  6820              LDR      r0,[r4,#0]
000058  2110              MOVS     r1,#0x10
00005a  4388              BICS     r0,r0,r1
00005c  6020              STR      r0,[r4,#0]
                  |L8.94|
;;;164    						}
;;;165    						UARTx->UART_BAUD = tmpreg;
00005e  60a6              STR      r6,[r4,#8]
                  |L8.96|
;;;166    				} 
;;;167        }
;;;168    }
000060  bd70              POP      {r4-r6,pc}
;;;169    
                          ENDP

000062  0000              DCW      0x0000
                  |L8.100|
                          DCD      0x0000ffff

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

                  UART_LIN_BKSIZE PROC
;;;762     */
;;;763    void UART_LIN_BKSIZE ( UART_TypeDef* UARTx, UART_BKSIZE_TypeDef BKSIZE )
000000  b510              PUSH     {r4,lr}
;;;764    {
000002  4602              MOV      r2,r0
;;;765        uint32_t temp = 0;
000004  2000              MOVS     r0,#0
;;;766        /* Check the parameters */
;;;767        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;768        assert_param ( IS_UART_BKSIZE ( BKSIZE ) );
;;;769    
;;;770        if ( UARTx == UART2 )
000006  4b08              LDR      r3,|L9.40|
000008  429a              CMP      r2,r3
00000a  d10c              BNE      |L9.38|
;;;771        {
;;;772            temp = UART2->UART_CON;
00000c  4b06              LDR      r3,|L9.40|
00000e  3b20              SUBS     r3,r3,#0x20
000010  6a18              LDR      r0,[r3,#0x20]
;;;773            temp &= ~UART_CON_BKSIZE;
000012  0554              LSLS     r4,r2,#21
000014  4603              MOV      r3,r0
000016  43a3              BICS     r3,r3,r4
000018  4618              MOV      r0,r3
;;;774            temp |= BKSIZE;
00001a  4603              MOV      r3,r0
00001c  430b              ORRS     r3,r3,r1
00001e  4618              MOV      r0,r3
;;;775            /**/
;;;776            UART2->UART_CON = temp;
000020  4b01              LDR      r3,|L9.40|
000022  3b20              SUBS     r3,r3,#0x20
000024  6218              STR      r0,[r3,#0x20]
                  |L9.38|
;;;777        }
;;;778    
;;;779    }
000026  bd10              POP      {r4,pc}
;;;780    
                          ENDP

                  |L9.40|
                          DCD      0x40021020

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

                  UART_LIN_LBDL PROC
;;;834     */
;;;835    void UART_LIN_LBDL ( UART_TypeDef* UARTx, UART_LBDL_TypeDef LBDL )
000000  b510              PUSH     {r4,lr}
;;;836    {
000002  4602              MOV      r2,r0
;;;837        uint32_t temp = 0;
000004  2000              MOVS     r0,#0
;;;838        /* Check the parameters */
;;;839        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;840        assert_param ( IS_UART_LBDL ( LBDL ) );
;;;841    
;;;842        if ( UARTx == UART2 )
000006  4b09              LDR      r3,|L10.44|
000008  429a              CMP      r2,r3
00000a  d10d              BNE      |L10.40|
;;;843        {
;;;844            temp = UART2->UART_CON;
00000c  4b07              LDR      r3,|L10.44|
00000e  3b20              SUBS     r3,r3,#0x20
000010  6a18              LDR      r0,[r3,#0x20]
;;;845            temp &= ~UART_CON_LBDL;
000012  2401              MOVS     r4,#1
000014  04a4              LSLS     r4,r4,#18
000016  4603              MOV      r3,r0
000018  43a3              BICS     r3,r3,r4
00001a  4618              MOV      r0,r3
;;;846            temp |= LBDL;
00001c  4603              MOV      r3,r0
00001e  430b              ORRS     r3,r3,r1
000020  4618              MOV      r0,r3
;;;847            UART2->UART_CON = temp;
000022  4b02              LDR      r3,|L10.44|
000024  3b20              SUBS     r3,r3,#0x20
000026  6218              STR      r0,[r3,#0x20]
                  |L10.40|
;;;848        }
;;;849    }
000028  bd10              POP      {r4,pc}
;;;850    
                          ENDP

00002a  0000              DCW      0x0000
                  |L10.44|
                          DCD      0x40021020

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

                  UART_LIN_MODE PROC
;;;738    
;;;739    void UART_LIN_MODE ( UART_TypeDef* UARTx, UART_LINMODE_TypeDef UART_LINMODE )
000000  4602              MOV      r2,r0
;;;740    {
;;;741        uint32_t temp = 0;
000002  2000              MOVS     r0,#0
;;;742        /* Check the parameters */
;;;743        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;744        assert_param ( IS_UART_LINMODE ( UART_LINMODE ) );
;;;745    
;;;746        if ( UARTx == UART2 )
000004  4b07              LDR      r3,|L11.36|
000006  429a              CMP      r2,r3
000008  d10a              BNE      |L11.32|
;;;747        {
;;;748            temp = UART2->UART_CON;
00000a  4b06              LDR      r3,|L11.36|
00000c  3b20              SUBS     r3,r3,#0x20
00000e  6a18              LDR      r0,[r3,#0x20]
;;;749            temp &= ~ ( UART_CON_SLVEN | UART_CON_FUNCSEL );
000010  4b05              LDR      r3,|L11.40|
000012  4018              ANDS     r0,r0,r3
;;;750            temp |= UART_LINMODE;
000014  4603              MOV      r3,r0
000016  430b              ORRS     r3,r3,r1
000018  4618              MOV      r0,r3
;;;751            UART2->UART_CON = temp;
00001a  4b02              LDR      r3,|L11.36|
00001c  3b20              SUBS     r3,r3,#0x20
00001e  6218              STR      r0,[r3,#0x20]
                  |L11.32|
;;;752        }
;;;753    }
000020  4770              BX       lr
;;;754    /**
                          ENDP

000022  0000              DCW      0x0000
                  |L11.36|
                          DCD      0x40021020
                  |L11.40|
                          DCD      0xfffefeff

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

                  UART_LIN_SLVARENE PROC
;;;799     */
;;;800    void UART_LIN_SLVARENE ( UART_TypeDef* UARTx, FunctionalState NewState )
000000  4a0c              LDR      r2,|L12.52|
;;;801    {
;;;802    
;;;803        /* Check the parameters */
;;;804        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;805    
;;;806        if ( UARTx == UART2 )
000002  4290              CMP      r0,r2
000004  d114              BNE      |L12.48|
;;;807        {
;;;808            if ( NewState != SC_DISABLE )
000006  2900              CMP      r1,#0
000008  d009              BEQ      |L12.30|
;;;809            {
;;;810                /* Enable the DMA transfer for selected requests by setting the DMAT and/or
;;;811                   DMAR bits in the UART IDE register */
;;;812                UART2->UART_CON |= UART_CON_SLVAREN;
00000a  4a0a              LDR      r2,|L12.52|
00000c  3a20              SUBS     r2,r2,#0x20
00000e  6a12              LDR      r2,[r2,#0x20]
000010  2301              MOVS     r3,#1
000012  045b              LSLS     r3,r3,#17
000014  431a              ORRS     r2,r2,r3
000016  4b07              LDR      r3,|L12.52|
000018  3b20              SUBS     r3,r3,#0x20
00001a  621a              STR      r2,[r3,#0x20]
00001c  e008              B        |L12.48|
                  |L12.30|
;;;813            }
;;;814            else
;;;815            {
;;;816                /* Disable the DMA transfer for selected requests by clearing the DMAT and/or
;;;817                   DMAR bits in the UART IDE register */
;;;818                UART2->UART_CON &= ( uint32_t ) ~UART_CON_SLVAREN;
00001e  4a05              LDR      r2,|L12.52|
000020  3a20              SUBS     r2,r2,#0x20
000022  6a12              LDR      r2,[r2,#0x20]
000024  2301              MOVS     r3,#1
000026  045b              LSLS     r3,r3,#17
000028  439a              BICS     r2,r2,r3
00002a  4b02              LDR      r3,|L12.52|
00002c  3b20              SUBS     r3,r3,#0x20
00002e  621a              STR      r2,[r3,#0x20]
                  |L12.48|
;;;819            }
;;;820    
;;;821    
;;;822        }
;;;823    
;;;824    }
000030  4770              BX       lr
;;;825    
                          ENDP

000032  0000              DCW      0x0000
                  |L12.52|
                          DCD      0x40021020

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

                  UART_PinRemapConfig PROC
;;;491     */
;;;492    void UART_PinRemapConfig ( UART_TypeDef* UARTx, UART_PinRemap_TypeDef UART_Remap )
000000  b510              PUSH     {r4,lr}
;;;493    {
000002  460a              MOV      r2,r1
;;;494        uint32_t tmpreg = 0;
000004  2100              MOVS     r1,#0
;;;495    
;;;496        /* Check the parameters */
;;;497    #if defined(SC32f10xx)
;;;498        if ( UARTx == UART2 )
;;;499        {
;;;500            tmpreg = UARTx->UART_CON;
;;;501    
;;;502            tmpreg &= ( uint32_t ) ( ~UART_CON_SPOS );
;;;503    
;;;504            tmpreg |= UART_Remap;
;;;505    
;;;506            UARTx->UART_CON = tmpreg;
;;;507        }
;;;508    
;;;509    #elif defined(SC32f12xx)||defined(SC32f15xx)
;;;510        tmpreg = UARTx->UART_CON;
000006  6801              LDR      r1,[r0,#0]
;;;511    
;;;512        tmpreg &= ( uint32_t ) ( ~UART_CON_SPOS );
000008  2401              MOVS     r4,#1
00000a  0364              LSLS     r4,r4,#13
00000c  460b              MOV      r3,r1
00000e  43a3              BICS     r3,r3,r4
000010  4619              MOV      r1,r3
;;;513    
;;;514        tmpreg |= UART_Remap;
000012  460b              MOV      r3,r1
000014  4313              ORRS     r3,r3,r2
000016  4619              MOV      r1,r3
;;;515    
;;;516        UARTx->UART_CON = tmpreg;
000018  6001              STR      r1,[r0,#0]
;;;517    		
;;;518    #endif
;;;519    }
00001a  bd10              POP      {r4,pc}
;;;520    
                          ENDP


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

                  UART_RXCmd PROC
;;;331     */
;;;332    void UART_RXCmd ( UART_TypeDef* UARTx, FunctionalState NewState )
000000  4a0f              LDR      r2,|L14.64|
;;;333    {
;;;334        /* Check the parameters */
;;;335        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;336        assert_param ( IS_FUNCTIONAL_STATE ( NewState ) );
;;;337    
;;;338    		/* If it is the programming port UART and no pin mapping has been performed,
;;;339      	   set the RX output to low */
;;;340    #if (UARTOptSwitch)
;;;341    #if defined(SC32f10xx)
;;;342    		if(UARTx == UART0)
;;;343    		{
;;;344    				PC_BIT(2) = 0;
;;;345    				GPIOC->PXCON |= ( uint32_t )0x00000004;
;;;346    		}
;;;347    #elif defined(SC32f12xx)
;;;348    		if((UARTx == UART1) && ((UART1->UART_CON & UART_CON_SPOS) == 0))
;;;349    		{
;;;350    				PA_BIT(15) = 0;
;;;351    				GPIOA->PXCON |= ( uint32_t )0x00008000;
;;;352    		}
;;;353    #elif defined(SC32f15xx)
;;;354    		if((UARTx == UART0) && ((UART0->UART_CON & UART_CON_SPOS) == 0))
000002  4290              CMP      r0,r2
000004  d10f              BNE      |L14.38|
000006  4a0e              LDR      r2,|L14.64|
000008  3a20              SUBS     r2,r2,#0x20
00000a  6a12              LDR      r2,[r2,#0x20]
00000c  2301              MOVS     r3,#1
00000e  035b              LSLS     r3,r3,#13
000010  401a              ANDS     r2,r2,r3
000012  2a00              CMP      r2,#0
000014  d107              BNE      |L14.38|
;;;355    		{
;;;356    				PC_BIT(7) = 0;
000016  4b0b              LDR      r3,|L14.68|
000018  71da              STRB     r2,[r3,#7]
;;;357    				GPIOC->PXCON |= ( uint32_t )0x00000080;
00001a  461a              MOV      r2,r3
00001c  6a12              LDR      r2,[r2,#0x20]
00001e  2380              MOVS     r3,#0x80
000020  431a              ORRS     r2,r2,r3
000022  4b08              LDR      r3,|L14.68|
000024  621a              STR      r2,[r3,#0x20]
                  |L14.38|
;;;358    		}
;;;359    #endif
;;;360    #endif
;;;361    	
;;;362        if ( NewState != SC_DISABLE )
000026  2900              CMP      r1,#0
000028  d004              BEQ      |L14.52|
;;;363        {
;;;364            /* Enable the UART RX Function */
;;;365            UARTx->UART_CON |= UART_CON_RXEN;
00002a  6802              LDR      r2,[r0,#0]
00002c  2340              MOVS     r3,#0x40
00002e  431a              ORRS     r2,r2,r3
000030  6002              STR      r2,[r0,#0]
000032  e003              B        |L14.60|
                  |L14.52|
;;;366        }
;;;367        else
;;;368        {
;;;369            /* Disable the UART RX Function */
;;;370            UARTx->UART_CON &= ~UART_CON_RXEN;
000034  6802              LDR      r2,[r0,#0]
000036  2340              MOVS     r3,#0x40
000038  439a              BICS     r2,r2,r3
00003a  6002              STR      r2,[r0,#0]
                  |L14.60|
;;;371        }
;;;372    }
00003c  4770              BX       lr
;;;373    
                          ENDP

00003e  0000              DCW      0x0000
                  |L14.64|
                          DCD      0x40020020
                  |L14.68|
                          DCD      0x40011200

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

                  UART_ReceiveData PROC
;;;450     */
;;;451    uint16_t UART_ReceiveData ( UART_TypeDef* UARTx )
000000  4601              MOV      r1,r0
;;;452    {
;;;453        /* Check the parameters */
;;;454        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;455    
;;;456        /* Receive Data */
;;;457        return ( uint16_t ) ( UARTx->UART_DATA & ( uint16_t ) 0x01FF );
000002  68c8              LDR      r0,[r1,#0xc]
000004  05c0              LSLS     r0,r0,#23
000006  0dc0              LSRS     r0,r0,#23
;;;458    }
000008  4770              BX       lr
;;;459    
                          ENDP


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

                  UART_SendBreak PROC
;;;784     */
;;;785    void UART_SendBreak()
000000  4803              LDR      r0,|L16.16|
;;;786    {
;;;787        UART2->UART_CON |= UART_CON_BKTR;
000002  6a00              LDR      r0,[r0,#0x20]
000004  2101              MOVS     r1,#1
000006  0609              LSLS     r1,r1,#24
000008  4308              ORRS     r0,r0,r1
00000a  4901              LDR      r1,|L16.16|
00000c  6208              STR      r0,[r1,#0x20]
;;;788    }
00000e  4770              BX       lr
;;;789    
                          ENDP

                  |L16.16|
                          DCD      0x40021000

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

                  UART_SendData PROC
;;;399     */
;;;400    void UART_SendData ( UART_TypeDef* UARTx, uint16_t Data )
000000  4a0b              LDR      r2,|L17.48|
;;;401    {
;;;402        /* Check the parameters */
;;;403        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;404    	
;;;405    #if (UARTOptSwitch)
;;;406    #if defined(SC32f10xx)
;;;407    		if(UARTx == UART0)
;;;408    		{
;;;409    				/* Save the RX status */
;;;410    				RXStatus = UARTx->UART_CON & ( uint32_t ) UART_CON_RXEN;
;;;411    				/* Disable the UART RX Function */
;;;412            UARTx->UART_CON &= ~UART_CON_RXEN;
;;;413    		}
;;;414    #elif defined(SC32f12xx)
;;;415    		if((UARTx == UART1) && ((UART1->UART_CON & UART_CON_SPOS) == 0))
;;;416    		{
;;;417    				/* Save the RX status */
;;;418    				RXStatus = UARTx->UART_CON & ( uint32_t ) UART_CON_RXEN;
;;;419    				/* Disable the UART RX Function */
;;;420            UARTx->UART_CON &= ~UART_CON_RXEN;
;;;421    		}
;;;422    #elif defined(SC32f15xx)
;;;423    		if((UARTx == UART0) && ((UART0->UART_CON & UART_CON_SPOS) == 0))
000002  4290              CMP      r0,r2
000004  d110              BNE      |L17.40|
000006  4a0a              LDR      r2,|L17.48|
000008  3a20              SUBS     r2,r2,#0x20
00000a  6a12              LDR      r2,[r2,#0x20]
00000c  2301              MOVS     r3,#1
00000e  035b              LSLS     r3,r3,#13
000010  401a              ANDS     r2,r2,r3
000012  2a00              CMP      r2,#0
000014  d108              BNE      |L17.40|
;;;424    		{
;;;425    				/* Save the RX status */
;;;426    				RXStatus = UARTx->UART_CON & ( uint32_t ) UART_CON_RXEN;
000016  6802              LDR      r2,[r0,#0]
000018  2340              MOVS     r3,#0x40
00001a  401a              ANDS     r2,r2,r3
00001c  4b05              LDR      r3,|L17.52|
00001e  601a              STR      r2,[r3,#0]  ; RXStatus
;;;427    				/* Disable the UART RX Function */
;;;428            UARTx->UART_CON &= ~UART_CON_RXEN;
000020  6802              LDR      r2,[r0,#0]
000022  2340              MOVS     r3,#0x40
000024  439a              BICS     r2,r2,r3
000026  6002              STR      r2,[r0,#0]
                  |L17.40|
;;;429    		}
;;;430    #endif
;;;431    #endif
;;;432    
;;;433        /* Transmit Data */
;;;434        UARTx->UART_DATA = ( Data & ( uint16_t ) 0x01FF );
000028  05ca              LSLS     r2,r1,#23
00002a  0dd2              LSRS     r2,r2,#23
00002c  60c2              STR      r2,[r0,#0xc]
;;;435    }
00002e  4770              BX       lr
;;;436    
                          ENDP

                  |L17.48|
                          DCD      0x40020020
                  |L17.52|
                          DCD      RXStatus

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

                  UART_SetBaudRate PROC
;;;211     */
;;;212    void UART_SetBaudRate(UART_TypeDef* UARTx,
000000  b5f8              PUSH     {r3-r7,lr}
;;;213                          uint32_t ClockFreq,
;;;214                          uint32_t BaudRate)
;;;215    {
000002  4604              MOV      r4,r0
000004  460e              MOV      r6,r1
000006  4617              MOV      r7,r2
;;;216        uint32_t div = 0;
000008  2500              MOVS     r5,#0
;;;217    
;;;218        assert_param(IS_UART_ALL_PERIPH(UARTx));
;;;219    
;;;220        div = ClockFreq / BaudRate;
00000a  4639              MOV      r1,r7
00000c  4630              MOV      r0,r6
00000e  f7fffffe          BL       __aeabi_uidivmod
000012  4605              MOV      r5,r0
;;;221    
;;;222        if(div > 65535)
000014  4807              LDR      r0,|L18.52|
000016  4285              CMP      r5,r0
000018  d905              BLS      |L18.38|
;;;223        {
;;;224            UARTx->UART_CON |= UART_CON_PERSCALER;
00001a  6820              LDR      r0,[r4,#0]
00001c  2110              MOVS     r1,#0x10
00001e  4308              ORRS     r0,r0,r1
000020  6020              STR      r0,[r4,#0]
;;;225            div /= 16;
000022  092d              LSRS     r5,r5,#4
000024  e003              B        |L18.46|
                  |L18.38|
;;;226        }
;;;227        else
;;;228        {
;;;229            UARTx->UART_CON &= ~UART_CON_PERSCALER;
000026  6820              LDR      r0,[r4,#0]
000028  2110              MOVS     r1,#0x10
00002a  4388              BICS     r0,r0,r1
00002c  6020              STR      r0,[r4,#0]
                  |L18.46|
;;;230        }
;;;231    
;;;232        UARTx->UART_BAUD = div;
00002e  60a5              STR      r5,[r4,#8]
;;;233    }
000030  bdf8              POP      {r3-r7,pc}
;;;234    
                          ENDP

000032  0000              DCW      0x0000
                  |L18.52|
                          DCD      0x0000ffff

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

                  UART_SetMode PROC
;;;191     */
;;;192    void UART_SetMode(UART_TypeDef* UARTx, UART_Mode_Typedef Mode)
000000  460a              MOV      r2,r1
;;;193    {
;;;194        uint32_t tmpreg = 0;
000002  2100              MOVS     r1,#0
;;;195    
;;;196        assert_param(IS_UART_ALL_PERIPH(UARTx));
;;;197        assert_param(IS_UART_Mode(Mode));
;;;198    
;;;199        tmpreg = UARTx->UART_CON;
000004  6801              LDR      r1,[r0,#0]
;;;200        tmpreg &= ~(UART_CON_SM01);
000006  0889              LSRS     r1,r1,#2
000008  0089              LSLS     r1,r1,#2
;;;201        tmpreg |= Mode;
00000a  460b              MOV      r3,r1
00000c  4313              ORRS     r3,r3,r2
00000e  4619              MOV      r1,r3
;;;202        UARTx->UART_CON = tmpreg;
000010  6001              STR      r1,[r0,#0]
;;;203    }
000012  4770              BX       lr
;;;204    
                          ENDP


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

                  UART_SetPrescaler PROC
;;;242     */
;;;243    void UART_SetPrescaler(UART_TypeDef* UARTx,
000000  2900              CMP      r1,#0
;;;244                           FunctionalState NewState)
;;;245    {
;;;246        assert_param(IS_UART_ALL_PERIPH(UARTx));
;;;247        assert_param(IS_FUNCTIONAL_STATE(NewState));
;;;248    
;;;249        if(NewState != DISABLE)
000002  d004              BEQ      |L20.14|
;;;250        {
;;;251            UARTx->UART_CON |= UART_CON_PERSCALER;
000004  6802              LDR      r2,[r0,#0]
000006  2310              MOVS     r3,#0x10
000008  431a              ORRS     r2,r2,r3
00000a  6002              STR      r2,[r0,#0]
00000c  e003              B        |L20.22|
                  |L20.14|
;;;252        }
;;;253        else
;;;254        {
;;;255            UARTx->UART_CON &= ~UART_CON_PERSCALER;
00000e  6802              LDR      r2,[r0,#0]
000010  2310              MOVS     r3,#0x10
000012  439a              BICS     r2,r2,r3
000014  6002              STR      r2,[r0,#0]
                  |L20.22|
;;;256        }
;;;257    }
000016  4770              BX       lr
;;;258    
                          ENDP


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

                  UART_StructInit PROC
;;;174     */
;;;175    void UART_StructInit(UART_InitTypeDef* UART_InitStruct)
000000  4903              LDR      r1,|L21.16|
;;;176    {
;;;177        /* Set the default configuration */
;;;178        UART_InitStruct->UART_ClockFrequency = 32000000;  
000002  6001              STR      r1,[r0,#0]
;;;179        UART_InitStruct->UART_BaudRate = 115200;           
000004  21e1              MOVS     r1,#0xe1
000006  0249              LSLS     r1,r1,#9
000008  6041              STR      r1,[r0,#4]
;;;180        UART_InitStruct->UART_Mode = UART_Mode_8B;       
00000a  2100              MOVS     r1,#0
00000c  6081              STR      r1,[r0,#8]
;;;181    }
00000e  4770              BX       lr
;;;182    
                          ENDP

                  |L21.16|
                          DCD      0x01e84800

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

                  UART_TXCmd PROC
;;;275     */
;;;276    void UART_TXCmd ( UART_TypeDef* UARTx, FunctionalState NewState )
000000  4a0c              LDR      r2,|L22.52|
;;;277    {
;;;278        /* Check the parameters */
;;;279        assert_param ( IS_UART_ALL_PERIPH ( UARTx ) );
;;;280        assert_param ( IS_FUNCTIONAL_STATE ( NewState ) );
;;;281    
;;;282    		/* If it is the programming port UART and no pin mapping has been performed, 
;;;283    			 set the TX output to high */
;;;284    #if (UARTOptSwitch)
;;;285    #if defined(SC32f10xx)
;;;286    		if(UARTx == UART0)
;;;287    		{
;;;288    				PC_BIT(3) = 1;
;;;289    		}
;;;290    #elif defined(SC32f12xx)
;;;291    		if((UARTx == UART1) && ((UART1->UART_CON & UART_CON_SPOS) == 0))
;;;292    		{
;;;293    				PB_BIT(1) = 1;
;;;294    		}
;;;295    #elif defined(SC32f15xx)
;;;296    		if((UARTx == UART0) && ((UART0->UART_CON & UART_CON_SPOS) == 0))
000002  4290              CMP      r0,r2
000004  d10a              BNE      |L22.28|
000006  4a0b              LDR      r2,|L22.52|
000008  3a20              SUBS     r2,r2,#0x20
00000a  6a12              LDR      r2,[r2,#0x20]
00000c  2301              MOVS     r3,#1
00000e  035b              LSLS     r3,r3,#13
000010  401a              ANDS     r2,r2,r3
000012  2a00              CMP      r2,#0
000014  d102              BNE      |L22.28|
;;;297    		{
;;;298    				PC_BIT(8) = 1;
000016  2201              MOVS     r2,#1
000018  4b07              LDR      r3,|L22.56|
00001a  721a              STRB     r2,[r3,#8]
                  |L22.28|
;;;299    		}
;;;300    #endif
;;;301    #endif
;;;302    
;;;303        if ( NewState != SC_DISABLE )
00001c  2900              CMP      r1,#0
00001e  d004              BEQ      |L22.42|
;;;304        {
;;;305            /* Enable the UART TX Function */
;;;306            UARTx->UART_CON |= UART_CON_TXEN;
000020  6802              LDR      r2,[r0,#0]
000022  2380              MOVS     r3,#0x80
000024  431a              ORRS     r2,r2,r3
000026  6002              STR      r2,[r0,#0]
000028  e003              B        |L22.50|
                  |L22.42|
;;;307        }
;;;308        else
;;;309        {
;;;310            /* Disable the UART TX Function */
;;;311            UARTx->UART_CON &= ~UART_CON_TXEN;
00002a  6802              LDR      r2,[r0,#0]
00002c  2380              MOVS     r3,#0x80
00002e  439a              BICS     r2,r2,r3
000030  6002              STR      r2,[r0,#0]
                  |L22.50|
;;;312        }
;;;313    }
000032  4770              BX       lr
;;;314    
                          ENDP

                  |L22.52|
                          DCD      0x40020020
                  |L22.56|
                          DCD      0x40011200

                          AREA ||.data||, DATA, ALIGN=2

                  RXStatus
                          DCD      0x00000000

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
