; 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\spi_flash_platform.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\spi_flash_platform.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\spi_flash_platform.crf ..\..\..\..\Platform\Drivers\spi_flash\spi_flash_platform.c]
                          THUMB

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

                  sflash_platform_init PROC
;;;35     
;;;36     int sflash_platform_init ( /*@shared@*/ void* peripheral_id, /*@out@*/ void** platform_peripheral_out )
000000  b510              PUSH     {r4,lr}
;;;37     {
000002  460c              MOV      r4,r1
;;;38         UNUSED_PARAMETER( peripheral_id );  /* Unused due to single SPI Flash */
;;;39     
;;;40         if ( kNoErr != MicoSpiInitialize( &mico_spi_flash ) )
000004  4805              LDR      r0,|L1.28|
000006  f7fffffe          BL       MicoSpiInitialize
00000a  b110              CBZ      r0,|L1.18|
;;;41         {
;;;42             /*@-mustdefine@*/ /* Lint: failed - do not define platform peripheral */
;;;43             return -1;
00000c  f04f30ff          MOV      r0,#0xffffffff
;;;44             /*@+mustdefine@*/
;;;45         }
;;;46     
;;;47         if( platform_peripheral_out != NULL)
;;;48           *platform_peripheral_out = NULL;
;;;49         
;;;50         return 0;
;;;51     }
000010  bd10              POP      {r4,pc}
                  |L1.18|
000012  b10c              CBZ      r4,|L1.24|
000014  2000              MOVS     r0,#0                 ;48
000016  6020              STR      r0,[r4,#0]            ;48
                  |L1.24|
000018  2000              MOVS     r0,#0                 ;50
00001a  bd10              POP      {r4,pc}
;;;52     
                          ENDP

                  |L1.28|
                          DCD      mico_spi_flash

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

                  sflash_platform_send_recv PROC
;;;53     
;;;54     extern int sflash_platform_send_recv ( const void* platform_peripheral, /*@in@*/ /*@out@*/ sflash_platform_message_segment_t* segments, unsigned int num_segments  )
000000  b510              PUSH     {r4,lr}
;;;55     {
;;;56         UNUSED_PARAMETER( platform_peripheral );
;;;57     
;;;58         if ( kNoErr != MicoSpiTransfer( &mico_spi_flash, (mico_spi_message_segment_t*) segments, (uint16_t) num_segments ) )
000002  b292              UXTH     r2,r2
000004  4803              LDR      r0,|L2.20|
000006  f7fffffe          BL       MicoSpiTransfer
00000a  2800              CMP      r0,#0
00000c  d001              BEQ      |L2.18|
;;;59         {
;;;60             return -1;
00000e  f04f30ff          MOV      r0,#0xffffffff
                  |L2.18|
;;;61         }
;;;62     
;;;63         return 0;
;;;64     }
000012  bd10              POP      {r4,pc}
;;;65     #else
                          ENDP

                  |L2.20|
                          DCD      mico_spi_flash

;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\Platform\\Drivers\\spi_flash\\spi_flash_platform.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___20_spi_flash_platform_c_d1110579____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___20_spi_flash_platform_c_d1110579____REV16| PROC
#line 115

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
