Revision 1543
Added a bunch of debug prints to the library
dragonfly_defs.h | ||
---|---|---|
91 | 91 |
|
92 | 92 |
|
93 | 93 |
#ifdef DRAGONFLY_DEBUG |
94 |
#define DRAGONFLY_DEBUG_PRINT(s) usb_puts(s)
|
|
95 |
#define DRAGONFLY_DEBUG_PRINTLN(s) usb_puts(__FILE__ ":" __LINE__ ">>" s "\r\n")
|
|
94 |
#define DRAGONFLY_DEBUG_PRINT(s) usb_puts(__FILE__ ":" __LINE__ ">>" s "\r\n")
|
|
95 |
#define DRAGONFLY_DEBUG_PRINT_STR(s) usb_puts(s)
|
|
96 | 96 |
#define DRAGONFLY_DEBUG_PRINT_INT(i) usb_puti(i) |
97 | 97 |
#else |
98 | 98 |
#define DRAGONFLY_DEBUG_PRINT(s) |
99 |
#define DRAGONFLY_DEBUG_PRINTLN(s)
|
|
99 |
#define DRAGONFLY_DEBUG_PRINT_STR(s)
|
|
100 | 100 |
#define DRAGONFLY_DEBUG_PRINT_INT(i) |
101 | 101 |
#endif |
102 | 102 |
|
103 |
//TODO: write a STR_ERROR function which returns strings for the error codes |
|
104 |
|
|
103 | 105 |
#endif |
Also available in: Unified diff