; 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\mico_system_power_daemon.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\mico_system_power_daemon.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\mico_system_power_daemon.crf ..\..\..\..\MICO\system\mico_system_power_daemon.c]
                          THUMB

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

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                  PlatformEasyLinkButtonClickedCallback PROC
                  ||__tagsym$$used||
;;;40     
;;;41     USED void PlatformEasyLinkButtonClickedCallback(void)
000000  b57c              PUSH     {r2-r6,lr}
;;;42     {
;;;43       system_log_trace();
;;;44       mico_Context_t* context = NULL;
000002  2400              MOVS     r4,#0
;;;45       
;;;46       context = mico_system_context_get( );
000004  f7fffffe          BL       mico_system_context_get
000008  4604              MOV      r4,r0
;;;47       require( context, exit );
00000a  bf00              NOP      
00000c  2c00              CMP      r4,#0
00000e  d127              BNE      |L1.96|
000010  bf00              NOP      
000012  4820              LDR      r0,|L1.148|
000014  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000016  b900              CBNZ     r0,|L1.26|
000018  e020              B        |L1.92|
                  |L1.26|
00001a  481f              LDR      r0,|L1.152|
00001c  f7fffffe          BL       mico_rtos_lock_mutex
000020  215c              MOVS     r1,#0x5c
000022  a01e              ADR      r0,|L1.156|
000024  f7fffffe          BL       strrchr
000028  b128              CBZ      r0,|L1.54|
00002a  215c              MOVS     r1,#0x5c
00002c  a01b              ADR      r0,|L1.156|
00002e  f7fffffe          BL       strrchr
000032  1c40              ADDS     r0,r0,#1
000034  e000              B        |L1.56|
                  |L1.54|
000036  a019              ADR      r0,|L1.156|
                  |L1.56|
000038  4605              MOV      r5,r0
00003a  f7fffffe          BL       mico_get_time
00003e  4606              MOV      r6,r0
000040  a023              ADR      r0,|L1.208|
000042  212f              MOVS     r1,#0x2f
000044  4b23              LDR      r3,|L1.212|
000046  462a              MOV      r2,r5
000048  e9cd1000          STRD     r1,r0,[sp,#0]
00004c  4631              MOV      r1,r6
00004e  a022              ADR      r0,|L1.216|
000050  f7fffffe          BL       __2printf
000054  4810              LDR      r0,|L1.152|
000056  f7fffffe          BL       mico_rtos_unlock_mutex
00005a  bf00              NOP      
                  |L1.92|
00005c  bf00              NOP      
00005e  e018              B        |L1.146|
                  |L1.96|
000060  bf00              NOP      
;;;48       
;;;49       if(context->flashContentInRam.micoSystemConfig.easyLinkByPass != EASYLINK_BYPASS_NO){
000062  f8940131          LDRB     r0,[r4,#0x131]
000066  b128              CBZ      r0,|L1.116|
;;;50         context->flashContentInRam.micoSystemConfig.easyLinkByPass = EASYLINK_BYPASS_NO;
000068  2100              MOVS     r1,#0
00006a  f8841131          STRB     r1,[r4,#0x131]
;;;51         needs_update = true;
00006e  2001              MOVS     r0,#1
000070  4923              LDR      r1,|L1.256|
000072  7008              STRB     r0,[r1,#0]
                  |L1.116|
;;;52       }
;;;53       
;;;54       if(context->flashContentInRam.micoSystemConfig.configured == allConfigured){
000074  f8940130          LDRB     r0,[r4,#0x130]
000078  2802              CMP      r0,#2
00007a  d105              BNE      |L1.136|
;;;55         context->flashContentInRam.micoSystemConfig.configured = wLanUnConfigured;
00007c  2101              MOVS     r1,#1
00007e  f8841130          STRB     r1,[r4,#0x130]
;;;56         needs_update = true;
000082  2001              MOVS     r0,#1
000084  491e              LDR      r1,|L1.256|
000086  7008              STRB     r0,[r1,#0]
                  |L1.136|
;;;57       }
;;;58     
;;;59       mico_system_power_perform( context, eState_Software_Reset );
000088  2101              MOVS     r1,#1
00008a  4620              MOV      r0,r4
00008c  f7fffffe          BL       mico_system_power_perform
;;;60     
;;;61     exit: 
000090  bf00              NOP      
                  |L1.146|
;;;62       return;
;;;63     }
000092  bd7c              POP      {r2-r6,pc}
;;;64     
                          ENDP

                  |L1.148|
                          DCD      mico_debug_enabled
                  |L1.152|
                          DCD      stdio_tx_mutex
                  |L1.156|
00009c  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon."
0000a0  2e5c2e2e
0000a4  5c2e2e5c
0000a8  4d49434f
0000ac  5c737973
0000b0  74656d5c
0000b4  6d69636f
0000b8  5f737973
0000bc  74656d5f
0000c0  706f7765
0000c4  725f6461
0000c8  656d6f6e
0000cc  2e      
0000cd  6300              DCB      "c",0
0000cf  00                DCB      0
                  |L1.208|
0000d0  00                DCB      0
0000d1  00                DCB      0
0000d2  00                DCB      0
0000d3  00                DCB      0
                  |L1.212|
                          DCD      __PRETTY_FUNCTION__
                  |L1.216|
0000d8  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
0000dc  5b4d4943
0000e0  4f3a2573
0000e4  3a25733a
0000e8  2534645d
0000ec  202a2a41
0000f0  53534552
0000f4  542a2a20
0000f8  25730d0a
0000fc  00      
0000fd  00                DCB      0
0000fe  00                DCB      0
0000ff  00                DCB      0
                  |L1.256|
                          DCD      needs_update

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

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                  PlatformEasyLinkButtonLongPressedCallback PROC
                  |symbol_number.63|
;;;64     
;;;65     USED void PlatformEasyLinkButtonLongPressedCallback(void)
000000  b57c              PUSH     {r2-r6,lr}
;;;66     {
;;;67       system_log_trace();
;;;68       mico_Context_t* context = NULL;
000002  2400              MOVS     r4,#0
;;;69       
;;;70       context = mico_system_context_get( );
000004  f7fffffe          BL       mico_system_context_get
000008  4604              MOV      r4,r0
;;;71       require( context, exit );
00000a  bf00              NOP      
00000c  2c00              CMP      r4,#0
00000e  d127              BNE      |L2.96|
000010  bf00              NOP      
000012  4818              LDR      r0,|L2.116|
000014  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000016  b900              CBNZ     r0,|L2.26|
000018  e020              B        |L2.92|
                  |L2.26|
00001a  4817              LDR      r0,|L2.120|
00001c  f7fffffe          BL       mico_rtos_lock_mutex
000020  215c              MOVS     r1,#0x5c
000022  a016              ADR      r0,|L2.124|
000024  f7fffffe          BL       strrchr
000028  b128              CBZ      r0,|L2.54|
00002a  215c              MOVS     r1,#0x5c
00002c  a013              ADR      r0,|L2.124|
00002e  f7fffffe          BL       strrchr
000032  1c40              ADDS     r0,r0,#1
000034  e000              B        |L2.56|
                  |L2.54|
000036  a011              ADR      r0,|L2.124|
                  |L2.56|
000038  4605              MOV      r5,r0
00003a  f7fffffe          BL       mico_get_time
00003e  4606              MOV      r6,r0
000040  a01b              ADR      r0,|L2.176|
000042  2147              MOVS     r1,#0x47
000044  4b1b              LDR      r3,|L2.180|
000046  462a              MOV      r2,r5
000048  e9cd1000          STRD     r1,r0,[sp,#0]
00004c  4631              MOV      r1,r6
00004e  a01a              ADR      r0,|L2.184|
000050  f7fffffe          BL       __2printf
000054  4808              LDR      r0,|L2.120|
000056  f7fffffe          BL       mico_rtos_unlock_mutex
00005a  bf00              NOP      
                  |L2.92|
00005c  bf00              NOP      
00005e  e008              B        |L2.114|
                  |L2.96|
000060  bf00              NOP      
;;;72     
;;;73       mico_system_context_restore( context );
000062  4620              MOV      r0,r4
000064  f7fffffe          BL       mico_system_context_restore
;;;74       
;;;75       mico_system_power_perform( context, eState_Software_Reset );
000068  2101              MOVS     r1,#1
00006a  4620              MOV      r0,r4
00006c  f7fffffe          BL       mico_system_power_perform
;;;76     
;;;77     exit:
000070  bf00              NOP      
                  |L2.114|
;;;78       return;
;;;79     }
000072  bd7c              POP      {r2-r6,pc}
;;;80     
                          ENDP

                  |L2.116|
                          DCD      mico_debug_enabled
                  |L2.120|
                          DCD      stdio_tx_mutex
                  |L2.124|
00007c  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon."
000080  2e5c2e2e
000084  5c2e2e5c
000088  4d49434f
00008c  5c737973
000090  74656d5c
000094  6d69636f
000098  5f737973
00009c  74656d5f
0000a0  706f7765
0000a4  725f6461
0000a8  656d6f6e
0000ac  2e      
0000ad  6300              DCB      "c",0
0000af  00                DCB      0
                  |L2.176|
0000b0  00                DCB      0
0000b1  00                DCB      0
0000b2  00                DCB      0
0000b3  00                DCB      0
                  |L2.180|
                          DCD      |symbol_number.24|
                  |L2.184|
0000b8  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
0000bc  5b4d4943
0000c0  4f3a2573
0000c4  3a25733a
0000c8  2534645d
0000cc  202a2a41
0000d0  53534552
0000d4  542a2a20
0000d8  25730d0a
0000dc  00      
0000dd  00                DCB      0
0000de  00                DCB      0
0000df  00                DCB      0

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

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                  PlatformStandbyButtonClickedCallback PROC
                  |symbol_number.64|
;;;80     
;;;81     USED void PlatformStandbyButtonClickedCallback(void)
000000  b57c              PUSH     {r2-r6,lr}
;;;82     {
;;;83       system_log_trace();
;;;84       mico_Context_t* context = NULL;
000002  2400              MOVS     r4,#0
;;;85       
;;;86       context = mico_system_context_get( );
000004  f7fffffe          BL       mico_system_context_get
000008  4604              MOV      r4,r0
;;;87       require( context, exit );
00000a  bf00              NOP      
00000c  2c00              CMP      r4,#0
00000e  d127              BNE      |L3.96|
000010  bf00              NOP      
000012  4817              LDR      r0,|L3.112|
000014  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000016  b900              CBNZ     r0,|L3.26|
000018  e020              B        |L3.92|
                  |L3.26|
00001a  4816              LDR      r0,|L3.116|
00001c  f7fffffe          BL       mico_rtos_lock_mutex
000020  215c              MOVS     r1,#0x5c
000022  a015              ADR      r0,|L3.120|
000024  f7fffffe          BL       strrchr
000028  b128              CBZ      r0,|L3.54|
00002a  215c              MOVS     r1,#0x5c
00002c  a012              ADR      r0,|L3.120|
00002e  f7fffffe          BL       strrchr
000032  1c40              ADDS     r0,r0,#1
000034  e000              B        |L3.56|
                  |L3.54|
000036  a010              ADR      r0,|L3.120|
                  |L3.56|
000038  4605              MOV      r5,r0
00003a  f7fffffe          BL       mico_get_time
00003e  4606              MOV      r6,r0
000040  a01a              ADR      r0,|L3.172|
000042  2157              MOVS     r1,#0x57
000044  4b1a              LDR      r3,|L3.176|
000046  462a              MOV      r2,r5
000048  e9cd1000          STRD     r1,r0,[sp,#0]
00004c  4631              MOV      r1,r6
00004e  a019              ADR      r0,|L3.180|
000050  f7fffffe          BL       __2printf
000054  4807              LDR      r0,|L3.116|
000056  f7fffffe          BL       mico_rtos_unlock_mutex
00005a  bf00              NOP      
                  |L3.92|
00005c  bf00              NOP      
00005e  e005              B        |L3.108|
                  |L3.96|
000060  bf00              NOP      
;;;88       
;;;89       mico_system_power_perform( context, eState_Standby );
000062  2104              MOVS     r1,#4
000064  4620              MOV      r0,r4
000066  f7fffffe          BL       mico_system_power_perform
;;;90     
;;;91     exit: 
00006a  bf00              NOP      
                  |L3.108|
;;;92       return;
;;;93     }
00006c  bd7c              POP      {r2-r6,pc}
;;;94     
                          ENDP

00006e  0000              DCW      0x0000
                  |L3.112|
                          DCD      mico_debug_enabled
                  |L3.116|
                          DCD      stdio_tx_mutex
                  |L3.120|
000078  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon."
00007c  2e5c2e2e
000080  5c2e2e5c
000084  4d49434f
000088  5c737973
00008c  74656d5c
000090  6d69636f
000094  5f737973
000098  74656d5f
00009c  706f7765
0000a0  725f6461
0000a4  656d6f6e
0000a8  2e      
0000a9  6300              DCB      "c",0
0000ab  00                DCB      0
                  |L3.172|
0000ac  00                DCB      0
0000ad  00                DCB      0
0000ae  00                DCB      0
0000af  00                DCB      0
                  |L3.176|
                          DCD      |symbol_number.25|
                  |L3.180|
0000b4  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
0000b8  5b4d4943
0000bc  4f3a2573
0000c0  3a25733a
0000c4  2534645d
0000c8  202a2a41
0000cc  53534552
0000d0  542a2a20
0000d4  25730d0a
0000d8  00      
0000d9  00                DCB      0
0000da  00                DCB      0
0000db  00                DCB      0

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

                  _sys_state_thread PROC
;;;95     
;;;96     static void _sys_state_thread(void *arg)
000000  b570              PUSH     {r4-r6,lr}
;;;97     {  
000002  4605              MOV      r5,r0
;;;98       UNUSED_PARAMETER(arg);
;;;99       mico_Context_t* context = arg;
000004  462c              MOV      r4,r5
;;;100      
;;;101      /*System status changed*/
;;;102      while(mico_rtos_get_semaphore( &context->micoStatus.sys_state_change_sem, MICO_WAIT_FOREVER) == kNoErr ){
000006  e032              B        |L4.110|
                  |L4.8|
;;;103        
;;;104        if(needs_update == true)
000008  481f              LDR      r0,|L4.136|
00000a  7800              LDRB     r0,[r0,#0]  ; needs_update
00000c  2801              CMP      r0,#1
00000e  d102              BNE      |L4.22|
;;;105          mico_system_context_update( context );
000010  4620              MOV      r0,r4
000012  f7fffffe          BL       mico_system_context_update
                  |L4.22|
;;;106        
;;;107        switch( context->micoStatus.current_sys_state ){
000016  f894014c          LDRB     r0,[r4,#0x14c]
00001a  b130              CBZ      r0,|L4.42|
00001c  2801              CMP      r0,#1
00001e  d005              BEQ      |L4.44|
000020  2802              CMP      r0,#2
000022  d00c              BEQ      |L4.62|
000024  2804              CMP      r0,#4
000026  d120              BNE      |L4.106|
000028  e012              B        |L4.80|
                  |L4.42|
;;;108        case eState_Normal:
;;;109          break;
00002a  e01f              B        |L4.108|
                  |L4.44|
;;;110        case eState_Software_Reset:
;;;111          sendNotifySYSWillPowerOff( );
00002c  f7fffffe          BL       sendNotifySYSWillPowerOff
;;;112          mico_thread_msleep( 500 );
000030  f44f70fa          MOV      r0,#0x1f4
000034  f7fffffe          BL       msleep
;;;113          MicoSystemReboot( );
000038  f7fffffe          BL       MicoSystemReboot
;;;114          break;
00003c  e016              B        |L4.108|
                  |L4.62|
;;;115        case eState_Wlan_Powerdown:
;;;116          sendNotifySYSWillPowerOff( );
00003e  f7fffffe          BL       sendNotifySYSWillPowerOff
;;;117          mico_thread_msleep( 500 );
000042  f44f70fa          MOV      r0,#0x1f4
000046  f7fffffe          BL       msleep
;;;118          micoWlanPowerOff( );
00004a  f7fffffe          BL       wifi_power_down
;;;119          break;
00004e  e00d              B        |L4.108|
                  |L4.80|
;;;120        case eState_Standby:
;;;121          sendNotifySYSWillPowerOff( );
000050  f7fffffe          BL       sendNotifySYSWillPowerOff
;;;122          mico_thread_msleep( 500 );
000054  f44f70fa          MOV      r0,#0x1f4
000058  f7fffffe          BL       msleep
;;;123          micoWlanPowerOff( );
00005c  f7fffffe          BL       wifi_power_down
;;;124          MicoSystemStandBy( MICO_WAIT_FOREVER );
000060  f04f30ff          MOV      r0,#0xffffffff
000064  f7fffffe          BL       MicoSystemStandBy
;;;125          break;
000068  e000              B        |L4.108|
                  |L4.106|
;;;126        default:
;;;127          break;
00006a  bf00              NOP      
                  |L4.108|
00006c  bf00              NOP                            ;109
                  |L4.110|
00006e  f04f31ff          MOV      r1,#0xffffffff        ;102
000072  f50470a8          ADD      r0,r4,#0x150          ;102
000076  f7fffffe          BL       mico_rtos_get_semaphore
00007a  2800              CMP      r0,#0                 ;102
00007c  d0c4              BEQ      |L4.8|
;;;128        }
;;;129      }
;;;130      mico_rtos_delete_thread( NULL );
00007e  2000              MOVS     r0,#0
000080  f7fffffe          BL       mico_rtos_delete_thread
;;;131    }
000084  bd70              POP      {r4-r6,pc}
;;;132    
                          ENDP

000086  0000              DCW      0x0000
                  |L4.136|
                          DCD      needs_update

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

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  mico_system_power_daemon_start PROC
;;;132    
;;;133    OSStatus mico_system_power_daemon_start( mico_Context_t* const in_context )
000000  e92d41fc          PUSH     {r2-r8,lr}
;;;134    {
000004  4604              MOV      r4,r0
;;;135      OSStatus err = kNoErr;
000006  2500              MOVS     r5,#0
;;;136    
;;;137      err = mico_rtos_init_semaphore( &in_context->micoStatus.sys_state_change_sem, 1 ); 
000008  2101              MOVS     r1,#1
00000a  f50470a8          ADD      r0,r4,#0x150
00000e  f7fffffe          BL       mico_rtos_init_semaphore
000012  4605              MOV      r5,r0
;;;138      require_noerr(err, exit);
000014  bf00              NOP      
000016  462e              MOV      r6,r5
000018  2e00              CMP      r6,#0
00001a  d027              BEQ      |L5.108|
00001c  bf00              NOP      
00001e  4833              LDR      r0,|L5.236|
000020  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000022  b900              CBNZ     r0,|L5.38|
000024  e020              B        |L5.104|
                  |L5.38|
000026  4832              LDR      r0,|L5.240|
000028  f7fffffe          BL       mico_rtos_lock_mutex
00002c  215c              MOVS     r1,#0x5c
00002e  a031              ADR      r0,|L5.244|
000030  f7fffffe          BL       strrchr
000034  b128              CBZ      r0,|L5.66|
000036  215c              MOVS     r1,#0x5c
000038  a02e              ADR      r0,|L5.244|
00003a  f7fffffe          BL       strrchr
00003e  1c40              ADDS     r0,r0,#1
000040  e000              B        |L5.68|
                  |L5.66|
000042  a02c              ADR      r0,|L5.244|
                  |L5.68|
000044  4607              MOV      r7,r0
000046  f7fffffe          BL       mico_get_time
00004a  4680              MOV      r8,r0
00004c  a036              ADR      r0,|L5.296|
00004e  218a              MOVS     r1,#0x8a
000050  4b36              LDR      r3,|L5.300|
000052  463a              MOV      r2,r7
000054  e9cd1000          STRD     r1,r0,[sp,#0]
000058  4641              MOV      r1,r8
00005a  a035              ADR      r0,|L5.304|
00005c  f7fffffe          BL       __2printf
000060  4823              LDR      r0,|L5.240|
000062  f7fffffe          BL       mico_rtos_unlock_mutex
000066  bf00              NOP      
                  |L5.104|
000068  bf00              NOP      
00006a  e03b              B        |L5.228|
                  |L5.108|
00006c  bf00              NOP      
;;;139    
;;;140      in_context->micoStatus.current_sys_state = eState_Normal;
00006e  2000              MOVS     r0,#0
000070  f884014c          STRB     r0,[r4,#0x14c]
;;;141    
;;;142      mico_rtos_create_thread( NULL, MICO_APPLICATION_PRIORITY, "Power Daemon", _sys_state_thread, 800, (void *)in_context ); 
000074  f44f7048          MOV      r0,#0x320
000078  4b37              LDR      r3,|L5.344|
00007a  a238              ADR      r2,|L5.348|
00007c  2107              MOVS     r1,#7
00007e  e9cd0400          STRD     r0,r4,[sp,#0]
000082  2000              MOVS     r0,#0
000084  f7fffffe          BL       mico_rtos_create_thread
;;;143      require_noerr(err, exit);
000088  bf00              NOP      
00008a  462e              MOV      r6,r5
00008c  2e00              CMP      r6,#0
00008e  d027              BEQ      |L5.224|
000090  bf00              NOP      
000092  4816              LDR      r0,|L5.236|
000094  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000096  b900              CBNZ     r0,|L5.154|
000098  e020              B        |L5.220|
                  |L5.154|
00009a  4815              LDR      r0,|L5.240|
00009c  f7fffffe          BL       mico_rtos_lock_mutex
0000a0  215c              MOVS     r1,#0x5c
0000a2  a014              ADR      r0,|L5.244|
0000a4  f7fffffe          BL       strrchr
0000a8  b128              CBZ      r0,|L5.182|
0000aa  215c              MOVS     r1,#0x5c
0000ac  a011              ADR      r0,|L5.244|
0000ae  f7fffffe          BL       strrchr
0000b2  1c40              ADDS     r0,r0,#1
0000b4  e000              B        |L5.184|
                  |L5.182|
0000b6  a00f              ADR      r0,|L5.244|
                  |L5.184|
0000b8  4607              MOV      r7,r0
0000ba  f7fffffe          BL       mico_get_time
0000be  4680              MOV      r8,r0
0000c0  a019              ADR      r0,|L5.296|
0000c2  218f              MOVS     r1,#0x8f
0000c4  4b19              LDR      r3,|L5.300|
0000c6  463a              MOV      r2,r7
0000c8  e9cd1000          STRD     r1,r0,[sp,#0]
0000cc  4641              MOV      r1,r8
0000ce  a018              ADR      r0,|L5.304|
0000d0  f7fffffe          BL       __2printf
0000d4  4806              LDR      r0,|L5.240|
0000d6  f7fffffe          BL       mico_rtos_unlock_mutex
0000da  bf00              NOP      
                  |L5.220|
0000dc  bf00              NOP      
0000de  e001              B        |L5.228|
                  |L5.224|
0000e0  bf00              NOP      
;;;144      
;;;145    exit:
0000e2  bf00              NOP      
                  |L5.228|
;;;146      return kNoErr;
0000e4  2000              MOVS     r0,#0
;;;147    }
0000e6  e8bd81fc          POP      {r2-r8,pc}
;;;148    
                          ENDP

0000ea  0000              DCW      0x0000
                  |L5.236|
                          DCD      mico_debug_enabled
                  |L5.240|
                          DCD      stdio_tx_mutex
                  |L5.244|
0000f4  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon."
0000f8  2e5c2e2e
0000fc  5c2e2e5c
000100  4d49434f
000104  5c737973
000108  74656d5c
00010c  6d69636f
000110  5f737973
000114  74656d5f
000118  706f7765
00011c  725f6461
000120  656d6f6e
000124  2e      
000125  6300              DCB      "c",0
000127  00                DCB      0
                  |L5.296|
000128  00                DCB      0
000129  00                DCB      0
00012a  00                DCB      0
00012b  00                DCB      0
                  |L5.300|
                          DCD      |symbol_number.26|
                  |L5.304|
000130  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
000134  5b4d4943
000138  4f3a2573
00013c  3a25733a
000140  2534645d
000144  202a2a41
000148  53534552
00014c  542a2a20
000150  25730d0a
000154  00      
000155  00                DCB      0
000156  00                DCB      0
000157  00                DCB      0
                  |L5.344|
                          DCD      _sys_state_thread
                  |L5.348|
00015c  506f7765          DCB      "Power Daemon",0
000160  72204461
000164  656d6f6e
000168  00      
000169  00                DCB      0
00016a  00                DCB      0
00016b  00                DCB      0

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

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  mico_system_power_perform PROC
;;;149    
;;;150    OSStatus mico_system_power_perform( mico_Context_t* const in_context, mico_system_state_t new_state )
000000  e92d47fc          PUSH     {r2-r10,lr}
;;;151    {
000004  4604              MOV      r4,r0
000006  460d              MOV      r5,r1
;;;152      OSStatus err = kNoErr;
000008  2600              MOVS     r6,#0
;;;153      mico_Context_t* context = NULL;
00000a  2700              MOVS     r7,#0
;;;154      
;;;155      context = mico_system_context_get( );
00000c  f7fffffe          BL       mico_system_context_get
000010  4607              MOV      r7,r0
;;;156      require_action( context, exit, err = kNotPreparedErr );
000012  bf00              NOP      
000014  2f00              CMP      r7,#0
000016  d128              BNE      |L6.106|
000018  bf00              NOP      
00001a  4831              LDR      r0,|L6.224|
00001c  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
00001e  b900              CBNZ     r0,|L6.34|
000020  e020              B        |L6.100|
                  |L6.34|
000022  4830              LDR      r0,|L6.228|
000024  f7fffffe          BL       mico_rtos_lock_mutex
000028  215c              MOVS     r1,#0x5c
00002a  a02f              ADR      r0,|L6.232|
00002c  f7fffffe          BL       strrchr
000030  b128              CBZ      r0,|L6.62|
000032  215c              MOVS     r1,#0x5c
000034  a02c              ADR      r0,|L6.232|
000036  f7fffffe          BL       strrchr
00003a  1c40              ADDS     r0,r0,#1
00003c  e000              B        |L6.64|
                  |L6.62|
00003e  a02a              ADR      r0,|L6.232|
                  |L6.64|
000040  4680              MOV      r8,r0
000042  f7fffffe          BL       mico_get_time
000046  4681              MOV      r9,r0
000048  a034              ADR      r0,|L6.284|
00004a  219c              MOVS     r1,#0x9c
00004c  4b34              LDR      r3,|L6.288|
00004e  4642              MOV      r2,r8
000050  e9cd1000          STRD     r1,r0,[sp,#0]
000054  4649              MOV      r1,r9
000056  a033              ADR      r0,|L6.292|
000058  f7fffffe          BL       __2printf
00005c  4821              LDR      r0,|L6.228|
00005e  f7fffffe          BL       mico_rtos_unlock_mutex
000062  bf00              NOP      
                  |L6.100|
000064  bf00              NOP      
000066  4e39              LDR      r6,|L6.332|
000068  e036              B        |L6.216|
                  |L6.106|
00006a  bf00              NOP      
;;;157    
;;;158      in_context->micoStatus.current_sys_state = new_state;
00006c  f884514c          STRB     r5,[r4,#0x14c]
;;;159      require( in_context->micoStatus.sys_state_change_sem, exit);
000070  bf00              NOP      
000072  f44f70a8          MOV      r0,#0x150
000076  5900              LDR      r0,[r0,r4]
000078  2800              CMP      r0,#0
00007a  d127              BNE      |L6.204|
00007c  bf00              NOP      
00007e  4818              LDR      r0,|L6.224|
000080  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000082  b900              CBNZ     r0,|L6.134|
000084  e020              B        |L6.200|
                  |L6.134|
000086  4817              LDR      r0,|L6.228|
000088  f7fffffe          BL       mico_rtos_lock_mutex
00008c  215c              MOVS     r1,#0x5c
00008e  a016              ADR      r0,|L6.232|
000090  f7fffffe          BL       strrchr
000094  b128              CBZ      r0,|L6.162|
000096  215c              MOVS     r1,#0x5c
000098  a013              ADR      r0,|L6.232|
00009a  f7fffffe          BL       strrchr
00009e  1c40              ADDS     r0,r0,#1
0000a0  e000              B        |L6.164|
                  |L6.162|
0000a2  a011              ADR      r0,|L6.232|
                  |L6.164|
0000a4  4680              MOV      r8,r0
0000a6  f7fffffe          BL       mico_get_time
0000aa  4681              MOV      r9,r0
0000ac  a01b              ADR      r0,|L6.284|
0000ae  219f              MOVS     r1,#0x9f
0000b0  4b1b              LDR      r3,|L6.288|
0000b2  4642              MOV      r2,r8
0000b4  e9cd1000          STRD     r1,r0,[sp,#0]
0000b8  4649              MOV      r1,r9
0000ba  a01a              ADR      r0,|L6.292|
0000bc  f7fffffe          BL       __2printf
0000c0  4808              LDR      r0,|L6.228|
0000c2  f7fffffe          BL       mico_rtos_unlock_mutex
0000c6  bf00              NOP      
                  |L6.200|
0000c8  bf00              NOP      
0000ca  e005              B        |L6.216|
                  |L6.204|
0000cc  bf00              NOP      
;;;160      mico_rtos_set_semaphore( &in_context->micoStatus.sys_state_change_sem );   
0000ce  f50470a8          ADD      r0,r4,#0x150
0000d2  f7fffffe          BL       mico_rtos_set_semaphore
;;;161    
;;;162    exit:
0000d6  bf00              NOP      
                  |L6.216|
;;;163      return err; 
0000d8  4630              MOV      r0,r6
;;;164    }
0000da  e8bd87fc          POP      {r2-r10,pc}
;;;165    
                          ENDP

0000de  0000              DCW      0x0000
                  |L6.224|
                          DCD      mico_debug_enabled
                  |L6.228|
                          DCD      stdio_tx_mutex
                  |L6.232|
0000e8  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon."
0000ec  2e5c2e2e
0000f0  5c2e2e5c
0000f4  4d49434f
0000f8  5c737973
0000fc  74656d5c
000100  6d69636f
000104  5f737973
000108  74656d5f
00010c  706f7765
000110  725f6461
000114  656d6f6e
000118  2e      
000119  6300              DCB      "c",0
00011b  00                DCB      0
                  |L6.284|
00011c  00                DCB      0
00011d  00                DCB      0
00011e  00                DCB      0
00011f  00                DCB      0
                  |L6.288|
                          DCD      |symbol_number.27|
                  |L6.292|
000124  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
000128  5b4d4943
00012c  4f3a2573
000130  3a25733a
000134  2534645d
000138  202a2a41
00013c  53534552
000140  542a2a20
000144  25730d0a
000148  00      
000149  00                DCB      0
00014a  00                DCB      0
00014b  00                DCB      0
                  |L6.332|
                          DCD      0xffffe5a7

                          AREA ||.constdata||, DATA, READONLY, ALIGN=0

                  __PRETTY_FUNCTION__
000000  766f6964          DCB      0x76,0x6f,0x69,0x64
000004  20506c61          DCB      0x20,0x50,0x6c,0x61
000008  74666f72          DCB      0x74,0x66,0x6f,0x72
00000c  6d456173          DCB      0x6d,0x45,0x61,0x73
000010  794c696e          DCB      0x79,0x4c,0x69,0x6e
000014  6b427574          DCB      0x6b,0x42,0x75,0x74
000018  746f6e43          DCB      0x74,0x6f,0x6e,0x43
00001c  6c69636b          DCB      0x6c,0x69,0x63,0x6b
000020  65644361          DCB      0x65,0x64,0x43,0x61
000024  6c6c6261          DCB      0x6c,0x6c,0x62,0x61
000028  636b2876          DCB      0x63,0x6b,0x28,0x76
00002c  6f696429          DCB      0x6f,0x69,0x64,0x29
000030  00                DCB      0x00
                  |symbol_number.24|
000031  766f69            DCB      0x76,0x6f,0x69
000034  6420506c          DCB      0x64,0x20,0x50,0x6c
000038  6174666f          DCB      0x61,0x74,0x66,0x6f
00003c  726d4561          DCB      0x72,0x6d,0x45,0x61
000040  73794c69          DCB      0x73,0x79,0x4c,0x69
000044  6e6b4275          DCB      0x6e,0x6b,0x42,0x75
000048  74746f6e          DCB      0x74,0x74,0x6f,0x6e
00004c  4c6f6e67          DCB      0x4c,0x6f,0x6e,0x67
000050  50726573          DCB      0x50,0x72,0x65,0x73
000054  73656443          DCB      0x73,0x65,0x64,0x43
000058  616c6c62          DCB      0x61,0x6c,0x6c,0x62
00005c  61636b28          DCB      0x61,0x63,0x6b,0x28
000060  766f6964          DCB      0x76,0x6f,0x69,0x64
000064  2900              DCB      0x29,0x00
                  |symbol_number.25|
000066  766f              DCB      0x76,0x6f
000068  69642050          DCB      0x69,0x64,0x20,0x50
00006c  6c617466          DCB      0x6c,0x61,0x74,0x66
000070  6f726d53          DCB      0x6f,0x72,0x6d,0x53
000074  74616e64          DCB      0x74,0x61,0x6e,0x64
000078  62794275          DCB      0x62,0x79,0x42,0x75
00007c  74746f6e          DCB      0x74,0x74,0x6f,0x6e
000080  436c6963          DCB      0x43,0x6c,0x69,0x63
000084  6b656443          DCB      0x6b,0x65,0x64,0x43
000088  616c6c62          DCB      0x61,0x6c,0x6c,0x62
00008c  61636b28          DCB      0x61,0x63,0x6b,0x28
000090  766f6964          DCB      0x76,0x6f,0x69,0x64
000094  2900              DCB      0x29,0x00
                  |symbol_number.26|
000096  7369              DCB      0x73,0x69
000098  676e6564          DCB      0x67,0x6e,0x65,0x64
00009c  20696e74          DCB      0x20,0x69,0x6e,0x74
0000a0  206d6963          DCB      0x20,0x6d,0x69,0x63
0000a4  6f5f7379          DCB      0x6f,0x5f,0x73,0x79
0000a8  7374656d          DCB      0x73,0x74,0x65,0x6d
0000ac  5f706f77          DCB      0x5f,0x70,0x6f,0x77
0000b0  65725f64          DCB      0x65,0x72,0x5f,0x64
0000b4  61656d6f          DCB      0x61,0x65,0x6d,0x6f
0000b8  6e5f7374          DCB      0x6e,0x5f,0x73,0x74
0000bc  61727428          DCB      0x61,0x72,0x74,0x28
0000c0  73747275          DCB      0x73,0x74,0x72,0x75
0000c4  6374205f          DCB      0x63,0x74,0x20,0x5f
0000c8  6d69636f          DCB      0x6d,0x69,0x63,0x6f
0000cc  5f436f6e          DCB      0x5f,0x43,0x6f,0x6e
0000d0  74657874          DCB      0x74,0x65,0x78,0x74
0000d4  5f74202a          DCB      0x5f,0x74,0x20,0x2a
0000d8  636f6e73          DCB      0x63,0x6f,0x6e,0x73
0000dc  742900            DCB      0x74,0x29,0x00
                  |symbol_number.27|
0000df  73                DCB      0x73
0000e0  69676e65          DCB      0x69,0x67,0x6e,0x65
0000e4  6420696e          DCB      0x64,0x20,0x69,0x6e
0000e8  74206d69          DCB      0x74,0x20,0x6d,0x69
0000ec  636f5f73          DCB      0x63,0x6f,0x5f,0x73
0000f0  79737465          DCB      0x79,0x73,0x74,0x65
0000f4  6d5f706f          DCB      0x6d,0x5f,0x70,0x6f
0000f8  7765725f          DCB      0x77,0x65,0x72,0x5f
0000fc  70657266          DCB      0x70,0x65,0x72,0x66
000100  6f726d28          DCB      0x6f,0x72,0x6d,0x28
000104  73747275          DCB      0x73,0x74,0x72,0x75
000108  6374205f          DCB      0x63,0x74,0x20,0x5f
00010c  6d69636f          DCB      0x6d,0x69,0x63,0x6f
000110  5f436f6e          DCB      0x5f,0x43,0x6f,0x6e
000114  74657874          DCB      0x74,0x65,0x78,0x74
000118  5f74202a          DCB      0x5f,0x74,0x20,0x2a
00011c  636f6e73          DCB      0x63,0x6f,0x6e,0x73
000120  742c2065          DCB      0x74,0x2c,0x20,0x65
000124  6e756d20          DCB      0x6e,0x75,0x6d,0x20
000128  3c756e6e          DCB      0x3c,0x75,0x6e,0x6e
00012c  616d6564          DCB      0x61,0x6d,0x65,0x64
000130  3e2900            DCB      0x3e,0x29,0x00

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

                  needs_update
000000  00                DCB      0x00

;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\MICO\\system\\mico_system_power_daemon.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___26_mico_system_power_daemon_c_325aafce____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___26_mico_system_power_daemon_c_325aafce____REV16| PROC
#line 115

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
