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:
+1
-1
@@ -108,7 +108,7 @@ void USART0_IRQHandler(void) {
|
||||
g_usart_config.irq_handler(); // 通过函数指针调用对应的处理函数
|
||||
}
|
||||
// 作为调试口(第二串口)时也接收数据,便于模拟上位机命令
|
||||
#ifdef DEBUG_MODE
|
||||
#if DEBUG_MODE == ENABLE
|
||||
else {
|
||||
usart0_irq_handler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user