[core] Add option to debug FlashDB

This commit is contained in:
Kuba Szczodrzyński
2022-08-25 13:45:01 +02:00
parent 07aca2a0e7
commit 4a722d4069
2 changed files with 12 additions and 4 deletions

View File

@@ -99,3 +99,7 @@
#ifndef LT_DEBUG_OTA
#define LT_DEBUG_OTA 0
#endif
#ifndef LT_DEBUG_FDB
#define LT_DEBUG_FDB 0
#endif

View File

@@ -36,10 +36,14 @@
/* MCU Endian Configuration, default is Little Endian Order. */
// #define FDB_BIG_ENDIAN
/* log print macro. default EF_PRINT macro is printf() */
#define FDB_PRINT(...)
#include <printf_config.h>
/* print debug information */
// #define FDB_DEBUG_ENABLE
#if LT_DEBUG_FDB
#include <printf/printf.h>
#define FDB_PRINT(...) __wrap_printf(__VA_ARGS__)
#define FDB_DEBUG_ENABLE
#else
#define FDB_PRINT(...)
#endif
#endif /* _FDB_CFG_H_ */