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:
parent
c31acda500
commit
2f677f007d
6 changed files with 79 additions and 7 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue