refactor: sync from template - ENABLE/DISABLE macro pattern

- board_config.h: replace #define/#undef with ENABLE/DISABLE constants
- All debug switches use ENABLE/DISABLE instead of define/undef
- Replace #ifdef with #if MACRO == ENABLE across all sources
- Sync updated README documentation
This commit is contained in:
Nova
2026-07-28 00:45:49 +08:00
parent 0cf931c0e9
commit 69352e92cf
7 changed files with 171 additions and 55 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ i2c_result_t i2c_bus_reset(void);
\param[out] none
\retval none
*/
#if DEBUG_VERBOSE == ENABLE
void i2c_scan(void);
#endif
/*!
\brief write 16-bit data to I2C device
@@ -139,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);
#ifdef DEBUG_VERBOSE
#if DEBUG_VERBOSE == ENABLE
/*!
\brief get status string for debugging
\param[in] status: i2c_result_t value