Revise boot code. Remove MCU definitions.
This commit is contained in:
24
debug.h
24
debug.h
@@ -7,7 +7,7 @@
|
||||
// ------------ generic debugging -----------
|
||||
|
||||
#if 0
|
||||
#define menu_debugf(...) iprintf(__VA_ARGS__)
|
||||
#define menu_debugf(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
#define menu_debugf(...)
|
||||
#endif
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
// ----------- minimig debugging -------------
|
||||
#if 0
|
||||
#define hdd_debugf(a, ...) iprintf("\033[1;32mHDD: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define hdd_debugf(a, ...) printf("\033[1;32mHDD: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define hdd_debugf(...)
|
||||
#endif
|
||||
@@ -29,7 +29,7 @@
|
||||
// -------------- TOS debugging --------------
|
||||
|
||||
#if 1
|
||||
#define tos_debugf(a, ...) iprintf("\033[1;32mTOS: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define tos_debugf(a, ...) printf("\033[1;32mTOS: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define tos_debugf(...)
|
||||
#endif
|
||||
@@ -37,14 +37,14 @@
|
||||
#if 1
|
||||
// ikbd debug output in red
|
||||
#define IKBD_DEBUG
|
||||
#define ikbd_debugf(a, ...) iprintf("\033[1;31mIKBD: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define ikbd_debugf(a, ...) printf("\033[1;31mIKBD: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define ikbd_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
// 8bit debug output in blue
|
||||
#define bit8_debugf(a, ...) iprintf("\033[1;34m8BIT: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define bit8_debugf(a, ...) printf("\033[1;34m8BIT: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define bit8_debugf(...)
|
||||
#endif
|
||||
@@ -52,49 +52,49 @@
|
||||
// ------------ usb debugging -----------
|
||||
|
||||
#if 0
|
||||
#define hidp_debugf(a, ...) iprintf("\033[1;34mHIDP: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define hidp_debugf(a, ...) printf("\033[1;34mHIDP: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define hidp_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// usb asix debug output in blue
|
||||
#define asix_debugf(a, ...) iprintf("\033[1;34mASIX: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define asix_debugf(a, ...) printf("\033[1;34mASIX: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define asix_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
// usb hid debug output in green
|
||||
#define hid_debugf(a, ...) iprintf("\033[1;32mHID: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define hid_debugf(a, ...) printf("\033[1;32mHID: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define hid_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
// usb mass storage debug output in purple
|
||||
#define storage_debugf(a, ...) iprintf("\033[1;35mSTORAGE: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define storage_debugf(a, ...) printf("\033[1;35mSTORAGE: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define storage_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// usb rts debug output in blue
|
||||
#define usbrtc_debugf(a, ...) iprintf("\033[1;34mUSBRTC: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define usbrtc_debugf(a, ...) printf("\033[1;34mUSBRTC: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define usbrtc_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
// usb rts debug output in blue
|
||||
#define pl2303_debugf(a, ...) iprintf("\033[1;34mPL2303: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#define pl2303_debugf(a, ...) printf("\033[1;34mPL2303: " a "\033[0m\n", ##__VA_ARGS__)
|
||||
#else
|
||||
#define pl2303_debugf(...)
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
// ini_parser debug output
|
||||
#define ini_parser_debugf(a, ...) iprintf("\033[1;34mINI_PARSER : " a "\033[0m\n",## __VA_ARGS__)
|
||||
#define ini_parser_debugf(a, ...) printf("\033[1;34mINI_PARSER : " a "\033[0m\n",## __VA_ARGS__)
|
||||
#else
|
||||
#define ini_parser_debugf(...)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user