Merge pull request #80 from clcconan/feat/support_user_cfg
support user config
This commit is contained in:
@@ -29,6 +29,9 @@
|
|||||||
#ifndef _CMB_CFG_H_
|
#ifndef _CMB_CFG_H_
|
||||||
#define _CMB_CFG_H_
|
#define _CMB_CFG_H_
|
||||||
|
|
||||||
|
#ifdef CMB_USER_CFG
|
||||||
|
#include "cmb_user_cfg.h"
|
||||||
|
#else
|
||||||
/* print line, must config by user */
|
/* 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") */
|
#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 */
|
/* enable bare metal(no OS) platform */
|
||||||
@@ -43,4 +46,6 @@
|
|||||||
/* #define CMB_USING_DUMP_STACK_INFO */
|
/* #define CMB_USING_DUMP_STACK_INFO */
|
||||||
/* language of print information */
|
/* language of print information */
|
||||||
/* #define CMB_PRINT_LANGUAGE CMB_PRINT_LANGUAGE_ENGLISH(default) or CMB_PRINT_LANGUAGE_CHINESE or CMB_PRINT_LANGUAGE_CHINESE_UTF8 */
|
/* #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_ */
|
#endif /* _CMB_CFG_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user