- 将设备相关文件重新组织为device/spi和comm分组 - 添加EtherCAT从站通信模块(esc_exmc_bus、esc_lan9252、ethercat_slave等) - 添加EXMC外设组件支持 - 统一文件命名规范为小写 refactor(canfd): 优化CANFD模块中断安全性和配置方式 - 替换自定义临界区函数为RT_CRITICAL_SAVE/RESTORE宏 - 使用配置常量CONFIG_IRQ_PREEMPT_CAN替代硬编码值 - 简化邮箱满时的处理逻辑,移除不必要的SysTick等待 - 移除废弃的中断保存头文件引用 refactor(timer): 更新定时器配置以使用配置常量 - 修复头文件包含路径大小写问题 - 使用CONFIG_NVIC_PRIORITY_GROUP配置项替代硬编码值
112 lines
3.5 KiB
YAML
112 lines
3.5 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/cpp_stubs.cpp
|
|
- file: ./sys/config.h
|
|
- group: device
|
|
files:
|
|
- file: ./device/adc.h
|
|
- file: ./device/adc.cpp
|
|
- file: ./device/canfd.h
|
|
- file: ./device/canfd.cpp
|
|
- file: ./device/timer.h
|
|
- file: ./device/timer.cpp
|
|
- file: ./device/usart0.h
|
|
- file: ./device/usart0.cpp
|
|
- file: ./device/temp_sensor.h
|
|
- file: ./device/temp_sensor.cpp
|
|
- file: ./device/watchdog.h
|
|
- file: ./device/watchdog.cpp
|
|
- group: device/spi
|
|
files:
|
|
- file: ./device/spi/app_spi_command.h
|
|
- file: ./device/spi/app_spi_command.cpp
|
|
- file: ./device/spi/spi_command_handler.h
|
|
- file: ./device/spi/app_spi_command_defs.h
|
|
- file: ./device/spi/app_spi_cmd_boot_request.cpp
|
|
- file: ./device/spi/app_spi_cmd_ota_wait.cpp
|
|
- file: ./device/spi/app_spi_cmd_ping.cpp
|
|
- file: ./device/spi/app_spi_cmd_can_bridge.cpp
|
|
- group: comm
|
|
files:
|
|
- file: ./comm/esc_exmc_bus.h
|
|
- file: ./comm/esc_exmc_bus.cpp
|
|
- file: ./comm/esc_lan9252.h
|
|
- file: ./comm/esc_lan9252.cpp
|
|
- file: ./comm/ethercat_slave.h
|
|
- file: ./comm/ethercat_slave.cpp
|
|
- file: ./comm/ethercat_sync.h
|
|
- file: ./comm/ethercat_sync.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:EXMC
|
|
- 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
|