123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * Main / Debug Stuff
- */
-
- #ifndef _MAIN_H
- #define _MAIN_H
-
- #ifdef DEBUG
-
- #include "serial.h"
-
- //#define DEBUG_UART_MENU
-
- #define debugChar(x) serialWrite(0, x)
- #define debugWrite(x) serialWriteString(0, x)
- #define debugHex(x) serialWriteHex(0, x)
- #define debugUnsigned8(x) serialWriteUnsigned8(0, x)
- #define debugUnsigned16(x) serialWriteUnsigned16(0, x)
- #define debugUnsigned32(x) serialWriteUnsigned32(0, x)
- #define debugUnsigned64(x) serialWriteUnsigned64(0, x)
-
- #ifdef DEBUG_UART_MENU
- void uartMenu(void);
- #endif
-
- #else // DEBUG
-
- #define debugChar(x)
- #define debugWrite(x)
- #define debugHex(x)
- #define debugUnsigned8(x)
- #define debugUnsigned16(x)
- #define debugUnsigned32(x)
- #define debugUnsigned64(x)
-
- #endif // DEBUG
-
- #endif
|