; generated by Component: ARM Compiler 5.05 update 2 (build 169) Tool: ArmCC [4d0f38]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\wlan_platform_common.o --asm_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\wlan_platform_common.d --cpu=Cortex-M4.fp --apcs=interwork --diag_suppress=9931,1,1293 -I..\..\..\..\Bootloader -I..\..\..\..\Board\fire_F429 -I..\..\..\..\include -I..\..\..\..\libraries\utilities -I..\..\..\..\libraries\utilities\json_c -I..\..\..\..\MICO\core -I..\..\..\..\MICO\security -I..\..\..\..\MICO\system -I..\..\..\..\MICO\system\command_console -I..\..\..\..\Platform\include -I..\..\..\..\Platform\Cortex-M4 -I..\..\..\..\Platform\Cortex-M4\CMSIS -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries -I..\..\..\..\Platform\MCU\STM32F4xx\wlan_bus_driver -I..\..\..\..\Platform\Drivers\spi_flash -I..\..\..\..\Platform\Drivers -IG:\GIT_OSC\F429_OV2640_MICO_SDRAM\Projects\STM32F429\bootloader\RVMDK\RTE -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -ID:\work\keil5\ARM\CMSIS\Include -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__MICROLIB -D__UVISION_VERSION=516 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DBOOTLOADER -DNO_MICO_RTOS -DHSE_VALUE=25000000 --omf_browse=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\wlan_platform_common.crf ..\..\..\..\Platform\MCU\wlan_platform_common.c]
                          THUMB

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

                  host_platform_deinit PROC
;;;107    
;;;108    OSStatus host_platform_deinit( void )
000000  b510              PUSH     {r4,lr}
;;;109    {
;;;110    #if defined ( MICO_USE_WIFI_RESET_PIN )
;;;111        platform_gpio_init( &wifi_control_pins[WIFI_PIN_RESET], OUTPUT_PUSH_PULL );
000002  2103              MOVS     r1,#3
000004  4803              LDR      r0,|L1.20|
000006  f7fffffe          BL       platform_gpio_init
;;;112        host_platform_reset_wifi( true );  /* Start wifi chip in reset */
00000a  2001              MOVS     r0,#1
00000c  f7fffffe          BL       host_platform_reset_wifi
;;;113    #endif
;;;114        
;;;115    #if defined ( MICO_USE_WIFI_POWER_PIN )
;;;116        platform_gpio_init( &wifi_control_pins[WIFI_PIN_POWER], OUTPUT_PUSH_PULL );
;;;117        host_platform_power_wifi( false ); /* Start wifi chip with regulators off */
;;;118    #endif
;;;119    
;;;120        host_platform_deinit_wlan_powersave_clock( );
;;;121    
;;;122        return kNoErr;
000010  2000              MOVS     r0,#0
;;;123    }
000012  bd10              POP      {r4,pc}
;;;124    
                          ENDP

                  |L1.20|
                          DCD      wifi_control_pins+0x8

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

                  host_platform_deinit_wlan_powersave_clock PROC
;;;140    
;;;141    OSStatus host_platform_deinit_wlan_powersave_clock( void )
000000  2000              MOVS     r0,#0
;;;142    {
;;;143    #ifndef MICO_USE_WIFI_32K_PIN
;;;144        return kNoErr;
;;;145    #else
;;;146        /* Tie the pin to ground */
;;;147        platform_gpio_init( &wifi_control_pins[WIFI_PIN_32K_CLK], OUTPUT_PUSH_PULL );
;;;148        platform_gpio_output_low( &wifi_control_pins[WIFI_PIN_32K_CLK] );
;;;149        return kNoErr;
;;;150    #endif
;;;151    }
000002  4770              BX       lr
;;;152    
                          ENDP


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

                  host_platform_init PROC
;;;90     
;;;91     OSStatus host_platform_init( void )
000000  b510              PUSH     {r4,lr}
;;;92     {
;;;93         host_platform_deinit_wlan_powersave_clock( );
;;;94     
;;;95     #if defined ( MICO_USE_WIFI_RESET_PIN )
;;;96         platform_gpio_init( &wifi_control_pins[WIFI_PIN_RESET], OUTPUT_PUSH_PULL );
000002  2103              MOVS     r1,#3
000004  4803              LDR      r0,|L3.20|
000006  f7fffffe          BL       platform_gpio_init
;;;97         host_platform_reset_wifi( true );  /* Start wifi chip in reset */
00000a  2001              MOVS     r0,#1
00000c  f7fffffe          BL       host_platform_reset_wifi
;;;98     #endif
;;;99         
;;;100    #if defined ( MICO_USE_WIFI_POWER_PIN )
;;;101        platform_gpio_init( &wifi_control_pins[WIFI_PIN_POWER], OUTPUT_PUSH_PULL );
;;;102        host_platform_power_wifi( false ); /* Start wifi chip with regulators off */
;;;103    #endif
;;;104    
;;;105        return kNoErr;
000010  2000              MOVS     r0,#0
;;;106    }
000012  bd10              POP      {r4,pc}
;;;107    
                          ENDP

                  |L3.20|
                          DCD      wifi_control_pins+0x8

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

                  host_platform_is_in_interrupt_context PROC
;;;124    
;;;125    bool host_platform_is_in_interrupt_context( void )
000000  4803              LDR      r0,|L4.16|
;;;126    {
;;;127        /* From the ARM Cortex-M3 Techinical Reference Manual
;;;128         * 0xE000ED04   ICSR    RW [a]  Privileged  0x00000000  Interrupt Control and State Register */
;;;129        uint32_t active_interrupt_vector = (uint32_t)( SCB ->ICSR & 0x3fU );
000002  6800              LDR      r0,[r0,#0]
000004  f010003f          ANDS     r0,r0,#0x3f
000008  d000              BEQ      |L4.12|
;;;130    
;;;131        if ( active_interrupt_vector != 0 )
;;;132        {
;;;133            return true;
00000a  2001              MOVS     r0,#1
                  |L4.12|
;;;134        }
;;;135        else
;;;136        {
;;;137            return false;
;;;138        }
;;;139    }
00000c  4770              BX       lr
;;;140    
                          ENDP

00000e  0000              DCW      0x0000
                  |L4.16|
                          DCD      0xe000ed04

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

                  host_platform_power_wifi PROC
;;;79     
;;;80     void host_platform_power_wifi( bool power_enabled )
000000  4770              BX       lr
;;;81     {
;;;82     #if   defined ( MICO_USE_WIFI_POWER_PIN ) && defined ( MICO_USE_WIFI_POWER_PIN_ACTIVE_HIGH )
;;;83         ( power_enabled == true ) ? platform_gpio_output_high( &wifi_control_pins[WIFI_PIN_POWER] ) : platform_gpio_output_low ( &wifi_control_pins[WIFI_PIN_POWER] );
;;;84     #elif defined ( MICO_USE_WIFI_POWER_PIN )
;;;85         ( power_enabled == true ) ? platform_gpio_output_low ( &wifi_control_pins[WIFI_PIN_POWER] ) : platform_gpio_output_high( &wifi_control_pins[WIFI_PIN_POWER] );
;;;86     #else
;;;87         UNUSED_PARAMETER( power_enabled );
;;;88     #endif
;;;89     }
;;;90     
                          ENDP


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

                  host_platform_reset_wifi PROC
;;;70     
;;;71     void host_platform_reset_wifi( bool reset_asserted )
000000  0001              MOVS     r1,r0
;;;72     {
;;;73     #if defined (MICO_USE_WIFI_RESET_PIN )
;;;74         ( reset_asserted == true ) ? platform_gpio_output_low( &wifi_control_pins[ WIFI_PIN_RESET ] ) : platform_gpio_output_high( &wifi_control_pins[ WIFI_PIN_RESET ] );
000002  4803              LDR      r0,|L6.16|
000004  d001              BEQ      |L6.10|
000006  f7ffbffe          B.W      platform_gpio_output_low
                  |L6.10|
00000a  f7ffbffe          B.W      platform_gpio_output_high
;;;75     #else
;;;76         UNUSED_PARAMETER( reset_asserted );
;;;77     #endif
;;;78     }
;;;79     
                          ENDP

00000e  0000              DCW      0x0000
                  |L6.16|
                          DCD      wifi_control_pins+0x8

;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\Platform\\MCU\\wlan_platform_common.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___22_wlan_platform_common_c_5b9a3547____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___22_wlan_platform_common_c_5b9a3547____REV16| PROC
#line 115

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___22_wlan_platform_common_c_5b9a3547____REVSH|
#line 128
|__asm___22_wlan_platform_common_c_5b9a3547____REVSH| PROC
#line 129

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
