- 添加watchdog组件用于系统监控 - 在system_gd32e50x.c中增加USART0诊断输出,在IRC8M和PLL配置后 发送"APP"和"CLK"标识 - 优化AppSpiCommand类中的日志处理机制,使用临界区保护 - 添加对全0xFF数据包的过滤处理,避免无效命令处理 - 将OTA重启延时从滴答计数改为毫秒级延时,提高响应速度 - 移除温度传感器相关文件,添加看门狗相关文件到项目配置 - 更新FWDGT API调用方式,使用新的配置函数 - 增加详细的启动日志输出,便于调试和追踪初始化过程
92 lines
2.7 KiB
YAML
92 lines
2.7 KiB
YAML
# A project translates into one executable or library.
|
|
project:
|
|
|
|
groups:
|
|
- group: Source Files
|
|
files:
|
|
- file: ./main.h
|
|
- file: ./main.cpp
|
|
- group: sys
|
|
files:
|
|
- file: ./sys/initial.h
|
|
- file: ./sys/initial.cpp
|
|
- file: ./sys/systick.h
|
|
- file: ./sys/systick.cpp
|
|
- file: ./sys/task_manager.h
|
|
- file: ./sys/task_manager.cpp
|
|
- file: ./sys/task_runner.h
|
|
- file: ./sys/task_runner.cpp
|
|
- file: ./sys/ota_boot_request.h
|
|
- file: ./sys/ota_boot_request.cpp
|
|
- file: ./sys/config.h
|
|
- group: device
|
|
files:
|
|
- file: ./device/usart0.h
|
|
- file: ./device/usart0.cpp
|
|
- file: ./device/adc.h
|
|
- file: ./device/ADC.cpp
|
|
- file: ./device/canfd.h
|
|
- file: ./device/CANFD.cpp
|
|
- file: ./device/app_spi_command.h
|
|
- file: ./device/app_spi_command.cpp
|
|
- file: ./device/Timer.h
|
|
- file: ./device/Timer.cpp
|
|
- file: ./device/temp_sensor.h
|
|
- file: ./device/watchdog.h
|
|
- file: ./device/temp_sensor.cpp
|
|
- file: ./device/watchdog.cpp
|
|
|
|
# List components to use for your application.
|
|
# A software component is a re-usable unit that may be configurable.
|
|
components:
|
|
- component: ARM::CMSIS:CORE
|
|
- component: Device:Startup
|
|
- component: Device:GD32E50x_StdPeripherals:ADC
|
|
- component: Device:GD32E50x_StdPeripherals:CAN
|
|
- component: Device:GD32E50x_StdPeripherals:CRC
|
|
- component: Device:GD32E50x_StdPeripherals:DBG
|
|
- component: Device:GD32E50x_StdPeripherals:DMA
|
|
- component: Device:GD32E50x_StdPeripherals:EXTI
|
|
- component: Device:GD32E50x_StdPeripherals:FMC
|
|
- component: Device:GD32E50x_StdPeripherals:GPIO
|
|
- component: Device:GD32E50x_StdPeripherals:MISC
|
|
- component: Device:GD32E50x_StdPeripherals:PMU
|
|
- component: Device:GD32E50x_StdPeripherals:RCU
|
|
- component: Device:GD32E50x_StdPeripherals:SPI_I2S
|
|
- component: Device:GD32E50x_StdPeripherals:TIMER
|
|
- component: Device:GD32E50x_StdPeripherals:USART
|
|
- component: Device:GD32E50x_libopt
|
|
- component: Device:GD32E50x_StdPeripherals:FWDGT
|
|
|
|
# List executable file formats to be generated.
|
|
output:
|
|
type:
|
|
- elf
|
|
- hex
|
|
- map
|
|
|
|
misc:
|
|
- for-compiler: AC6
|
|
C-CPP:
|
|
- -DGD32E508
|
|
- -DGD32E50X
|
|
- -DHXTAL_VALUE=8000000U
|
|
- -gdwarf-5
|
|
- -D__MICROLIB
|
|
- -fshort-enums
|
|
- -fshort-wchar
|
|
- -Wno-register
|
|
C:
|
|
- -std=gnu11
|
|
CPP:
|
|
- -std=gnu++17
|
|
ASM:
|
|
- -DGD32E508
|
|
- -DGD32E50X
|
|
- -DHXTAL_VALUE=8000000U
|
|
- -gdwarf-5
|
|
- -D__MICROLIB
|
|
Link:
|
|
- --library_type=microlib
|
|
- --entry=Reset_Handler
|