1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 08:15:26 +03:00

Initial cut on debug trace facilities

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2018-01-26 12:05:00 +10:00
parent c31acda500
commit 2f677f007d
6 changed files with 79 additions and 7 deletions

View file

@ -57,3 +57,13 @@ typedef enum {
DEBUG_FLOW_RAW,
DEBUG_COUNT
} debugType_e;
#if defined(USE_DEBUG_TRACE)
void debugTraceInit(void);
void debugTracePrintf(bool synchronous, const char *format, ...);
#define DEBUG_TRACE(fmt, ...) debugTracePrintf(false, fmt, ##__VA_ARGS__)
#define DEBUG_TRACE_SYNC(fmt, ...) debugTracePrintf(true, fmt, ##__VA_ARGS__)
#else
#define DEBUG_TRACE(fmt, ...)
#define DEBUG_TRACE_SYNC(fmt, ...)
#endif