23 #if defined(DEBUG_LOGIC) && defined(__AVR__)
24 extern const char logic[];
25 #define dbg_logic(x) debug::dbg_usb(debug::logic, x)
26 #define dbg_logic_P(x) debug::dbg_usb_P(debug::logic, x)
27 #define dbg_logic_fP(fmt, ...) debug::dbg_usb_fP(debug::logic, fmt, __VA_ARGS__)
30 #define dbg_logic_P(x)
31 #define dbg_logic_fP(fmt, ...)
34 #if defined(DEBUG_MODULES) && defined(__AVR__)
36 #define dbg_modules(x) debug::dbg_usb(debug::modules, x)
37 #define dbg_modules_P(x) debug::dbg_usb_P(debug::modules, x)
38 #define dbg_modules_fP(fmt, ...) debug::dbg_usb_fP(debug::modules, fmt, __VA_ARGS__)
40 #define dbg_modules(x)
41 #define dbg_modules_P(x)
42 #define dbg_modules_fP(fmt, ...)
45 #if defined(DEBUG_HAL) && defined(__AVR__)
46 extern const char hal[];
47 #define dbg_hal(x) debug::dbg_usb(debug::hal, x)
48 #define dbg_hal_P(x) debug::dbg_usb_P(debug::hal, x)
49 #define dbg_hal_fP(fmt, ...) debug::dbg_usb_fP(debug::hal, fmt, __VA_ARGS__)
53 #define dbg_hal_fP(fmt, ...)
56 #if defined(DEBUG_LOGIC) || defined(DEBUG_MODULES) || defined(DEBUG_HAL)
60 void dbg_usb(
const char *layer_P,
const char *s);
65 void dbg_usb_P(
const char *layer_P,
const char *s_P);
71 void dbg_usb_fP(
const char *layer_P,
const char *fmt_P, ...);
Debugging macros and tools.
Definition: debug.h:21
The logic namespace handles the application logic on top of the modules.
Definition: application.h:8
The modules namespace contains models of MMU's components.
Definition: command_base.h:8