![](/media/cache/group/arm_mbed.PNG.50x50_q85.png)
Initial commit
Dependencies: Chainable_RGB_LED EthernetInterface LED_Bar mbed-rtos mbed nsdl_lib
Fork of SensorNotifyLED by
dbg.h@0:950566b0e099, 2014-10-30 (annotated)
- Committer:
- michaeljkoster
- Date:
- Thu Oct 30 21:44:12 2014 +0000
- Revision:
- 0:950566b0e099
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 0:950566b0e099 | 1 | #ifndef DEBUG_H |
michaeljkoster | 0:950566b0e099 | 2 | #define DEBUG_H |
michaeljkoster | 0:950566b0e099 | 3 | |
michaeljkoster | 0:950566b0e099 | 4 | #include "nsdl_support.h" |
michaeljkoster | 0:950566b0e099 | 5 | #include "mbed.h" |
michaeljkoster | 0:950566b0e099 | 6 | |
michaeljkoster | 0:950566b0e099 | 7 | //Debug is disabled by default |
michaeljkoster | 0:950566b0e099 | 8 | #define DEBUG 1 |
michaeljkoster | 0:950566b0e099 | 9 | |
michaeljkoster | 0:950566b0e099 | 10 | #if (DEBUG) |
michaeljkoster | 0:950566b0e099 | 11 | extern Serial pc; |
michaeljkoster | 0:950566b0e099 | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
michaeljkoster | 0:950566b0e099 | 13 | #else |
michaeljkoster | 0:950566b0e099 | 14 | #define NSDL_DEBUG(x, ...) |
michaeljkoster | 0:950566b0e099 | 15 | #endif |
michaeljkoster | 0:950566b0e099 | 16 | |
michaeljkoster | 0:950566b0e099 | 17 | #endif |