[core] Add option to debug FlashDB
This commit is contained in:
@@ -99,3 +99,7 @@
|
|||||||
#ifndef LT_DEBUG_OTA
|
#ifndef LT_DEBUG_OTA
|
||||||
#define LT_DEBUG_OTA 0
|
#define LT_DEBUG_OTA 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LT_DEBUG_FDB
|
||||||
|
#define LT_DEBUG_FDB 0
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -36,10 +36,14 @@
|
|||||||
/* MCU Endian Configuration, default is Little Endian Order. */
|
/* MCU Endian Configuration, default is Little Endian Order. */
|
||||||
// #define FDB_BIG_ENDIAN
|
// #define FDB_BIG_ENDIAN
|
||||||
|
|
||||||
/* log print macro. default EF_PRINT macro is printf() */
|
#include <printf_config.h>
|
||||||
#define FDB_PRINT(...)
|
|
||||||
|
|
||||||
/* print debug information */
|
#if LT_DEBUG_FDB
|
||||||
// #define FDB_DEBUG_ENABLE
|
#include <printf/printf.h>
|
||||||
|
#define FDB_PRINT(...) __wrap_printf(__VA_ARGS__)
|
||||||
|
#define FDB_DEBUG_ENABLE
|
||||||
|
#else
|
||||||
|
#define FDB_PRINT(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _FDB_CFG_H_ */
|
#endif /* _FDB_CFG_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user