From 0306623908fa3093365b62e6fef3c31fe85e0450 Mon Sep 17 00:00:00 2001 From: clcconan <132032178+clcconan@users.noreply.github.com> Date: Mon, 22 Apr 2024 08:22:04 +0000 Subject: [PATCH] support user config. --- cm_backtrace/cmb_cfg.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cm_backtrace/cmb_cfg.h b/cm_backtrace/cmb_cfg.h index a622ed8..b9a0b09 100644 --- a/cm_backtrace/cmb_cfg.h +++ b/cm_backtrace/cmb_cfg.h @@ -29,6 +29,9 @@ #ifndef _CMB_CFG_H_ #define _CMB_CFG_H_ +#ifdef CMB_USER_CFG +#include "cmb_user_cfg.h" +#else /* print line, must config by user */ #define cmb_println(...) /* e.g., printf(__VA_ARGS__);printf("\r\n") or SEGGER_RTT_printf(0, __VA_ARGS__);SEGGER_RTT_WriteString(0, "\r\n") */ /* enable bare metal(no OS) platform */ @@ -43,4 +46,6 @@ /* #define CMB_USING_DUMP_STACK_INFO */ /* language of print information */ /* #define CMB_PRINT_LANGUAGE CMB_PRINT_LANGUAGE_ENGLISH(default) or CMB_PRINT_LANGUAGE_CHINESE or CMB_PRINT_LANGUAGE_CHINESE_UTF8 */ +#endif + #endif /* _CMB_CFG_H_ */