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 -3
View File
@@ -62,15 +62,15 @@ int main(void)
i2c_config();
#ifdef DEBUG_MODE
#if DEBUG_MODE == ENABLE
printf("Hello World!\r\n");
#endif
#ifdef SEGGER_RTT_DETECTION
#if SEGGER_RTT_DETECTION == ENABLE
RTT_printf(0, "Hello World!\r\n");
#endif
#ifdef DEBUG_VERBOSE
#if DEBUG_VERBOSE == ENABLE
i2c_scan();
i2c_bus_reset();