Skip to content

Commit 6013293

Browse files
authored
Merge pull request #80 from clcconan/feat/support_user_cfg
support user config
2 parents 2d1789c + 0306623 commit 6013293

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cm_backtrace/cmb_cfg.h

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#ifndef _CMB_CFG_H_
3030
#define _CMB_CFG_H_
3131

32+
#ifdef CMB_USER_CFG
33+
#include "cmb_user_cfg.h"
34+
#else
3235
/* print line, must config by user */
3336
#define cmb_println(...) /* e.g., printf(__VA_ARGS__);printf("\r\n") or SEGGER_RTT_printf(0, __VA_ARGS__);SEGGER_RTT_WriteString(0, "\r\n") */
3437
/* enable bare metal(no OS) platform */
@@ -43,4 +46,6 @@
4346
/* #define CMB_USING_DUMP_STACK_INFO */
4447
/* language of print information */
4548
/* #define CMB_PRINT_LANGUAGE CMB_PRINT_LANGUAGE_ENGLISH(default) or CMB_PRINT_LANGUAGE_CHINESE or CMB_PRINT_LANGUAGE_CHINESE_UTF8 */
49+
#endif
50+
4651
#endif /* _CMB_CFG_H_ */

0 commit comments

Comments
 (0)