refactor: 同步 actuator 项目的 RS485 支持和 ENABLE→CFG_ENABLE 重命名

- board_config.h: ENABLE/DISABLE 重命名为 CFG_ENABLE/CFG_DISABLE
- board_config.h: 新增 RS485_MODE 配置块(默认 CFG_DISABLE)
- uart.c: 新增 RS485 DE 引脚 AF 配置和硬件 485 模式配置
- 所有源文件: == ENABLE → == CFG_ENABLE(共 34 处)
- 兼容: RS485 默认关闭,零影响现有项目
This commit is contained in:
2026-07-28 15:20:06 +00:00
parent a48e6b8ba6
commit 01dc6f85d7
7 changed files with 65 additions and 40 deletions
+2 -2
View File
@@ -86,7 +86,7 @@ i2c_result_t i2c_bus_reset(void);
\param[out] none
\retval none
*/
#if DEBUG_VERBOSE == ENABLE
#if DEBUG_VERBOSE == CFG_ENABLE
void i2c_scan(void);
#endif
@@ -141,7 +141,7 @@ i2c_result_t i2c_read(uint8_t slave_addr, uint8_t reg_addr, uint8_t *data, uint8
*/
i2c_result_t i2c_read_raw(uint8_t slave_addr, uint8_t *data, uint8_t length);
#if DEBUG_VERBOSE == ENABLE
#if DEBUG_VERBOSE == CFG_ENABLE
/*!
\brief get status string for debugging
\param[in] status: i2c_result_t value