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

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

                  GPIO_DeInit PROC
;;;53      */
;;;54     void GPIO_DeInit ( GPIO_TypeDef* GPIOx )
000000  6a01              LDR      r1,[r0,#0x20]
;;;55     {
;;;56         /* Check the parameters */
;;;57         assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;58     
;;;59         /* Deinitializes the GPIOx PXCON register to their default reset values. */
;;;60         GPIOx->PXCON &= ( uint32_t ) ( ~GPIO_PIN_All );
000002  0c09              LSRS     r1,r1,#16
000004  0409              LSLS     r1,r1,#16
000006  6201              STR      r1,[r0,#0x20]
;;;61         /* Deinitializes the GPIOx PXPH register to their default reset values. */
;;;62         GPIOx->PXPH &= ( uint32_t ) ( ~GPIO_PIN_All );
000008  6c01              LDR      r1,[r0,#0x40]
00000a  0c09              LSRS     r1,r1,#16
00000c  0409              LSLS     r1,r1,#16
00000e  6401              STR      r1,[r0,#0x40]
;;;63         /* Deinitializes the GPIOx PIN register to their default reset values. */
;;;64         GPIOx->PIN &= ( uint32_t ) ( ~GPIO_PIN_All );
000010  6801              LDR      r1,[r0,#0]
000012  0c09              LSRS     r1,r1,#16
000014  0409              LSLS     r1,r1,#16
000016  6001              STR      r1,[r0,#0]
;;;65         /* Deinitializes the GPIOx PXLEV register to their default reset values. */
;;;66         GPIOx->PXLEV &= ( uint32_t ) 0x00000000;
000018  6e01              LDR      r1,[r0,#0x60]
00001a  2100              MOVS     r1,#0
00001c  6601              STR      r1,[r0,#0x60]
;;;67     }
00001e  4770              BX       lr
;;;68     
                          ENDP


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

                  GPIO_Init PROC
;;;80      */
;;;81     void GPIO_Init ( GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct )
000000  b570              PUSH     {r4-r6,lr}
;;;82     {
;;;83         uint32_t tmppin = 0, tmppos = 0, tmpreg = 0;
000002  2400              MOVS     r4,#0
000004  2200              MOVS     r2,#0
000006  2300              MOVS     r3,#0
;;;84     
;;;85         /* Check the parameters */
;;;86         assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;87         assert_param ( IS_GPIO_PIN ( GPIO_InitStruct->GPIO_Pin ) );
;;;88         assert_param ( IS_GPIO_MODE ( GPIO_InitStruct->GPIO_Mode ) );
;;;89     
;;;90     		/* If the currently initialized GPIO is the TX pin of the programming port UART, 
;;;91     	     forcibly set the GPIO mode to strong push-pull output, ResetBit the GPIO bit 
;;;92     			 of the tDIO pin on the programming port. */
;;;93     #if (UARTOptSwitch)
;;;94     #if defined(SC32f10xx)
;;;95     		if((GPIOx == GPIOC) && ((GPIO_InitStruct->GPIO_Pin & GPIO_Pin_3) == GPIO_Pin_3))
;;;96     		{
;;;97     				GPIO_InitStruct->GPIO_Pin &= ~GPIO_Pin_3;
;;;98     				PC_BIT(3) = 0;
;;;99     				GPIOx->PXCON |= ( uint32_t ) GPIO_Pin_3;
;;;100    		}
;;;101    #elif defined(SC32f12xx)
;;;102    		if((GPIOx == GPIOB) && ((GPIO_InitStruct->GPIO_Pin & GPIO_Pin_1) == GPIO_Pin_1))
;;;103    		{
;;;104    				GPIO_InitStruct->GPIO_Pin &= ~GPIO_Pin_1;
;;;105    				PB_BIT(1) = 0;
;;;106    				GPIOx->PXCON |= ( uint32_t ) GPIO_Pin_1;
;;;107    		}
;;;108    #elif defined(SC32f15xx)
;;;109    		if((GPIOx == GPIOC) && ((GPIO_InitStruct->GPIO_Pin & GPIO_Pin_8) == GPIO_Pin_8))
000008  4d24              LDR      r5,|L2.156|
00000a  42a8              CMP      r0,r5
00000c  d10e              BNE      |L2.44|
00000e  880d              LDRH     r5,[r1,#0]
000010  1586              ASRS     r6,r0,#22
000012  4035              ANDS     r5,r5,r6
000014  42b5              CMP      r5,r6
000016  d109              BNE      |L2.44|
;;;110    		{
;;;111    				GPIO_InitStruct->GPIO_Pin &= ~GPIO_Pin_8;
000018  880d              LDRH     r5,[r1,#0]
00001a  43b5              BICS     r5,r5,r6
00001c  800d              STRH     r5,[r1,#0]
;;;112    				PC_BIT(8) = 0;
00001e  2500              MOVS     r5,#0
000020  4606              MOV      r6,r0
000022  7235              STRB     r5,[r6,#8]
;;;113    				GPIOx->PXCON |= ( uint32_t ) GPIO_Pin_8;
000024  6a05              LDR      r5,[r0,#0x20]
000026  1586              ASRS     r6,r0,#22
000028  4335              ORRS     r5,r5,r6
00002a  6205              STR      r5,[r0,#0x20]
                  |L2.44|
;;;114    		}
;;;115    #endif
;;;116    #endif
;;;117    
;;;118        if ( GPIO_InitStruct->GPIO_Mode == GPIO_Mode_OUT_PP )
00002c  884d              LDRH     r5,[r1,#2]
00002e  2d02              CMP      r5,#2
000030  d104              BNE      |L2.60|
;;;119        {
;;;120            /* Configure Pins to High-resistance output mode */
;;;121            GPIOx->PXCON |= ( uint32_t ) GPIO_InitStruct->GPIO_Pin;
000032  6a05              LDR      r5,[r0,#0x20]
000034  880e              LDRH     r6,[r1,#0]
000036  4335              ORRS     r5,r5,r6
000038  6205              STR      r5,[r0,#0x20]
00003a  e016              B        |L2.106|
                  |L2.60|
;;;122        }
;;;123        else if ( GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IN_PU )
00003c  884d              LDRH     r5,[r1,#2]
00003e  2d01              CMP      r5,#1
000040  d108              BNE      |L2.84|
;;;124        {
;;;125            /* Configure Pins to Pull-up input mode */
;;;126            GPIOx->PXCON &= ( uint32_t ) ( ~GPIO_InitStruct->GPIO_Pin );
000042  6a05              LDR      r5,[r0,#0x20]
000044  880e              LDRH     r6,[r1,#0]
000046  43b5              BICS     r5,r5,r6
000048  6205              STR      r5,[r0,#0x20]
;;;127            GPIOx->PXPH |= ( uint32_t ) GPIO_InitStruct->GPIO_Pin;
00004a  6c05              LDR      r5,[r0,#0x40]
00004c  880e              LDRH     r6,[r1,#0]
00004e  4335              ORRS     r5,r5,r6
000050  6405              STR      r5,[r0,#0x40]
000052  e00a              B        |L2.106|
                  |L2.84|
;;;128        }
;;;129        else if ( GPIO_InitStruct->GPIO_Mode == GPIO_Mode_IN_HI )
000054  884d              LDRH     r5,[r1,#2]
000056  2d00              CMP      r5,#0
000058  d107              BNE      |L2.106|
;;;130        {
;;;131            /* Configure Pin to High-resistance intput mode */
;;;132            GPIOx->PXCON &= ( uint32_t ) ( ~GPIO_InitStruct->GPIO_Pin );
00005a  6a05              LDR      r5,[r0,#0x20]
00005c  880e              LDRH     r6,[r1,#0]
00005e  43b5              BICS     r5,r5,r6
000060  6205              STR      r5,[r0,#0x20]
;;;133            GPIOx->PXPH &= ( uint32_t ) ( ~GPIO_InitStruct->GPIO_Pin );
000062  6c05              LDR      r5,[r0,#0x40]
000064  880e              LDRH     r6,[r1,#0]
000066  43b5              BICS     r5,r5,r6
000068  6405              STR      r5,[r0,#0x40]
                  |L2.106|
;;;134        }
;;;135    
;;;136        /* Get GPIOx PXLEV value */
;;;137        tmpreg = GPIOx->PXLEV;
00006a  6e03              LDR      r3,[r0,#0x60]
;;;138        /* Query the Pins that needs to be manipulated */
;;;139        for ( tmppos = 0; tmppos < 16; tmppos++ )
00006c  2200              MOVS     r2,#0
00006e  e011              B        |L2.148|
                  |L2.112|
;;;140        {
;;;141            tmppin = ( uint32_t ) ( 0x01U << tmppos );
000070  2501              MOVS     r5,#1
000072  4095              LSLS     r5,r5,r2
000074  462c              MOV      r4,r5
;;;142            if ( ( tmppin & GPIO_InitStruct->GPIO_Pin ) != SC_RESET )
000076  880d              LDRH     r5,[r1,#0]
000078  4025              ANDS     r5,r5,r4
00007a  2d00              CMP      r5,#0
00007c  d009              BEQ      |L2.146|
;;;143            {
;;;144                /* Clear the LEVx bits */
;;;145                tmpreg &= ( uint32_t ) ~ ( (uint32_t)GPIO_DriveLevel_3 << ( tmppos * 2 ) );
00007e  0056              LSLS     r6,r2,#1
000080  2503              MOVS     r5,#3
000082  40b5              LSLS     r5,r5,r6
000084  461e              MOV      r6,r3
000086  43ae              BICS     r6,r6,r5
000088  4633              MOV      r3,r6
;;;146                /* Set LEVx bits according to Drive Level value */
;;;147                tmpreg |= ( uint32_t ) ( GPIO_InitStruct->GPIO_DriveLevel << ( tmppos * 2 ) );
00008a  888d              LDRH     r5,[r1,#4]
00008c  0056              LSLS     r6,r2,#1
00008e  40b5              LSLS     r5,r5,r6
000090  432b              ORRS     r3,r3,r5
                  |L2.146|
000092  1c52              ADDS     r2,r2,#1              ;139
                  |L2.148|
000094  2a10              CMP      r2,#0x10              ;139
000096  d3eb              BCC      |L2.112|
;;;148            }
;;;149        }
;;;150        /* Store GPIOx PXLEV the new value */
;;;151        GPIOx->PXLEV = tmpreg;
000098  6603              STR      r3,[r0,#0x60]
;;;152    }
00009a  bd70              POP      {r4-r6,pc}
;;;153    
                          ENDP

                  |L2.156|
                          DCD      0x40011200

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

                  GPIO_ModeConfig PROC
;;;259     */
;;;260    void GPIO_ModeConfig ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_Mode_TypeDef GPIO_Mode )
000000  2a02              CMP      r2,#2
;;;261    {
;;;262    		/* Check the parameters */
;;;263        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;264        assert_param ( IS_GPIO_PIN ( GPIO_Pin ) );
;;;265        assert_param ( IS_GPIO_MODE ( GPIO_Mode ) );
;;;266    	
;;;267        if ( GPIO_Mode == GPIO_Mode_OUT_PP )
000002  d103              BNE      |L3.12|
;;;268        {
;;;269            /* Configure Pins to High-resistance output mode */
;;;270            GPIOx->PXCON |= ( uint32_t ) GPIO_Pin;
000004  6a03              LDR      r3,[r0,#0x20]
000006  430b              ORRS     r3,r3,r1
000008  6203              STR      r3,[r0,#0x20]
00000a  e010              B        |L3.46|
                  |L3.12|
;;;271        }
;;;272        else if ( GPIO_Mode == GPIO_Mode_IN_PU )
00000c  2a01              CMP      r2,#1
00000e  d106              BNE      |L3.30|
;;;273        {
;;;274            /* Configure Pins to Pull-up input mode */
;;;275            GPIOx->PXCON &= ( uint32_t ) ( ~(uint32_t)GPIO_Pin );
000010  6a03              LDR      r3,[r0,#0x20]
000012  438b              BICS     r3,r3,r1
000014  6203              STR      r3,[r0,#0x20]
;;;276            GPIOx->PXPH |= ( uint32_t ) GPIO_Pin;
000016  6c03              LDR      r3,[r0,#0x40]
000018  430b              ORRS     r3,r3,r1
00001a  6403              STR      r3,[r0,#0x40]
00001c  e007              B        |L3.46|
                  |L3.30|
;;;277        }
;;;278        else if ( GPIO_Mode == GPIO_Mode_IN_HI )
00001e  2a00              CMP      r2,#0
000020  d105              BNE      |L3.46|
;;;279        {
;;;280            /* Configure Pin to High-resistance intput mode */
;;;281            GPIOx->PXCON &= ( uint32_t ) ( ~(uint32_t)GPIO_Pin );
000022  6a03              LDR      r3,[r0,#0x20]
000024  438b              BICS     r3,r3,r1
000026  6203              STR      r3,[r0,#0x20]
;;;282            GPIOx->PXPH &= ( uint32_t ) ( ~(uint32_t)GPIO_Pin );
000028  6c03              LDR      r3,[r0,#0x40]
00002a  438b              BICS     r3,r3,r1
00002c  6403              STR      r3,[r0,#0x40]
                  |L3.46|
;;;283        }
;;;284    }
00002e  4770              BX       lr
;;;285    
                          ENDP


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

                  GPIO_ReadData PROC
;;;332     */
;;;333    uint16_t GPIO_ReadData ( GPIO_TypeDef* GPIOx )
000000  4601              MOV      r1,r0
;;;334    {
;;;335        /* Check the parameters */
;;;336        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;337    
;;;338        return ( uint16_t ) ( GPIOx->PIN );
000002  6808              LDR      r0,[r1,#0]
000004  b280              UXTH     r0,r0
;;;339    }
000006  4770              BX       lr
;;;340    
                          ENDP


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

                  GPIO_ReadDataBit PROC
;;;373     */
;;;374    BitAction GPIO_ReadDataBit ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin )
000000  4602              MOV      r2,r0
;;;375    {
;;;376        BitAction bitstatus = Bit_RESET;
000002  2000              MOVS     r0,#0
;;;377        /* Check the parameters */
;;;378        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;379        assert_param ( IS_GPIO_PIN ( GPIO_Pin ) );
;;;380    
;;;381        if ( GPIOx->PIN & GPIO_Pin )
000004  6813              LDR      r3,[r2,#0]
000006  400b              ANDS     r3,r3,r1
000008  2b00              CMP      r3,#0
00000a  d001              BEQ      |L5.16|
;;;382        {
;;;383            bitstatus = Bit_SET;
00000c  2001              MOVS     r0,#1
00000e  e000              B        |L5.18|
                  |L5.16|
;;;384        }
;;;385        else
;;;386        {
;;;387            bitstatus = Bit_RESET;
000010  2000              MOVS     r0,#0
                  |L5.18|
;;;388        }
;;;389    
;;;390        return bitstatus;
;;;391    }
000012  4770              BX       lr
;;;392    
                          ENDP


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

                  GPIO_ResetBits PROC
;;;471     */
;;;472    void GPIO_ResetBits ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin )
000000  b508              PUSH     {r3,lr}
;;;473    {
;;;474        /* Check the parameters */
;;;475        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;476        assert_param ( IS_GPIO_PIN ( GPIO_Pin ) );
;;;477    
;;;478        __IO uint32_t tmpreg = ( uint32_t ) GPIOx;
000002  9000              STR      r0,[sp,#0]
;;;479    
;;;480        while ( GPIO_Pin != 0 )
000004  e00a              B        |L6.28|
                  |L6.6|
;;;481        {
;;;482            if ( GPIO_Pin & 0x0001 )
000006  07ca              LSLS     r2,r1,#31
000008  0fd2              LSRS     r2,r2,#31
00000a  2a00              CMP      r2,#0
00000c  d002              BEQ      |L6.20|
;;;483            {
;;;484                ( * ( ( __IO uint8_t* ) ( tmpreg ) ) ) = 0;
00000e  2200              MOVS     r2,#0
000010  9b00              LDR      r3,[sp,#0]
000012  701a              STRB     r2,[r3,#0]
                  |L6.20|
;;;485            }
;;;486            GPIO_Pin = GPIO_Pin >> 1;
000014  1049              ASRS     r1,r1,#1
;;;487            tmpreg++;
000016  9a00              LDR      r2,[sp,#0]
000018  1c52              ADDS     r2,r2,#1
00001a  9200              STR      r2,[sp,#0]
                  |L6.28|
00001c  2900              CMP      r1,#0                 ;480
00001e  d1f2              BNE      |L6.6|
;;;488        }
;;;489    }
000020  bd08              POP      {r3,pc}
;;;490    
                          ENDP


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

                  GPIO_SetBits PROC
;;;423     */
;;;424    void GPIO_SetBits ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin )
000000  b508              PUSH     {r3,lr}
;;;425    {
;;;426        /* Check the parameters */
;;;427        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;428        assert_param ( IS_GPIO_PIN ( GPIO_Pin ) );
;;;429        __IO uint32_t tmpreg = ( uint32_t ) GPIOx;
000002  9000              STR      r0,[sp,#0]
;;;430        while ( GPIO_Pin != 0 )
000004  e00a              B        |L7.28|
                  |L7.6|
;;;431        {
;;;432            if ( GPIO_Pin & 0x0001 )
000006  07ca              LSLS     r2,r1,#31
000008  0fd2              LSRS     r2,r2,#31
00000a  2a00              CMP      r2,#0
00000c  d002              BEQ      |L7.20|
;;;433            {
;;;434                ( * ( ( __IO uint8_t* ) ( tmpreg ) ) ) = 1;
00000e  2201              MOVS     r2,#1
000010  9b00              LDR      r3,[sp,#0]
000012  701a              STRB     r2,[r3,#0]
                  |L7.20|
;;;435            }
;;;436            GPIO_Pin = GPIO_Pin >> 1;
000014  1049              ASRS     r1,r1,#1
;;;437            tmpreg++;
000016  9a00              LDR      r2,[sp,#0]
000018  1c52              ADDS     r2,r2,#1
00001a  9200              STR      r2,[sp,#0]
                  |L7.28|
00001c  2900              CMP      r1,#0                 ;430
00001e  d1f2              BNE      |L7.6|
;;;438        }
;;;439    }
000020  bd08              POP      {r3,pc}
;;;440    
                          ENDP


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

                  GPIO_SetDriveLevel PROC
;;;202     */
;;;203    void GPIO_SetDriveLevel ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_DriveLevel_TypeDef GPIO_DriveLevel )
000000  b5f0              PUSH     {r4-r7,lr}
;;;204    {
000002  4603              MOV      r3,r0
000004  460c              MOV      r4,r1
;;;205        uint32_t tmppin = 0, tmppos = 0, tmpreg = 0;
000006  2500              MOVS     r5,#0
000008  2000              MOVS     r0,#0
00000a  2100              MOVS     r1,#0
;;;206        /* Get GPIOx PXLEV value */
;;;207        tmpreg = GPIOx->PXLEV;
00000c  6e19              LDR      r1,[r3,#0x60]
;;;208        /* Query the Pins that needs to be manipulated */
;;;209        for ( tmppos = 0; tmppos < 16; tmppos++ )
00000e  bf00              NOP      
000010  e011              B        |L8.54|
                  |L8.18|
;;;210        {
;;;211            tmppin = ( uint32_t ) ( 0x01 << tmppos );
000012  2601              MOVS     r6,#1
000014  4086              LSLS     r6,r6,r0
000016  4635              MOV      r5,r6
;;;212            if ( ( tmppin & GPIO_Pin ) != SC_RESET )
000018  462e              MOV      r6,r5
00001a  4026              ANDS     r6,r6,r4
00001c  2e00              CMP      r6,#0
00001e  d009              BEQ      |L8.52|
;;;213            {
;;;214                /* Clear the LEVx bits */
;;;215                tmpreg &= ( uint32_t ) ~ ( GPIO_DriveLevel_3 << ( tmppos * 2 ) );
000020  0047              LSLS     r7,r0,#1
000022  2603              MOVS     r6,#3
000024  40be              LSLS     r6,r6,r7
000026  460f              MOV      r7,r1
000028  43b7              BICS     r7,r7,r6
00002a  4639              MOV      r1,r7
;;;216                /* Set LEVx bits according to Drive Level value */
;;;217                tmpreg |= ( uint32_t ) ( GPIO_DriveLevel << ( tmppos * 2 ) );
00002c  0047              LSLS     r7,r0,#1
00002e  4616              MOV      r6,r2
000030  40be              LSLS     r6,r6,r7
000032  4331              ORRS     r1,r1,r6
                  |L8.52|
000034  1c40              ADDS     r0,r0,#1              ;209
                  |L8.54|
000036  2810              CMP      r0,#0x10              ;209
000038  d3eb              BCC      |L8.18|
;;;218            }
;;;219        }
;;;220        /* Store GPIOx PXLEV the new value */
;;;221        GPIOx->PXLEV = tmpreg;
00003a  6619              STR      r1,[r3,#0x60]
;;;222    
;;;223    }
00003c  bdf0              POP      {r4-r7,pc}
;;;224    
                          ENDP


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

                  GPIO_StructInit PROC
;;;158     */
;;;159    void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct)
000000  2100              MOVS     r1,#0
;;;160    {
;;;161        /* Set the default configuration */
;;;162        GPIO_InitStruct->GPIO_Pin = 0x0000;             
000002  8001              STRH     r1,[r0,#0]
;;;163        GPIO_InitStruct->GPIO_Mode = GPIO_Mode_IN_HI;         
000004  8041              STRH     r1,[r0,#2]
;;;164        GPIO_InitStruct->GPIO_DriveLevel = GPIO_DriveLevel_0; 
000006  8081              STRH     r1,[r0,#4]
;;;165    }
000008  4770              BX       lr
;;;166    
                          ENDP


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

                  GPIO_TogglePins PROC
;;;595     */
;;;596    void GPIO_TogglePins ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin )
000000  b508              PUSH     {r3,lr}
;;;597    {
;;;598        /* Check the parameters */
;;;599        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;600        assert_param ( IS_GPIO_PIN ( GPIO_Pin ) );
;;;601        __IO uint32_t tmpreg = ( uint32_t ) GPIOx + ( 0x00000010UL );
000002  4603              MOV      r3,r0
000004  3310              ADDS     r3,r3,#0x10
000006  9300              STR      r3,[sp,#0]
;;;602        uint8_t temp = 0;
000008  2200              MOVS     r2,#0
;;;603        /* Set the GPIOx PIN value  */
;;;604        while ( GPIO_Pin != 0 )
00000a  e00d              B        |L10.40|
                  |L10.12|
;;;605        {
;;;606    
;;;607            if ( GPIO_Pin & 0x0001 )
00000c  07cb              LSLS     r3,r1,#31
00000e  0fdb              LSRS     r3,r3,#31
000010  2b00              CMP      r3,#0
000012  d005              BEQ      |L10.32|
;;;608            {
;;;609                temp = ~ ( * ( ( __IO uint8_t* ) ( tmpreg ) ) );
000014  9b00              LDR      r3,[sp,#0]
000016  781b              LDRB     r3,[r3,#0]
000018  43db              MVNS     r3,r3
00001a  b2da              UXTB     r2,r3
;;;610                ( * ( ( __IO uint8_t* ) ( tmpreg ) ) ) = temp;
00001c  9b00              LDR      r3,[sp,#0]
00001e  701a              STRB     r2,[r3,#0]
                  |L10.32|
;;;611            }
;;;612            GPIO_Pin = GPIO_Pin >> 1;
000020  1049              ASRS     r1,r1,#1
;;;613            tmpreg++;
000022  9b00              LDR      r3,[sp,#0]
000024  1c5b              ADDS     r3,r3,#1
000026  9300              STR      r3,[sp,#0]
                  |L10.40|
000028  2900              CMP      r1,#0                 ;604
00002a  d1ef              BNE      |L10.12|
;;;614        }
;;;615    }
00002c  bd08              POP      {r3,pc}
;;;616    
                          ENDP


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

                  GPIO_Write PROC
;;;503     */
;;;504    void GPIO_Write ( GPIO_TypeDef* GPIOx, uint16_t PortVal )
000000  6001              STR      r1,[r0,#0]
;;;505    {
;;;506        /* Check the parameters */
;;;507        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;508    
;;;509        /*  */
;;;510        GPIOx->PIN = PortVal;
;;;511    }
000002  4770              BX       lr
;;;512    
                          ENDP


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

                  GPIO_WriteBit PROC
;;;547      */
;;;548    void GPIO_WriteBit ( GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal )
000000  2a00              CMP      r2,#0
;;;549    {
;;;550        /* Check the parameters */
;;;551        assert_param ( IS_GPIO_ALL_PERIPH ( GPIOx ) );
;;;552        assert_param ( IS_GET_GPIO_PIN ( GPIO_Pin ) );
;;;553        assert_param ( IS_GPIO_BITACTION ( BitVal ) );
;;;554    
;;;555        if ( BitVal != Bit_RESET )
000002  d003              BEQ      |L12.12|
;;;556        {
;;;557            GPIOx->PIN |= GPIO_Pin;
000004  6803              LDR      r3,[r0,#0]
000006  430b              ORRS     r3,r3,r1
000008  6003              STR      r3,[r0,#0]
00000a  e002              B        |L12.18|
                  |L12.12|
;;;558        }
;;;559        else
;;;560        {
;;;561            GPIOx->PIN &= ( ~(uint32_t)GPIO_Pin ) ;
00000c  6803              LDR      r3,[r0,#0]
00000e  438b              BICS     r3,r3,r1
000010  6003              STR      r3,[r0,#0]
                  |L12.18|
;;;562        }
;;;563    }
000012  4770              BX       lr
;;;564    
                          ENDP


;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
