/* * 主机侧单测桩:dbg_log.h * 模块功能:为 adc_cal.c / cfg_file.c 提供主机可编译的日志宏(映射为计数)。 * ⚠ 仅供 test/host/adc_cal/ 使用,不参与 MCU 构建。同 cfg_file 套件先例。 * 创建日期:2026-10-25 */ #ifndef DBG_LOG_H #define DBG_LOG_H #include extern int g_caltest_err_count; extern int g_caltest_info_count; extern int g_caltest_debug_count; #define DBG_INFO(fmt, ...) do { g_caltest_info_count++; } while (0) #define DBG_DEBUG(fmt, ...) do { g_caltest_debug_count++; } while (0) #define DBG_ERROR(fmt, ...) do { g_caltest_err_count++; } while (0) #endif /* DBG_LOG_H */