Skip to content

Commit cd56ac7

Browse files
committed
Adding debug macros
1 parent e86019e commit cd56ac7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/AIoTC_Config.h

+20
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@
2626
#define OTA_STORAGE_SFU (0)
2727
#endif
2828

29+
#ifndef DBG_ERROR
30+
#define DBG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__)
31+
#endif
32+
33+
#ifndef DBG_WARNING
34+
#define DBG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__)
35+
#endif
36+
37+
#ifndef DBG_INFO
38+
#define DBG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__)
39+
#endif
40+
41+
#ifndef DBG_DEBUG
42+
#define DBG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__)
43+
#endif
44+
45+
#ifndef DBG_VERBOSE
46+
#define DBG_VERBOSE(fmt, ...) Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
47+
#endif
48+
2949
/******************************************************************************
3050
* AUTOMATICALLY CONFIGURED DEFINES
3151
******************************************************************************/

0 commit comments

Comments
 (0)