generated from hulk/gd32e23x_template_cmake_vscode
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user