; 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\demo\mico-fire_f429\obj_rvmdk\micokit_ext.o --asm_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\micokit_ext.d --cpu=Cortex-M4.fp --apcs=interwork -O0 --diag_suppress=9931,1,1293 -I..\..\..\..\Board\fire_F429 -I..\..\..\..\Demos\fire\ov2640 -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 -I..\..\..\..\libraries\daemons\homekit_server -I..\..\..\..\libraries\daemons\http_server -I..\..\..\..\Platform\Drivers\malloc -I..\..\..\..\Platform\Drivers\SDRAM -I..\..\..\..\Platform\Drivers\ov5640 -IG:\GIT_OSC\STM32_develop\F429-V2\develop\6-WIFI\STM32-WiFi\3.wifi_ov5640\Projects\STM32F429\demo\RVMDK\RTE -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -IC:\Keil_v5\ARM\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__UVISION_VERSION=515 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DDEBUG -DHSE_VALUE=25000000 -DOV5640 --omf_browse=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\micokit_ext.crf ..\..\..\..\Platform\Drivers\MiCOKit_EXT\micokit_ext.c]
                          THUMB

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

                  micokit_ext_init PROC
;;;100    
;;;101    OSStatus micokit_ext_init(void)
000000  b510              PUSH     {r4,lr}
;;;102    {
;;;103      OSStatus err = kUnknownErr;
000002  4c03              LDR      r4,|L1.16|
;;;104      err = user_modules_init();
000004  f7fffffe          BL       user_modules_init
000008  4604              MOV      r4,r0
;;;105      
;;;106      return err;
00000a  4620              MOV      r0,r4
;;;107    }
00000c  bd10              POP      {r4,pc}
                          ENDP

00000e  0000              DCW      0x0000
                  |L1.16|
                          DCD      0xffffe5d4

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

                          REQUIRE _printf_percent
                          REQUIRE _printf_s
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  user_modules_init PROC
;;;33     //------------------------------------- API ------------------------------------
;;;34     OSStatus user_modules_init(void)
000000  b510              PUSH     {r4,lr}
;;;35     {
000002  b086              SUB      sp,sp,#0x18
;;;36       OSStatus err = kUnknownErr;
000004  4c21              LDR      r4,|L2.140|
;;;37       char oled_show_line[OLED_DISPLAY_MAX_CHAR_PER_ROW+1] = {'\0'};   // max char each line
000006  2114              MOVS     r1,#0x14
000008  a801              ADD      r0,sp,#4
00000a  f7fffffe          BL       __aeabi_memclr4
;;;38     #if defined(MICO_EXT_KEY1)||defined(MICO_EXT_KEY2)
;;;39       button_init_t init;
;;;40     #endif
;;;41     
;;;42       
;;;43       // init DC Motor(GPIO)
;;;44       dc_motor_init();
00000e  f7fffffe          BL       dc_motor_init
;;;45       dc_motor_set(0);   // off
000012  2000              MOVS     r0,#0
000014  f7fffffe          BL       dc_motor_set
;;;46       
;;;47       // init RGB LED(P9813)
;;;48       rgb_led_init();
000018  f7fffffe          BL       rgb_led_init
;;;49       rgb_led_open(0, 0, 0);  // off
00001c  2200              MOVS     r2,#0
00001e  4611              MOV      r1,r2
000020  4610              MOV      r0,r2
000022  f7fffffe          BL       rgb_led_open
;;;50       
;;;51       // init OLED
;;;52       OLED_Init();
000026  f7fffffe          BL       OLED_Init
;;;53       OLED_Clear();
00002a  f7fffffe          BL       OLED_Clear
;;;54       snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)MODEL);
00002e  a318              ADR      r3,|L2.144|
000030  a21a              ADR      r2,|L2.156|
000032  2111              MOVS     r1,#0x11
000034  a801              ADD      r0,sp,#4
000036  f7fffffe          BL       __2snprintf
;;;55       OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_1, (uint8_t*)oled_show_line);
00003a  aa01              ADD      r2,sp,#4
00003c  2100              MOVS     r1,#0
00003e  4608              MOV      r0,r1
000040  f7fffffe          BL       OLED_ShowString
;;;56       memset(oled_show_line, '\0', OLED_DISPLAY_MAX_CHAR_PER_ROW+1);
000044  2114              MOVS     r1,#0x14
000046  a801              ADD      r0,sp,#4
000048  f7fffffe          BL       __aeabi_memclr4
;;;57       snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"MiCO            ");
00004c  a314              ADR      r3,|L2.160|
00004e  a213              ADR      r2,|L2.156|
000050  2111              MOVS     r1,#0x11
000052  a801              ADD      r0,sp,#4
000054  f7fffffe          BL       __2snprintf
;;;58       OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_2, (uint8_t*)oled_show_line);
000058  aa01              ADD      r2,sp,#4
00005a  2102              MOVS     r1,#2
00005c  2000              MOVS     r0,#0
00005e  f7fffffe          BL       OLED_ShowString
;;;59       OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_3, (uint8_t*)"   Starting... ");
000062  a214              ADR      r2,|L2.180|
000064  2104              MOVS     r1,#4
000066  2000              MOVS     r0,#0
000068  f7fffffe          BL       OLED_ShowString
;;;60       OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_4, (uint8_t*)"                ");
00006c  a215              ADR      r2,|L2.196|
00006e  2106              MOVS     r1,#6
000070  2000              MOVS     r0,#0
000072  f7fffffe          BL       OLED_ShowString
;;;61       
;;;62       // init Light sensor(ADC)
;;;63       light_sensor_init();
000076  f7fffffe          BL       light_sensor_init
;;;64       
;;;65       // init infrared sensor(ADC)
;;;66       infrared_reflective_init();
00007a  f7fffffe          BL       infrared_reflective_init
;;;67       
;;;68       // init user key1 && key2
;;;69     #ifdef MICO_EXT_KEY1
;;;70       init.gpio = MICO_EXT_KEY1;
;;;71       init.pressed_func = user_key1_clicked_callback;
;;;72       init.long_pressed_func = NULL;
;;;73       init.long_pressed_timeout = 5000;
;;;74       button_init( IOBUTTON_USER_1, init);
;;;75     #endif
;;;76     
;;;77     #ifdef MICO_EXT_KEY2
;;;78       init.gpio = MICO_EXT_KEY2;
;;;79       init.pressed_func = user_key2_clicked_callback;
;;;80       init.long_pressed_func = NULL;
;;;81       init.long_pressed_timeout = 5000;
;;;82       button_init( IOBUTTON_USER_2, init);
;;;83     #endif
;;;84     
;;;85       err = temp_hum_sensor_init();
00007e  f7fffffe          BL       temp_hum_sensor_init
000082  4604              MOV      r4,r0
;;;86       
;;;87     //  int32_t temperature;
;;;88     //  uint32_t humidity;
;;;89     //  
;;;90     //  while(1){
;;;91     //  err = temp_hum_sensor_read( &temperature,  &humidity );
;;;92     //  if( err == kNoErr ){
;;;93     //    platform_log( "temperature: %d, humidity = %d ", temperature, humidity);
;;;94     //  }
;;;95     //  sleep(1);
;;;96     //  }
;;;97       
;;;98       return err;
000084  4620              MOV      r0,r4
;;;99     }
000086  b006              ADD      sp,sp,#0x18
000088  bd10              POP      {r4,pc}
;;;100    
                          ENDP

00008a  0000              DCW      0x0000
                  |L2.140|
                          DCD      0xffffe5d4
                  |L2.144|
000090  46495245          DCB      "FIRE-F429",0
000094  2d463432
000098  3900    
00009a  00                DCB      0
00009b  00                DCB      0
                  |L2.156|
00009c  257300            DCB      "%s",0
00009f  00                DCB      0
                  |L2.160|
0000a0  4d69434f          DCB      "MiCO            ",0
0000a4  20202020
0000a8  20202020
0000ac  20202020
0000b0  00      
0000b1  00                DCB      0
0000b2  00                DCB      0
0000b3  00                DCB      0
                  |L2.180|
0000b4  20202053          DCB      "   Starting... ",0
0000b8  74617274
0000bc  696e672e
0000c0  2e2e2000
                  |L2.196|
0000c4  20202020          DCB      "                ",0
0000c8  20202020
0000cc  20202020
0000d0  20202020
0000d4  00      
0000d5  00                DCB      0
0000d6  00                DCB      0
0000d7  00                DCB      0

;*** Start embedded assembler ***

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

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
