修改了下个单元模块的大小,降低了点内存占用

This commit is contained in:
小马_666 2024-09-20 11:14:25 +08:00
parent 81693fe158
commit d7a851b5ba
32 changed files with 6801 additions and 6853 deletions

View File

@ -193,7 +193,7 @@
"<virtual_root>/drivers/src/driver_usart.c",
"<virtual_root>/drivers/src/common.c"
],
"toolchain": "AC5",
"toolchain": "AC6",
"compileConfig": {
"cpuType": "Cortex-M0+",
"floatingPointHardware": "none",
@ -206,7 +206,7 @@
"id": 1,
"mem": {
"startAddr": "0x20000000",
"size": "0x5000"
"size": "0x4000"
},
"isChecked": true,
"noInit": false
@ -313,12 +313,6 @@
"command": "cd .\\MDK && copy \"${OutDir}\\${ProjectName}.axf\" \"Objects\\${ProjectName}.axf\"",
"disable": false,
"abortAfterFailed": true
},
{
"name": "\"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
"command": "cd .\\MDK && \"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
"disable": false,
"abortAfterFailed": true
}
],
"global": {
@ -344,15 +338,23 @@
"AC6": {
"version": 3,
"beforeBuildTasks": [],
"afterBuildTasks": [],
"afterBuildTasks": [
{
"name": "\"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
"disable": false,
"abortAfterFailed": true,
"command": "cd .\\MDK && \"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\""
}
],
"global": {
"output-debug-info": "enable"
},
"c/cpp-compiler": {
"optimization": "level-image-size",
"language-c": "c99",
"language-cpp": "c++98",
"warnings": "ac5-like-warnings"
"language-c": "gnu99",
"language-cpp": "gnu++98",
"warnings": "ac5-like-warnings",
"link-time-optimization": true
},
"asm-compiler": {
"$use": "asm-auto"

Binary file not shown.

View File

@ -26,26 +26,86 @@ Project File Date: 09/19/2024
<h2>Output:</h2>
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'USART1_Interrupt'
Note: source file '..\RTOS\components\drivers\src\dev_pin.c' - object file renamed from '.\dev_pin.o' to '.\dev_pin_1.o'.
compiling cpu.c...
compiling slab.c...
compiling bsp_io_dev.c...
Rebuild target 'USART1_Interrupt'
assembling startup_ciu32l051.s...
compiling bsp_button.c...
compiling bsp_rtc.c...
compiling finsh_port.c...
compiling bsp_io_dev.c...
compiling main.c...
compiling bsp_wdg.c...
compiling bsp_sensor.c...
compiling bsp_adc.c...
compiling bsp_history.c...
compiling msh.c...
compiling cmd.c...
compiling bsp_flash.c...
compiling shell.c...
compiling board.c...
compiling clock.c...
compiling components.c...
compiling cpu.c...
compiling cpuport.c...
compiling idle.c...
compiling ulog.c...
compiling irq.c...
compiling memheap.c...
compiling mempool.c...
assembling context_rvds.S...
compiling mem.c...
compiling kservice.c...
compiling slab.c...
compiling object.c...
compiling scheduler.c...
compiling ipc.c...
compiling timer.c...
compiling thread.c...
compiling device.c...
compiling drv_common.c...
compiling drv_gpio.c...
compiling ciu32l051_std.c...
compiling ciu32l051_std_adc.c...
compiling drv_uart.c...
compiling ciu32l051_std_comp.c...
compiling ciu32l051_std_aes.c...
compiling ciu32l051_std_crc.c...
compiling ciu32l051_std_dma.c...
compiling ciu32l051_std_exti.c...
compiling ciu32l051_std_flash.c...
compiling ciu32l051_std_i2c.c...
compiling ciu32l051_std_gpio.c...
compiling ciu32l051_std_lcd.c...
compiling ciu32l051_std_lptim.c...
compiling ciu32l051_std_lpuart.c...
compiling ciu32l051_std_pmu.c...
compiling ciu32l051_std_rcc.c...
compiling ciu32l051_std_tamp.c...
compiling ciu32l051_std_rtc.c...
compiling ciu32l051_std_spi.c...
compiling ciu32l051_std_trng.c...
compiling ciu32l051_std_tim.c...
compiling SEGGER_RTT_printf.c...
compiling system_ciu32l051.c...
compiling ciu32l051_std_usart.c...
compiling lwutil.c...
compiling lwrb.c...
compiling flexible_button.c...
compiling SEGGER_RTT.c...
compiling dev_pin.c...
compiling agile_led.c...
compiling ringbuffer.c...
compiling completion.c...
compiling console_be.c...
compiling ulog.c...
linking...
Program Size: Code=40354 RO-data=7954 RW-data=136 ZI-data=11008
Program Size: Code=40382 RO-data=7790 RW-data=136 ZI-data=10368
FromELF: creating hex file...
After Build - User command #1: "D:\SXDT\Official_information\HDDZ\demo\CIU32_L051_PROJECT\USART1_Interrupt - RT-Thread\keil5_disp_size_bar\keil5_disp_size_bar.exe"
ram:
RW_IRAM1 :0x20000000
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_______| 68.02 % ( 10.88 KB / 16.00 KB) [5240 B]
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö________| 64.11 % ( 10.26 KB / 16.00 KB) [5880 B]
flash:
ER_IROM1 :0x8000000
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 73.71 % ( 47.18 KB / 64.00 KB) [17228 B]
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 73.50 % ( 47.04 KB / 64.00 KB) [17364 B]
".\CIU32_L051_M307R.axf" - 0 Error(s), 0 Warning(s).
<h2>Software Packages used:</h2>
@ -59,7 +119,7 @@ Package Vendor: HED
C:/Users/16005/AppData/Local/Arm/Packs/HED/CIU32L0xx_DFP/1.2.5/Drivers/CMSIS/Device/CIU32L051/Include
<h2>Collection of Component Files used:</h2>
Build Time Elapsed: 00:00:01
Build Time Elapsed: 00:00:03
</pre>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@
".\lwutil.o"
".\agile_led.o"
".\flexible_button.o"
".\dev_pin_1.o"
".\dev_pin.o"
".\ringbuffer.o"
".\completion.o"
".\ulog.o"

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -257,7 +257,7 @@
<Group>
<GroupName>User/src</GroupName>
<tvExp>0</tvExp>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>

View File

@ -1,6 +1,6 @@
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
CompilerVersion: 6210000::V6.21::ARMCLANG
F (..\user\Source\main.c)(0x66EBD3FF)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./main.o -MD)
F (..\user\Source\main.c)(0x66ECE1D4)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./main.o -MD)
I (..\RTOS\components\finsh\finsh_config.ha.\RTOS\inc\rtdebug.h)(0x00000000)
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ha.\RTOS\inc\rtservice.h)(0x00000000)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
@ -151,7 +151,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
I (..\RTOS\components\drivers\inc\completion.h)(0x66EBC82A)
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
F (..\bsp\src\bsp_flash.c)(0x66EBE64F)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./bsp_flash.o -MD)
F (..\bsp\src\bsp_flash.c)(0x66ECE04C)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./bsp_flash.o -MD)
I (..\RTOS\inc\rtthread.hl.\RTOS\rtconfig.h)(0x00000000)
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
@ -294,7 +294,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
I (..\RTOS\components\finsh\finsh_api.hi.\LIB\agile_led\agile_led.h)(0x00000000)
F (..\bsp\src\bsp_adc.c)(0x66EA657B)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./bsp_adc.o -MD)
F (..\bsp\src\bsp_adc.c)(0x66ECE523)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./bsp_adc.o -MD)
I (..\RTOS\inc\rtthread.h\.\RTOS\rtconfig.h)(0x00000000)
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
@ -637,7 +637,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\ctype.h)(0x6569B012)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
I (..\RTOS\components\finsh\shell.hs.\RTOS\components\finsh\msh.h)(0x00000000)
F (..\RTOS\src\board.c)(0x66EA6B3D)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./board.o -MD)
F (..\RTOS\src\board.c)(0x66ECD406)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./board.o -MD)
I (..\RTOS\inc\rthw.hc.\RTOS\inc\rtthread.hN.\RTOS\rtconfig.h)(0x00000000)
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
@ -1538,8 +1538,8 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
I (..\drivers\inc\drv_gpio.h)(0x66EBB44C)
F (..\drivers\src\drv_uart.c)(0x66EBD9C1)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./drv_uart.o -MD)
I (..\drivers\inc\drv_gpio.h)(0x66ECE4F9)
F (..\drivers\src\drv_uart.c)(0x66ECE819)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./drv_uart.o -MD)
I (..\RTOS\inc\rtthread.ht.\RTOS\rtconfig.h)(0x00000000)
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
@ -2587,7 +2587,7 @@ I (..\RTOS\components\utilities\ulog\ulog_def.h1.\RTOS\inc\rtdbg.h)(0x00000000)
F (..\LIB\FlexibleButton-master\flexible_button.c)(0x668D0631)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./flexible_button.o -MD)
I (..\LIB\FlexibleButton-master\flexible_button.h)(0x66B5791C)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
F (..\RTOS\components\drivers\src\dev_pin.c)(0x66D91B77)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./dev_pin_1.o -MD)
F (..\RTOS\components\drivers\src\dev_pin.c)(0x66D91B77)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar -D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./dev_pin.o -MD)
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
I (..\RTOS\rtconfig.h\.\RTOS\components\finsh\finsh_config.h)(0x00000000)
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\stdarg.h)(0x00000000)

View File

@ -6,18 +6,18 @@
[Found keyword]: ----------Execution Region----------
[name]: ER_IROM1
[Exec base]: 0x8000000
[Size]: 0xbcb4
[Size]: 0xbc2c
[Max]: 0x10000
[Found keyword]: ----------Execution Region----------
[name]: RW_IRAM1
[Exec base]: 0x20000000
[Size]: 0x2b88
[Size]: 0x2908
[Max]: 0x4000
[parse_keil_map over printf bar]:
RW_IRAM1 :0x20000000
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_______| 68.02 % ( 10.88 KB / 16.00 KB) [5240 B]
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö________| 64.11 % ( 10.26 KB / 16.00 KB) [5880 B]
ER_IROM1 :0x8000000
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 73.71 % ( 47.18 KB / 64.00 KB) [17228 B]
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 73.50 % ( 47.04 KB / 64.00 KB) [17364 B]
[export csv]: ./USART1_Interrupt_sort_by_flash.csv
[export csv]: ./USART1_Interrupt_sort_by_ram.csv
[export xlsx]: USART1_Interrupt_analysis.xlsx

Binary file not shown.

View File

@ -1,93 +1,94 @@
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
cmd.o,8.415171%,4473,0,2872,1601,0,0
bsp_flash.o,7.512135%,3993,4,2952,1041,0,4
mc_p.l,7.004177%,3723,4,3586,133,4,0
ipc.o,5.971329%,3174,0,2160,1014,0,0
drv_uart.o,4.242390%,2255,2212,2198,57,0,2212
kservice.o,4.078715%,2168,140,1912,256,0,140
thread.o,4.052376%,2154,12,1912,242,0,12
ulog.o,4.035444%,2145,333,1934,211,0,333
main.o,3.809685%,2025,1292,1820,205,0,1292
mem.o,3.536893%,1880,72,1512,368,0,72
shell.o,3.384506%,1799,153,1768,31,0,153
agile_led.o,2.859616%,1520,708,1320,200,0,708
bsp_history.o,2.504045%,1331,1436,1252,79,0,1436
timer.o,2.176694%,1157,20,1002,155,0,20
object.o,2.007375%,1067,148,832,107,128,20
drv_gpio.o,1.964104%,1044,0,244,800,0,0
mf_p.l,1.937766%,1030,0,1030,0,0,0
bsp_button.o,1.932122%,1027,684,636,391,0,684
device.o,1.847462%,982,0,670,312,0,0
msh.o,1.777853%,945,0,784,161,0,0
bsp_sensor.o,1.691312%,899,1256,882,17,0,1256
scanf_fp.o,1.689431%,898,0,898,0,0,0
_scanf.o,1.550213%,824,0,824,0,0,0
bsp_rtc.o,1.315047%,699,6,600,99,0,6
completion.o,1.241675%,660,0,572,88,0,0
lwrb.o,1.192761%,634,0,634,0,0,0
flexible_button.o,1.015916%,540,16,540,0,0,16
scheduler.o,0.967002%,514,280,496,18,0,280
dev_pin_1.o,0.914324%,486,76,448,38,0,76
ciu32l051_std_lpuart.o,0.624600%,332,0,332,0,0,0
_scanf_int.o,0.620838%,330,0,330,0,0,0
cpuport.o,0.579448%,308,12,308,0,0,12
board.o,0.523009%,278,0,278,0,0,0
idle.o,0.507958%,270,416,248,22,0,416
components.o,0.459044%,244,0,228,16,0,0
ddiv.o,0.451518%,240,0,240,0,0,0
depilogue.o,0.443993%,236,0,236,0,0,0
ciu32l051_std_rtc.o,0.443993%,236,0,236,0,0,0
_scanf_str.o,0.436468%,232,0,232,0,0,0
bsp_wdg.o,0.436468%,232,656,220,12,0,656
startup_ciu32l051.o,0.413892%,220,1024,28,192,0,1024
context_rvds.o,0.406366%,216,0,216,0,0,0
ciu32l051_std_rcc.o,0.406366%,216,0,216,0,0,0
dmul.o,0.391316%,208,0,208,0,0,0
drv_common.o,0.383790%,204,0,204,0,0,0
system_ciu32l051.o,0.376265%,200,4,164,32,4,0
ciu32l051_std_flash.o,0.353689%,188,0,188,0,0,0
ciu32l051_std_usart.o,0.349927%,186,0,186,0,0,0
strtod.o,0.338639%,180,0,180,0,0,0
_strtoul.o,0.312300%,166,0,166,0,0,0
ciu32l051_std_gpio.o,0.289724%,154,0,154,0,0,0
ctype_o.o,0.265267%,141,0,8,133,0,0
fepilogue.o,0.244572%,130,0,130,0,0,0
strtol.o,0.210709%,112,0,112,0,0,0
ciu32l051_std_dma.o,0.188133%,100,0,100,0,0,0
uldiv.o,0.180607%,96,0,96,0,0,0
console_be.o,0.169319%,90,48,86,4,0,48
bsp_io_dev.o,0.167438%,89,16,76,13,0,16
irq.o,0.165557%,88,12,88,0,0,12
_sgetc.o,0.127930%,68,0,68,0,0,0
uidiv_div0.o,0.116642%,62,0,62,0,0,0
__0sscanf.o,0.112880%,60,0,60,0,0,0
bsp_adc.o,0.112880%,60,92,60,0,0,92
d2f.o,0.105354%,56,0,56,0,0,0
clock.o,0.101592%,54,4,54,0,0,4
llmul.o,0.090304%,48,0,48,0,0,0
init.o,0.090304%,48,0,48,0,0,0
m_ps.l,0.082778%,44,0,44,0,0,0
dcmplt.o,0.082778%,44,0,44,0,0,0
dcmple.o,0.082778%,44,0,44,0,0,0
dcmpge.o,0.082778%,44,0,44,0,0,0
scanf_char.o,0.082778%,44,0,44,0,0,0
atof.o,0.082778%,44,0,44,0,0,0
memseta.o,0.067728%,36,0,36,0,0,0
memcpya.o,0.067728%,36,0,36,0,0,0
errno.o,0.067728%,36,4,32,0,4,0
llushr.o,0.063965%,34,0,34,0,0,0
llshl.o,0.060202%,32,0,32,0,0,0
strncmp.o,0.056440%,30,0,30,0,0,0
handlers.o,0.056440%,30,0,30,0,0,0
_chval.o,0.056440%,30,0,30,0,0,0
dfltul.o,0.052677%,28,0,28,0,0,0
strncpy.o,0.048914%,26,0,26,0,0,0
memcmp.o,0.048914%,26,0,26,0,0,0
atoi.o,0.048914%,26,0,26,0,0,0
ciu32l051_std.o,0.045152%,24,0,24,0,0,0
strchr.o,0.037627%,20,0,20,0,0,0
isspace_o.o,0.033864%,18,0,18,0,0,0
strlen.o,0.026339%,14,0,14,0,0,0
entry9a.o,0.015051%,8,0,8,0,0,0
entry2.o,0.015051%,8,0,8,0,0,0
entry5.o,0.007525%,4,0,4,0,0,0
cmd.o,8.436757%,4473,0,2872,1601,0,0
mc_p.l,7.022143%,3723,4,3586,133,4,0
bsp_flash.o,6.727904%,3567,4,2660,907,0,4
ipc.o,5.986646%,3174,0,2160,1014,0,0
thread.o,4.062771%,2154,12,1912,242,0,12
ulog.o,4.045796%,2145,333,1934,211,0,333
kservice.o,3.987325%,2114,140,1858,256,0,140
main.o,3.713833%,1969,1036,1764,205,0,1036
mem.o,3.545965%,1880,72,1512,368,0,72
shell.o,3.393187%,1799,153,1768,31,0,153
drv_uart.o,3.280018%,1739,1420,1722,17,0,1420
agile_led.o,2.866951%,1520,708,1320,200,0,708
bsp_history.o,2.518013%,1335,1180,1256,79,0,1180
timer.o,2.182278%,1157,20,1002,155,0,20
object.o,2.012524%,1067,148,832,107,128,20
drv_gpio.o,1.969143%,1044,0,244,800,0,0
mf_p.l,1.942736%,1030,0,1030,0,0,0
bsp_button.o,1.937078%,1027,684,636,391,0,684
device.o,1.852201%,982,0,670,312,0,0
msh.o,1.782413%,945,0,784,161,0,0
bsp_sensor.o,1.695651%,899,1256,882,17,0,1256
scanf_fp.o,1.693764%,898,0,898,0,0,0
_scanf.o,1.554189%,824,0,824,0,0,0
bsp_adc.o,1.554189%,824,748,812,12,0,748
bsp_rtc.o,1.318420%,699,6,600,99,0,6
completion.o,1.244860%,660,0,572,88,0,0
lwrb.o,1.195820%,634,0,634,0,0,0
flexible_button.o,1.018522%,540,16,540,0,0,16
scheduler.o,0.969482%,514,280,496,18,0,280
dev_pin.o,0.916670%,486,76,448,38,0,76
ciu32l051_std_lpuart.o,0.626202%,332,0,332,0,0,0
_scanf_int.o,0.622430%,330,0,330,0,0,0
cpuport.o,0.580935%,308,12,308,0,0,12
board.o,0.524350%,278,0,278,0,0,0
idle.o,0.509261%,270,416,248,22,0,416
components.o,0.460221%,244,0,228,16,0,0
ddiv.o,0.452676%,240,0,240,0,0,0
depilogue.o,0.445132%,236,0,236,0,0,0
ciu32l051_std_rtc.o,0.445132%,236,0,236,0,0,0
_scanf_str.o,0.437587%,232,0,232,0,0,0
bsp_wdg.o,0.437587%,232,656,220,12,0,656
startup_ciu32l051.o,0.414953%,220,1024,28,192,0,1024
context_rvds.o,0.407409%,216,0,216,0,0,0
ciu32l051_std_rcc.o,0.407409%,216,0,216,0,0,0
dmul.o,0.392320%,208,0,208,0,0,0
drv_common.o,0.384775%,204,0,204,0,0,0
system_ciu32l051.o,0.377230%,200,4,164,32,4,0
ciu32l051_std_flash.o,0.354597%,188,0,188,0,0,0
ciu32l051_std_usart.o,0.350824%,186,0,186,0,0,0
strtod.o,0.339507%,180,0,180,0,0,0
_strtoul.o,0.313101%,166,0,166,0,0,0
ciu32l051_std_gpio.o,0.290467%,154,0,154,0,0,0
ciu32l051_std_adc.o,0.279150%,148,0,148,0,0,0
ctype_o.o,0.265947%,141,0,8,133,0,0
fepilogue.o,0.245200%,130,0,130,0,0,0
strtol.o,0.211249%,112,0,112,0,0,0
ciu32l051_std_dma.o,0.188615%,100,0,100,0,0,0
uldiv.o,0.181071%,96,0,96,0,0,0
console_be.o,0.169754%,90,48,86,4,0,48
bsp_io_dev.o,0.167868%,89,16,76,13,0,16
irq.o,0.165981%,88,12,88,0,0,12
_sgetc.o,0.128258%,68,0,68,0,0,0
uidiv_div0.o,0.116941%,62,0,62,0,0,0
__0sscanf.o,0.113169%,60,0,60,0,0,0
d2f.o,0.105625%,56,0,56,0,0,0
clock.o,0.101852%,54,4,54,0,0,4
llmul.o,0.090535%,48,0,48,0,0,0
init.o,0.090535%,48,0,48,0,0,0
m_ps.l,0.082991%,44,0,44,0,0,0
dcmplt.o,0.082991%,44,0,44,0,0,0
dcmple.o,0.082991%,44,0,44,0,0,0
dcmpge.o,0.082991%,44,0,44,0,0,0
scanf_char.o,0.082991%,44,0,44,0,0,0
atof.o,0.082991%,44,0,44,0,0,0
memseta.o,0.067901%,36,0,36,0,0,0
memcpya.o,0.067901%,36,0,36,0,0,0
errno.o,0.067901%,36,4,32,0,4,0
llushr.o,0.064129%,34,0,34,0,0,0
llshl.o,0.060357%,32,0,32,0,0,0
strncmp.o,0.056585%,30,0,30,0,0,0
handlers.o,0.056585%,30,0,30,0,0,0
_chval.o,0.056585%,30,0,30,0,0,0
dfltul.o,0.052812%,28,0,28,0,0,0
strncpy.o,0.049040%,26,0,26,0,0,0
memcmp.o,0.049040%,26,0,26,0,0,0
atoi.o,0.049040%,26,0,26,0,0,0
ciu32l051_std.o,0.045268%,24,0,24,0,0,0
strchr.o,0.037723%,20,0,20,0,0,0
isspace_o.o,0.033951%,18,0,18,0,0,0
strlen.o,0.026406%,14,0,14,0,0,0
entry9a.o,0.015089%,8,0,8,0,0,0
entry2.o,0.015089%,8,0,8,0,0,0
entry5.o,0.007545%,4,0,4,0,0,0

1 File_name flash percent flash ram Code RO_data RW_data ZI_data
2 cmd.o 8.415171% 8.436757% 4473 0 2872 1601 0 0
3 bsp_flash.o mc_p.l 7.512135% 7.022143% 3993 3723 4 2952 3586 1041 133 0 4 4 0
4 mc_p.l bsp_flash.o 7.004177% 6.727904% 3723 3567 4 3586 2660 133 907 4 0 0 4
5 ipc.o 5.971329% 5.986646% 3174 0 2160 1014 0 0
6 drv_uart.o thread.o 4.242390% 4.062771% 2255 2154 2212 12 2198 1912 57 242 0 2212 12
7 kservice.o ulog.o 4.078715% 4.045796% 2168 2145 140 333 1912 1934 256 211 0 140 333
8 thread.o kservice.o 4.052376% 3.987325% 2154 2114 12 140 1912 1858 242 256 0 12 140
9 ulog.o main.o 4.035444% 3.713833% 2145 1969 333 1036 1934 1764 211 205 0 333 1036
10 main.o mem.o 3.809685% 3.545965% 2025 1880 1292 72 1820 1512 205 368 0 1292 72
11 mem.o shell.o 3.536893% 3.393187% 1880 1799 72 153 1512 1768 368 31 0 72 153
12 shell.o drv_uart.o 3.384506% 3.280018% 1799 1739 153 1420 1768 1722 31 17 0 153 1420
13 agile_led.o 2.859616% 2.866951% 1520 708 1320 200 0 708
14 bsp_history.o 2.504045% 2.518013% 1331 1335 1436 1180 1252 1256 79 0 1436 1180
15 timer.o 2.176694% 2.182278% 1157 20 1002 155 0 20
16 object.o 2.007375% 2.012524% 1067 148 832 107 128 20
17 drv_gpio.o 1.964104% 1.969143% 1044 0 244 800 0 0
18 mf_p.l 1.937766% 1.942736% 1030 0 1030 0 0 0
19 bsp_button.o 1.932122% 1.937078% 1027 684 636 391 0 684
20 device.o 1.847462% 1.852201% 982 0 670 312 0 0
21 msh.o 1.777853% 1.782413% 945 0 784 161 0 0
22 bsp_sensor.o 1.691312% 1.695651% 899 1256 882 17 0 1256
23 scanf_fp.o 1.689431% 1.693764% 898 0 898 0 0 0
24 _scanf.o 1.550213% 1.554189% 824 0 824 0 0 0
25 bsp_rtc.o bsp_adc.o 1.315047% 1.554189% 699 824 6 748 600 812 99 12 0 6 748
26 completion.o bsp_rtc.o 1.241675% 1.318420% 660 699 0 6 572 600 88 99 0 0 6
27 lwrb.o completion.o 1.192761% 1.244860% 634 660 0 634 572 0 88 0 0
28 flexible_button.o lwrb.o 1.015916% 1.195820% 540 634 16 0 540 634 0 0 16 0
29 scheduler.o flexible_button.o 0.967002% 1.018522% 514 540 280 16 496 540 18 0 0 280 16
30 dev_pin_1.o scheduler.o 0.914324% 0.969482% 486 514 76 280 448 496 38 18 0 76 280
31 ciu32l051_std_lpuart.o dev_pin.o 0.624600% 0.916670% 332 486 0 76 332 448 0 38 0 0 76
32 _scanf_int.o ciu32l051_std_lpuart.o 0.620838% 0.626202% 330 332 0 330 332 0 0 0
33 cpuport.o _scanf_int.o 0.579448% 0.622430% 308 330 12 0 308 330 0 0 12 0
34 board.o cpuport.o 0.523009% 0.580935% 278 308 0 12 278 308 0 0 0 12
35 idle.o board.o 0.507958% 0.524350% 270 278 416 0 248 278 22 0 0 416 0
36 components.o idle.o 0.459044% 0.509261% 244 270 0 416 228 248 16 22 0 0 416
37 ddiv.o components.o 0.451518% 0.460221% 240 244 0 240 228 0 16 0 0
38 depilogue.o ddiv.o 0.443993% 0.452676% 236 240 0 236 240 0 0 0
39 ciu32l051_std_rtc.o depilogue.o 0.443993% 0.445132% 236 0 236 0 0 0
40 _scanf_str.o ciu32l051_std_rtc.o 0.436468% 0.445132% 232 236 0 232 236 0 0 0
41 bsp_wdg.o _scanf_str.o 0.436468% 0.437587% 232 656 0 220 232 12 0 0 656 0
42 startup_ciu32l051.o bsp_wdg.o 0.413892% 0.437587% 220 232 1024 656 28 220 192 12 0 1024 656
43 context_rvds.o startup_ciu32l051.o 0.406366% 0.414953% 216 220 0 1024 216 28 0 192 0 0 1024
44 ciu32l051_std_rcc.o context_rvds.o 0.406366% 0.407409% 216 0 216 0 0 0
45 dmul.o ciu32l051_std_rcc.o 0.391316% 0.407409% 208 216 0 208 216 0 0 0
46 drv_common.o dmul.o 0.383790% 0.392320% 204 208 0 204 208 0 0 0
47 system_ciu32l051.o drv_common.o 0.376265% 0.384775% 200 204 4 0 164 204 32 0 4 0 0
48 ciu32l051_std_flash.o system_ciu32l051.o 0.353689% 0.377230% 188 200 0 4 188 164 0 32 0 4 0
49 ciu32l051_std_usart.o ciu32l051_std_flash.o 0.349927% 0.354597% 186 188 0 186 188 0 0 0
50 strtod.o ciu32l051_std_usart.o 0.338639% 0.350824% 180 186 0 180 186 0 0 0
51 _strtoul.o strtod.o 0.312300% 0.339507% 166 180 0 166 180 0 0 0
52 ciu32l051_std_gpio.o _strtoul.o 0.289724% 0.313101% 154 166 0 154 166 0 0 0
53 ctype_o.o ciu32l051_std_gpio.o 0.265267% 0.290467% 141 154 0 8 154 133 0 0 0
54 fepilogue.o ciu32l051_std_adc.o 0.244572% 0.279150% 130 148 0 130 148 0 0 0
55 strtol.o ctype_o.o 0.210709% 0.265947% 112 141 0 112 8 0 133 0 0
56 ciu32l051_std_dma.o fepilogue.o 0.188133% 0.245200% 100 130 0 100 130 0 0 0
57 uldiv.o strtol.o 0.180607% 0.211249% 96 112 0 96 112 0 0 0
58 console_be.o ciu32l051_std_dma.o 0.169319% 0.188615% 90 100 48 0 86 100 4 0 0 48 0
59 bsp_io_dev.o uldiv.o 0.167438% 0.181071% 89 96 16 0 76 96 13 0 0 16 0
60 irq.o console_be.o 0.165557% 0.169754% 88 90 12 48 88 86 0 4 0 12 48
61 _sgetc.o bsp_io_dev.o 0.127930% 0.167868% 68 89 0 16 68 76 0 13 0 0 16
62 uidiv_div0.o irq.o 0.116642% 0.165981% 62 88 0 12 62 88 0 0 0 12
63 __0sscanf.o _sgetc.o 0.112880% 0.128258% 60 68 0 60 68 0 0 0
64 bsp_adc.o uidiv_div0.o 0.112880% 0.116941% 60 62 92 0 60 62 0 0 92 0
65 d2f.o __0sscanf.o 0.105354% 0.113169% 56 60 0 56 60 0 0 0
66 clock.o d2f.o 0.101592% 0.105625% 54 56 4 0 54 56 0 0 4 0
67 llmul.o clock.o 0.090304% 0.101852% 48 54 0 4 48 54 0 0 0 4
68 init.o llmul.o 0.090304% 0.090535% 48 0 48 0 0 0
69 m_ps.l init.o 0.082778% 0.090535% 44 48 0 44 48 0 0 0
70 dcmplt.o m_ps.l 0.082778% 0.082991% 44 0 44 0 0 0
71 dcmple.o dcmplt.o 0.082778% 0.082991% 44 0 44 0 0 0
72 dcmpge.o dcmple.o 0.082778% 0.082991% 44 0 44 0 0 0
73 scanf_char.o dcmpge.o 0.082778% 0.082991% 44 0 44 0 0 0
74 atof.o scanf_char.o 0.082778% 0.082991% 44 0 44 0 0 0
75 memseta.o atof.o 0.067728% 0.082991% 36 44 0 36 44 0 0 0
76 memcpya.o memseta.o 0.067728% 0.067901% 36 0 36 0 0 0
77 errno.o memcpya.o 0.067728% 0.067901% 36 4 0 32 36 0 4 0 0
78 llushr.o errno.o 0.063965% 0.067901% 34 36 0 4 34 32 0 0 4 0
79 llshl.o llushr.o 0.060202% 0.064129% 32 34 0 32 34 0 0 0
80 strncmp.o llshl.o 0.056440% 0.060357% 30 32 0 30 32 0 0 0
81 handlers.o strncmp.o 0.056440% 0.056585% 30 0 30 0 0 0
82 _chval.o handlers.o 0.056440% 0.056585% 30 0 30 0 0 0
83 dfltul.o _chval.o 0.052677% 0.056585% 28 30 0 28 30 0 0 0
84 strncpy.o dfltul.o 0.048914% 0.052812% 26 28 0 26 28 0 0 0
85 memcmp.o strncpy.o 0.048914% 0.049040% 26 0 26 0 0 0
86 atoi.o memcmp.o 0.048914% 0.049040% 26 0 26 0 0 0
87 ciu32l051_std.o atoi.o 0.045152% 0.049040% 24 26 0 24 26 0 0 0
88 strchr.o ciu32l051_std.o 0.037627% 0.045268% 20 24 0 20 24 0 0 0
89 isspace_o.o strchr.o 0.033864% 0.037723% 18 20 0 18 20 0 0 0
90 strlen.o isspace_o.o 0.026339% 0.033951% 14 18 0 14 18 0 0 0
91 entry9a.o strlen.o 0.015051% 0.026406% 8 14 0 8 14 0 0 0
92 entry2.o entry9a.o 0.015051% 0.015089% 8 0 8 0 0 0
93 entry5.o entry2.o 0.007525% 0.015089% 4 8 0 4 8 0 0 0
94 entry5.o 0.007545% 4 0 4 0 0 0

View File

@ -1,31 +1,31 @@
File_name,ram_percent,ram,flash,Code,RO_data,RW_data,ZI_data
drv_uart.o,19.856373%,2212,2255,2198,57,0,2212
bsp_history.o,12.890485%,1436,1331,1252,79,0,1436
main.o,11.597846%,1292,2025,1820,205,0,1292
bsp_sensor.o,11.274686%,1256,899,882,17,0,1256
startup_ciu32l051.o,9.192101%,1024,220,28,192,0,1024
agile_led.o,6.355476%,708,1520,1320,200,0,708
bsp_button.o,6.140036%,684,1027,636,391,0,684
bsp_wdg.o,5.888690%,656,232,220,12,0,656
idle.o,3.734291%,416,270,248,22,0,416
ulog.o,2.989228%,333,2145,1934,211,0,333
scheduler.o,2.513465%,280,514,496,18,0,280
shell.o,1.373429%,153,1799,1768,31,0,153
object.o,1.328546%,148,1067,832,107,128,20
kservice.o,1.256732%,140,2168,1912,256,0,140
bsp_adc.o,0.825853%,92,60,60,0,0,92
dev_pin_1.o,0.682226%,76,486,448,38,0,76
mem.o,0.646320%,72,1880,1512,368,0,72
console_be.o,0.430880%,48,90,86,4,0,48
timer.o,0.179533%,20,1157,1002,155,0,20
flexible_button.o,0.143627%,16,540,540,0,0,16
bsp_io_dev.o,0.143627%,16,89,76,13,0,16
thread.o,0.107720%,12,2154,1912,242,0,12
irq.o,0.107720%,12,88,88,0,0,12
cpuport.o,0.107720%,12,308,308,0,0,12
bsp_rtc.o,0.053860%,6,699,600,99,0,6
mc_p.l,0.035907%,4,3723,3586,133,4,0
errno.o,0.035907%,4,36,32,0,4,0
system_ciu32l051.o,0.035907%,4,200,164,32,4,0
clock.o,0.035907%,4,54,54,0,0,4
bsp_flash.o,0.035907%,4,3993,2952,1041,0,4
drv_uart.o,13.534122%,1420,1739,1722,17,0,1420
bsp_sensor.o,11.971025%,1256,899,882,17,0,1256
bsp_history.o,11.246664%,1180,1335,1256,79,0,1180
main.o,9.874190%,1036,1969,1764,205,0,1036
startup_ciu32l051.o,9.759817%,1024,220,28,192,0,1024
bsp_adc.o,7.129241%,748,824,812,12,0,748
agile_led.o,6.747998%,708,1520,1320,200,0,708
bsp_button.o,6.519253%,684,1027,636,391,0,684
bsp_wdg.o,6.252383%,656,232,220,12,0,656
idle.o,3.964926%,416,270,248,22,0,416
ulog.o,3.173847%,333,2145,1934,211,0,333
scheduler.o,2.668700%,280,514,496,18,0,280
shell.o,1.458254%,153,1799,1768,31,0,153
object.o,1.410599%,148,1067,832,107,128,20
kservice.o,1.334350%,140,2114,1858,256,0,140
dev_pin.o,0.724361%,76,486,448,38,0,76
mem.o,0.686237%,72,1880,1512,368,0,72
console_be.o,0.457491%,48,90,86,4,0,48
timer.o,0.190621%,20,1157,1002,155,0,20
flexible_button.o,0.152497%,16,540,540,0,0,16
bsp_io_dev.o,0.152497%,16,89,76,13,0,16
thread.o,0.114373%,12,2154,1912,242,0,12
irq.o,0.114373%,12,88,88,0,0,12
cpuport.o,0.114373%,12,308,308,0,0,12
bsp_rtc.o,0.057186%,6,699,600,99,0,6
mc_p.l,0.038124%,4,3723,3586,133,4,0
errno.o,0.038124%,4,36,32,0,4,0
system_ciu32l051.o,0.038124%,4,200,164,32,4,0
clock.o,0.038124%,4,54,54,0,0,4
bsp_flash.o,0.038124%,4,3567,2660,907,0,4

1 File_name ram_percent ram flash Code RO_data RW_data ZI_data
2 drv_uart.o 19.856373% 13.534122% 2212 1420 2255 1739 2198 1722 57 17 0 2212 1420
3 bsp_history.o bsp_sensor.o 12.890485% 11.971025% 1436 1256 1331 899 1252 882 79 17 0 1436 1256
4 main.o bsp_history.o 11.597846% 11.246664% 1292 1180 2025 1335 1820 1256 205 79 0 1292 1180
5 bsp_sensor.o main.o 11.274686% 9.874190% 1256 1036 899 1969 882 1764 17 205 0 1256 1036
6 startup_ciu32l051.o 9.192101% 9.759817% 1024 220 28 192 0 1024
7 agile_led.o bsp_adc.o 6.355476% 7.129241% 708 748 1520 824 1320 812 200 12 0 708 748
8 bsp_button.o agile_led.o 6.140036% 6.747998% 684 708 1027 1520 636 1320 391 200 0 684 708
9 bsp_wdg.o bsp_button.o 5.888690% 6.519253% 656 684 232 1027 220 636 12 391 0 656 684
10 idle.o bsp_wdg.o 3.734291% 6.252383% 416 656 270 232 248 220 22 12 0 416 656
11 ulog.o idle.o 2.989228% 3.964926% 333 416 2145 270 1934 248 211 22 0 333 416
12 scheduler.o ulog.o 2.513465% 3.173847% 280 333 514 2145 496 1934 18 211 0 280 333
13 shell.o scheduler.o 1.373429% 2.668700% 153 280 1799 514 1768 496 31 18 0 153 280
14 object.o shell.o 1.328546% 1.458254% 148 153 1067 1799 832 1768 107 31 128 0 20 153
15 kservice.o object.o 1.256732% 1.410599% 140 148 2168 1067 1912 832 256 107 0 128 140 20
16 bsp_adc.o kservice.o 0.825853% 1.334350% 92 140 60 2114 60 1858 0 256 0 92 140
17 dev_pin_1.o dev_pin.o 0.682226% 0.724361% 76 486 448 38 0 76
18 mem.o 0.646320% 0.686237% 72 1880 1512 368 0 72
19 console_be.o 0.430880% 0.457491% 48 90 86 4 0 48
20 timer.o 0.179533% 0.190621% 20 1157 1002 155 0 20
21 flexible_button.o 0.143627% 0.152497% 16 540 540 0 0 16
22 bsp_io_dev.o 0.143627% 0.152497% 16 89 76 13 0 16
23 thread.o 0.107720% 0.114373% 12 2154 1912 242 0 12
24 irq.o 0.107720% 0.114373% 12 88 88 0 0 12
25 cpuport.o 0.107720% 0.114373% 12 308 308 0 0 12
26 bsp_rtc.o 0.053860% 0.057186% 6 699 600 99 0 6
27 mc_p.l 0.035907% 0.038124% 4 3723 3586 133 4 0
28 errno.o 0.035907% 0.038124% 4 36 32 0 4 0
29 system_ciu32l051.o 0.035907% 0.038124% 4 200 164 32 4 0
30 clock.o 0.035907% 0.038124% 4 54 54 0 0 4
31 bsp_flash.o 0.035907% 0.038124% 4 3993 3567 2952 2660 1041 907 0 4

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -53,6 +53,8 @@
// <c1>Using rt_using_heap
// <i>Using rt_using_heap
#define RT_USING_HEAP
// #define RT_USING_MEMHEAP
// </c>
// <c1>Using rt_using_user_main
// <i>Using rt_using_user_main
@ -147,7 +149,7 @@
// </c>
// <c1>using tiny size of memory
// <i>using tiny size of memory
//#define RT_USING_TINY_SIZE
#define RT_USING_TINY_SIZE
// </c>
// </h>

View File

@ -98,9 +98,6 @@ void rt_hw_board_init()
#ifndef DEBUG_OUTPUT_SELECT
SEGGER_RTT_Init();
#endif // DEBUG_OUTPUT_SELECT
}
void SysTick_Handler(void)

View File

@ -2,7 +2,7 @@
* @Author: mbw
* @Date: 2024-09-05 15:04:14
* @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-09-14 16:22:29
* @LastEditTime: 2024-09-20 10:59:22
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_adc.h
* @Description:
* @
@ -35,12 +35,12 @@ typedef enum
// 存储采集的数据
extern rt_uint16_t adc_buffer[ADC_BUFFER_SIZE];
#define VIN_THREAD_STACK_SIZE (1024)
#define VIN_THREAD_STACK_SIZE (512)
#define VIN_THREAD_PRIORITY (10)
#define VIN_THREAD_TIMESLICE (20)
// #define VIN_VOLTAGE_RATIO (4.19148936F)
#define VIN_VOLTAGE_RATIO (1)
#define VIN_VOLTAGE_RATIO (4.19148936F)
// #define VIN_VOLTAGE_RATIO (1)
// 不含输入二极管的压降
// (4.7/19.7) * 13V = 3.1V, 3.1/3.3*4096 = 3723
// #define VIN_ADC_HIGH_THRESHOLD (uint16_t)3847 // 13V

View File

@ -1,11 +1,12 @@
/*
* @Author: MBW
* @Date: 2024-03-20 17:12:31
* @LastEditors: MBW
* @LastEditTime: 2024-03-27 09:57:40
* @FilePath: \CX32L003_PROJECT\bsp\inc\bsp_history.h
* @Description:
*
/***
* @Author: mbw
* @Date: 2024-08-23 10:14:23
* @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-09-20 10:42:54
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_history.h
* @Description:
* @
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
*/
#ifndef __BSP_HISTORY_H__
#define __BSP_HISTORY_H__
@ -13,7 +14,7 @@
#include "rtthread.h"
#include "rtdef.h"
#define HR_THREAD_STACK_SIZE (1280)
#define HR_THREAD_STACK_SIZE (1024)
#define HR_THREAD_PRIORITY (10)
#define HR_THREAD_TIMESLICE (5)
@ -40,30 +41,6 @@ typedef enum
kPowerOnRecord, // at least 50
kSensorFailureRecord, // at least 1
kGetCurrentTime,
/*扩展指令*/
// 以下是在国标原基础上所扩展的
kGetCurrentTimeSecond, // include second
kSetCurrentTime,
kSetFactoryTime,
kSetExpirationTime,
kSetAlarmValue,
kOutSysStatus, // 0x0E 不能动,因为说明书里面写好了
kGetAlarmValue,
kGetMqVoltage,
kSetSysStatus,
kGetSysStatus,
kEraseRecords,
kGetFactoryTime,
kGetExpirationTime,
} TeFrameC2;
#pragma pack(1)

View File

@ -281,7 +281,7 @@ int BSP_Vin_Detection_Init(void)
return RT_EOK;
}
#ifdef RT_USING_COMPONENTS_INIT
// INIT_APP_EXPORT(BSP_Vin_Detection_Init);
INIT_APP_EXPORT(BSP_Vin_Detection_Init);
#endif
/**

View File

@ -2,7 +2,7 @@
* @Author: mbw
* @Date: 2024-08-22 16:15:08
* @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-09-19 16:51:57
* @LastEditTime: 2024-09-20 10:39:08
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\src\bsp_flash.c
* @Description:
*
@ -857,44 +857,44 @@ ErrorStatus Flash_Write_Record(TeRecord record)
return SUCCESS;
}
static void TEST_Flash_Write_Record(int argc, char **argv)
{
// static void TEST_Flash_Write_Record(int argc, char **argv)
// {
if (argc == 3)
{
TeRecord record = (TeRecord)atoi(argv[1]);
int num = atoi(argv[2]);
// if (argc == 3)
// {
// TeRecord record = (TeRecord)atoi(argv[1]);
// int num = atoi(argv[2]);
for (int i = 1; i <= num; i++)
{
RTT_LOG_I("Flash_Write_(%d)Record:%d", record, i);
Flash_Write_Record(record);
rt_thread_mdelay(200); // 1min
}
}
else
{
LOG_E("TEST_Flash_Write_Record --use _cmd_ [record(0~6)] [num]");
}
}
MSH_CMD_EXPORT(TEST_Flash_Write_Record, "TEST_Flash_Write_Record");
// for (int i = 1; i <= num; i++)
// {
// RTT_LOG_I("Flash_Write_(%d)Record:%d", record, i);
// Flash_Write_Record(record);
// rt_thread_mdelay(200); // 1min
// }
// }
// else
// {
// LOG_E("TEST_Flash_Write_Record --use _cmd_ [record(0~6)] [num]");
// }
// }
// MSH_CMD_EXPORT(TEST_Flash_Write_Record, "TEST_Flash_Write_Record");
static void TEST_Flash_Read_Record(int argc, char **argv)
{
TuFlashHrRecordFrame RecoderFrame = {0};
// static void TEST_Flash_Read_Record(int argc, char **argv)
// {
// TuFlashHrRecordFrame RecoderFrame = {0};
if (argc == 3)
{
TeRecord record = (TeRecord)atoi(argv[1]);
int num = atoi(argv[2]);
Flash_Read_Record(&RecoderFrame, record, num);
}
else
{
LOG_E("TEST_Flash_Read_Record --use _cmd_ [record(0~6)] [num]");
}
}
MSH_CMD_EXPORT(TEST_Flash_Read_Record, "TEST_Flash_Read_Record");
// if (argc == 3)
// {
// TeRecord record = (TeRecord)atoi(argv[1]);
// int num = atoi(argv[2]);
// Flash_Read_Record(&RecoderFrame, record, num);
// }
// else
// {
// LOG_E("TEST_Flash_Read_Record --use _cmd_ [record(0~6)] [num]");
// }
// }
// MSH_CMD_EXPORT(TEST_Flash_Read_Record, "TEST_Flash_Read_Record");
/*获取当前项目记录数*/
uint16_t Flash_GetNum_Records(TeRecord record)

View File

@ -69,7 +69,7 @@
#define NET_PWR_PIN GET_PIN(A, 1)
#define NET_RST_PIN GET_PIN(A, 2)
#define USIM_DECT_PIN GET_PIN(A, 3)
#define ENABLE_3_8_V GET_PIN(A, 4)
#define ENABLE_3_8_V GET_PIN(A, 5)
/*voice 引脚*/
// #define VOICE_CLK_PIN GET_PIN(B, 12)

View File

@ -2,7 +2,7 @@
* @Author: mbw
* @Date: 2024-08-20 15:51:16
* @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-09-19 16:01:01
* @LastEditTime: 2024-09-20 10:06:56
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
* @Description:
* @
@ -50,11 +50,12 @@ typedef enum
#define UART1_RX_BUFFER_LENGTH (128U)
#define UART1_RX_RB_LENGTH (128U)
#define UART1_TX_RB_LENGTH (768U)
#define UART1_TX_RB_LENGTH (896U)
#define UART1_DMA_RX_CHANNEL DMA_CHANNEL_0
#define UART1_DMA_TX_CHANNEL DMA_CHANNEL_1
#define UART1_DMA_RX_IRQ_CHANNEL DMA_Channel0_IRQn
#define UART1_DMA_TX_IRQ_CHANNEL DMA_Channel1_IRQn
@ -62,28 +63,16 @@ rt_uint32_t UART1_Write(const void* data, size_t len);
rt_uint32_t UART1_SendString(const char* str);
/*-------------------------------------------UART2-------------------------------------------------*/
// #define UART2_RX_THREAD_STACK_SIZE (1152)
// #define UART2_RX_THREAD_PRIORITY (10)
// #define UART2_RX_THREAD_TIMESLICE (5)
#define UART2_RX_BUFFER_LENGTH (64U)
#define UART2_RX_RB_LENGTH (128U)
/*-------------------------------------------UART3-------------------------------------------------*/
// #define UART3_RX_THREAD_STACK_SIZE (1152)
// #define UART3_RX_THREAD_PRIORITY (15)
// #define UART3_RX_THREAD_TIMESLICE (5)
#define UART3_RX_BUFFER_LENGTH (256U)
#define UART3_RX_RB_LENGTH (128U)
#define UART3_TX_RB_LENGTH (256U)
/*-------------------------------------------LPUART1-------------------------------------------------*/
// #define LPUART1_RX_THREAD_STACK_SIZE (512)
// #define LPUART1_RX_THREAD_PRIORITY (10)
// #define LPUART1_RX_THREAD_TIMESLICE (5)
#define LPUART1_RX_BUFFER_LENGTH (16U)
#define LPUART1_RX_RB_LENGTH (16U)
#define LPUART1_TX_RB_LENGTH (128U)

View File

@ -29,7 +29,7 @@
#define LOG_LVL LOG_LVL_DBG
#include <ulog.h>
#define UART1_DMA_RX_ENABLE
// #define UART1_DMA_RX_ENABLE
struct rt_semaphore uart3_rx_sem;
/*-------------------------------------用户自定义-----------------*/
@ -138,7 +138,6 @@ void Uart1_Dma_Rec_Data_Cfg(void)
dma_config.src_addr = (uint32_t)&USART1->RDR;
dma_config.dst_addr = (uint32_t)_uart1_rx_dma_buffer;
dma_config.data_number = LWUTIL_ARRAYSIZE(_uart1_rx_dma_buffer);
// dma_config.data_number = 128;
dma_config.dma_channel = DMA_CHANNEL_0;
std_dma_start_transmit(&dma_config);
}
@ -607,6 +606,7 @@ static void _UART1_StartTxDMATransfer(void)
/* Disable channel if enabled */
std_dma_disable(UART1_DMA_TX_CHANNEL); // 如果DMA通道只给串口1使用那只需要在初始化使能就行不需要关闭
std_usart_dma_tx_disable(USART1);
std_dma_interrupt_disable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF); // 发送完成关闭DMA通道中断
/* Clear all flags */
std_dma_clear_flag(DMA_CLEAR_TF1);
@ -847,7 +847,6 @@ void DMA_Channel1_IRQHandler(void)
{
/* enter interrupt */
rt_interrupt_enter();
/* DMA传输完成中断服务 */
if ((std_dma_get_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF)) && (std_dma_get_flag(DMA_FLAG_TF1)))
{
@ -1067,7 +1066,7 @@ INIT_PREV_EXPORT(_UART_SemCreate);
int rt_hw_usart_init(void)
{
__UART1_Init(BAUD_RATE_115200, USART_PARITY_NONE); // 这个是初始化串口配置,下面的是对接设备框架
__UART1_Init(BAUD_RATE_921600, USART_PARITY_NONE); // 这个是初始化串口配置,下面的是对接设备框架
return 0;
}

View File

@ -18,7 +18,7 @@
#define ALARM_THREAD_PRIORITY 20
#define ALARM_THREAD_TIMESLICE 50
#define RT_ALARM_THREAD_STACK_SIZE (1024)
#define RT_ALARM_THREAD_STACK_SIZE (768)
ALIGN(RT_ALIGN_SIZE)
static rt_uint8_t alarm_thread_stack[RT_ALARM_THREAD_STACK_SIZE];
@ -37,18 +37,7 @@ EventIndex event_index;
int main(void)
{
// uint8_t rtctime[3], rtcdate[3];
LOG_I("test CIU32 L051 RT-Thread!\r\n");
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock / 1000000);
while (1)
{
// rt_pin_write(LED0_PIN, PIN_HIGH);
// rt_thread_mdelay(1000);
// rt_pin_write(LED0_PIN, PIN_LOW);
rt_thread_mdelay(1000);
}
}
// 系统复位
@ -169,7 +158,6 @@ static void Alarm_Thread_Recv_Event(void *param)
Get_Sys_Event_Flag(kFaultRcyEvent), //故障恢复
RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
RT_WAITING_FOREVER, &received_event);
if (result == RT_EOK)
{
if (received_event & Get_Sys_Event_Flag(kPowerOnEvent)) //上电