| | |
| | | D:\keil\pack\MKSEMI\MK800X_DFP\1.0.3\Device\Include |
| | | |
| | | <h2>Collection of Component Files used:</h2> |
| | | Build Time Elapsed: 00:00:01 |
| | | Build Time Elapsed: 00:00:00 |
| | | </pre> |
| | | </body> |
| | | </html> |
| | |
| | | <title>Static Call Graph - [.\Objects\uwb_simple_example.axf]</title></head> |
| | | <body><HR> |
| | | <H1>Static Call Graph for image .\Objects\uwb_simple_example.axf</H1><HR> |
| | | <BR><P>#<CALLGRAPH># ARM Linker, 6140002: Last Updated: Fri Apr 25 11:46:56 2025 |
| | | <BR><P>#<CALLGRAPH># ARM Linker, 6140002: Last Updated: Fri Apr 25 17:56:56 2025 |
| | | <BR><P> |
| | | <H3>Maximum Stack Usage = 1604 bytes + Unknown(Cycles, Untraceable Function Pointers)</H3><H3> |
| | | Call chain for Maximum Stack Depth:</H3> |
| | |
| | | <BR>[Called By]<UL><LI><a href="#[1ce]">>></a> check_input_change |
| | | </UL> |
| | | |
| | | <P><STRONG><a name="[17d]"></a>Program_Init</STRONG> (Thumb, 496 bytes, Stack size 40 bytes, main.o(.text.Program_Init)) |
| | | <BR><BR>[Stack]<UL><LI>Max Depth = 844<LI>Call Chain = Program_Init ⇒ parameter_init_anchor ⇒ flash_open ⇒ trace_printf ⇒ trace_output ⇒ trace_printf (Cycle) |
| | | <P><STRONG><a name="[17d]"></a>Program_Init</STRONG> (Thumb, 500 bytes, Stack size 32 bytes, main.o(.text.Program_Init)) |
| | | <BR><BR>[Stack]<UL><LI>Max Depth = 836<LI>Call Chain = Program_Init ⇒ parameter_init_anchor ⇒ flash_open ⇒ trace_printf ⇒ trace_output ⇒ trace_printf (Cycle) |
| | | </UL> |
| | | <BR>[Calls]<UL><LI><a href="#[a5]">>></a> trace_printf |
| | | <LI><a href="#[e6]">>></a> delay_ms |
| | |
| | | <BR><BR>[Called By]<UL><LI><a href="#[1f9]">>></a> power_enter_power_down_mode |
| | | </UL> |
| | | |
| | | <P><STRONG><a name="[2a]"></a>main</STRONG> (Thumb, 596 bytes, Stack size 16 bytes, main.o(.text.main)) |
| | | <P><STRONG><a name="[2a]"></a>main</STRONG> (Thumb, 600 bytes, Stack size 16 bytes, main.o(.text.main)) |
| | | <BR><BR>[Stack]<UL><LI>Max Depth = 1220<LI>Call Chain = main ⇒ IdleTask ⇒ UART_CheckReceive ⇒ DBG_Poll ⇒ UsartParseDataHandler ⇒ GPS_RecvFsm ⇒ UDPClient_UploadGPS ⇒ Socket_Send ⇒ HIDO_Debug ⇒ Uart_Send ⇒ uart_send ⇒ dma_transfer ⇒ trace_assert_dump ⇒ trace_print_backtrace ⇒ mk_snprintf ⇒ trace_format ⇒ _PrintInt ⇒ _PrintUnsigned ⇒ __aeabi_uidiv |
| | | </UL> |
| | | <BR>[Calls]<UL><LI><a href="#[1b9]">>></a> adc_open |
| | |
| | | I (D:\keil\ARM\ARMCLANG\include\stdarg.h)(0x5DDFFD72)
|
| | | I (include\drivers\mk_gpio.h)(0x6809FCA0)
|
| | | I (include\drivers\Usart.h)(0x6809FCA0)
|
| | | F (.\include\main\main.c)(0x680AFDCC)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-D__MICROLIB -gdwarf-3 -O3 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include/components/internet/src -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter
-I./RTE/_MK8000_Release
-ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include
-ID:/keil/ARM/CMSIS/Include
-D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC
-o ./objects/main.o -MD)
|
| | | F (.\include\main\main.c)(0x680B5C67)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-D__MICROLIB -gdwarf-3 -O3 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include/components/internet/src -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter
-I./RTE/_MK8000_Release
-ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include
-ID:/keil/ARM/CMSIS/Include
-D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC
-o ./objects/main.o -MD)
|
| | | I (include\drivers\mk_trace.h)(0x6809FCA0)
|
| | | I (include\drivers\mk_common.h)(0x6809FCA0)
|
| | | I (D:\keil\ARM\ARMCLANG\include\stddef.h)(0x5DDFFD72)
|
| | |
| | | I (include\drivers\mk_misc.h)(0x6809FCA0)
|
| | | I (include\drivers\serial_at_cmd_app.h)(0x6809FCA0)
|
| | | I (include\drivers\DBG.h)(0x6809FCA0)
|
| | | F (.\uwb_app.c)(0x6809FCA0)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-D__MICROLIB -gdwarf-3 -O3 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include/components/internet/src -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter
-I./RTE/_MK8000_Release
-ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include
-ID:/keil/ARM/CMSIS/Include
-D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC
-o ./objects/uwb_app.o -MD)
|
| | | F (.\uwb_app.c)(0x680B507B)(-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m0 -c
-fno-rtti -funsigned-char
-D__MICROLIB -gdwarf-3 -O3 -ffunction-sections -w -I ./include/board -I ../keil -I .. -I ./include/board -I ./include/CMSIS/Include -I ./include/components/algo/inc -I ./include/components/crc -I ./include/components/libc -I ./include/components/wsf/include -I ./include/components/wsf/include/platform -I ./include/devices/MK800X/Include -I ./include/drivers -I ./include/components/hido/Include -I ./include/components/internet/inc -I ./include/components/hal -I ../keil -I ./include/src -I ./include/components/internet/src -Wno-declaration-after-statement -Wno-double-promotion -Wno-extra-semi-stmt -Wno-gnu-zero-variadic-macro-arguments -Wno-padded -Wno-unused-parameter
-I./RTE/_MK8000_Release
-ID:/keil/pack/MKSEMI/MK800X_DFP/1.0.3/Device/Include
-ID:/keil/ARM/CMSIS/Include
-D__UVISION_VERSION="530" -D_RTE_ -DUWB_EN -DSTD_LIBC
-o ./objects/uwb_app.o -MD)
|
| | | I (include\drivers\mk_trace.h)(0x6809FCA0)
|
| | | I (include\drivers\mk_common.h)(0x6809FCA0)
|
| | | I (D:\keil\ARM\ARMCLANG\include\stddef.h)(0x5DDFFD72)
|
| | |
| | | #define UPDATE_TIME 10 |
| | | |
| | | |
| | | #define UWB_OPEN_COUNT 1 |
| | | #define UWB_MEASUREMENT_INTERVAL 3 |
| | | #define UWB_MEASUREMENT_INTERVAL_SLEEP 60 |
| | | |
| | | extern uint8_t mUsartReceivePack[100]; |
| | | extern uint8_t mUsart2ReceivePack[150]; |
| | | extern uint8_t state5V_prase_flag,gps_prase_flag; |
| | |
| | | LINK_SUCCESS, |
| | | SEARCH_DEV, |
| | | } Operation_step; |
| | | Operation_step UWB_work_state; |
| | | |
| | | Operation_step UWB_work_state; |
| | | // å®ä¹ç¶æ |
| | | typedef enum { |
| | | STATE_NORMAL, // æ£å¸¸ç¶æï¼3ç§æµè·ä¸ä¼ 䏿¬¡ |
| | | STATE_SLEEP // ä¼ç ç¶æï¼1åéæµè·ä¸ä¼ 䏿¬¡ |
| | | } CountState_t; |
| | | |
| | | uint32_t uwb_time_count = 0; // 宿¶å¨è®¡æ°å¼ |
| | | //uint32_t step_count = 0; // æ¥æ°è®¡æ° |
| | | //uint32_t last_step_count = 0; // ä¸ä¸æ¬¡æ¥æ° |
| | | |
| | | CountState_t current_state = STATE_NORMAL; // å½åç¶æ |
| | | uint32_t state_start_time = 0; // ç¶æå¼å§æ¶é´ |
| | | |
| | | Commend_SendDate send_struct; |
| | | struct ADC_CFG_T usr_adc_cfg = { |
| | |
| | | uart_close(UART_ID0);//è§£ç»åæ¥ä¸²å£0 |
| | | } |
| | | |
| | | extern uint32_t uwb_time_count; |
| | | void upload_apppoll() |
| | | { |
| | | uint32_t elapsed_time_jibu; |
| | | |
| | | switch (current_state) |
| | | { |
| | | case STATE_NORMAL: |
| | | elapsed_time_jibu = uwb_time_count - state_start_time; |
| | | switch(elapsed_time_jibu) |
| | | { |
| | | case UWB_OPEN_COUNT: |
| | | |
| | | CloseUWB(); |
| | | break; |
| | | |
| | | case UWB_MEASUREMENT_INTERVAL: |
| | | OpenUWB(); |
| | | state_start_time = uwb_time_count; |
| | | break; |
| | | } |
| | | break; |
| | | |
| | | case STATE_SLEEP: |
| | | elapsed_time_jibu = uwb_time_count - state_start_time; |
| | | switch(elapsed_time_jibu) |
| | | { |
| | | case UWB_OPEN_COUNT: |
| | | |
| | | CloseUWB(); |
| | | break; |
| | | |
| | | case UWB_MEASUREMENT_INTERVAL_SLEEP: |
| | | |
| | | OpenUWB(); |
| | | state_start_time = uwb_time_count; |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | |
| | | } |
| | | |
| | | uint8_t flag_4guart_needinit=0; |
| | | uint8_t index1,index2,index3; |
| | | int16_t Voltage_input; |
| | |
| | | extern uint8_t receive_flag; |
| | | int main(void) |
| | | { |
| | | __enable_irq(); |
| | | board_clock_run(); |
| | | boot_deinit(); |
| | | board_pins_config(); |
| | |
| | | .phy_cfg.code_index = 9, /* TRX preamble code */ |
| | | .phy_cfg.mean_prf = MEAN_PRF_64M, /* Mean prf 64/128/256M */ |
| | | .phy_cfg.data_bit_rate = DATA_BR_6M8, /* Data rate 6.8M */ |
| | | .phy_cfg.sync_sym = PREAM_LEN_128, /* Preamble duration, length of preamble 128 */ |
| | | .phy_cfg.sync_sym = PREAM_LEN_64, /* Preamble duration, length of preamble 128 */ |
| | | .phy_cfg.sfd_sym = NON_STD_NSFD5_8, /* Identifier for SFD sequence */ |
| | | .phy_cfg.ranging_bit = 1, /* ranging bit set 1 */ |
| | | .phy_cfg.trx_mode = TRX_MODE_15_4A, /* IEEE802.15.4z - BPRF mode */ |