mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-01-25 03:25:42 +00:00
43 lines
789 B
C
43 lines
789 B
C
// this file allows to enabled and disable rs232 debugging on a detailed basis
|
|
#ifndef DEBUG_H
|
|
#define DEBUG_H
|
|
|
|
// ------------ generic debugging -----------
|
|
|
|
#if 0
|
|
#define menu_debugf(...) iprintf(__VA_ARGS__)
|
|
#else
|
|
#define menu_debugf(...)
|
|
#endif
|
|
|
|
|
|
// ----------- minimig debugging -------------
|
|
#if 0
|
|
#define hdd_debugf(...) iprintf(__VA_ARGS__)
|
|
#else
|
|
#define hdd_debugf(...)
|
|
#endif
|
|
|
|
#if 0
|
|
#define fdd_debugf(...) iprintf(__VA_ARGS__)
|
|
#else
|
|
#define fdd_debugf(...)
|
|
#endif
|
|
|
|
// -------------- TOS debugging --------------
|
|
|
|
#if 0
|
|
#define tos_debugf(...) iprintf(__VA_ARGS__)
|
|
#else
|
|
#define tos_debugf(...)
|
|
#endif
|
|
|
|
#if 0
|
|
// ikbd debug output in red
|
|
#define ikbd_debugf(a, ...) iprintf("\033[1;31mIKBD: " a "\033[0m\n", ##__VA_ARGS__)
|
|
#else
|
|
#define ikbd_debugf(...)
|
|
#endif
|
|
|
|
#endif // DEBUG_H
|