851c3db56e
- 删除冗余文件:main_backup/main_minimal/main_full、GD32F4xx_AddOn_Temp/、GD32F4xx_Custom_Backup/、GD32F4xx_Official/ - 删除无关工具:read_pdf.py、openocd_test.txt、version.txt - 重构 main.cpp:去除 STEP 机制,简化为线性启动流程 - 清理 CMakeLists.txt:移除 usart0.c 引用、死代码、冗余 REMOVE_ITEM - 修正 config.h SystemCoreClock 为 168MHz - 修复 gd32f4xx_it.cpp 中已删除的 main.h 引用
20 lines
341 B
C
20 lines
341 B
C
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
#define DEBUG_ENABLED 1
|
|
|
|
#define SYSTEM_CLOCK_FREQ 168000000
|
|
|
|
#define UART_BAUDRATE 9600
|
|
#define I2C_SPEED 400000
|
|
#define SPI_SPEED 10000000
|
|
|
|
#define ADC_RESOLUTION 12
|
|
#define ADC_REF_VOLTAGE 3.3f
|
|
|
|
#define FSMC_DATA_WIDTH 16
|
|
#define FSMC_ADDRESS_SETUP_TIME 2
|
|
#define FSMC_DATA_SETUP_TIME 3
|
|
|
|
#endif
|