LPC1768 hell world with LWM2M
Dependencies: Beep C12832_lcd EthernetInterface LM75B MMA7660 mbed-rtos mbed nsdl_lib
dbg.h@0:9101343a70cd, 2014-07-22 (annotated)
- Committer:
- michaeljkoster
- Date:
- Tue Jul 22 23:58:23 2014 +0000
- Revision:
- 0:9101343a70cd
Demo with lwm2m
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 0:9101343a70cd | 1 | #ifndef DEBUG_H |
michaeljkoster | 0:9101343a70cd | 2 | #define DEBUG_H |
michaeljkoster | 0:9101343a70cd | 3 | |
michaeljkoster | 0:9101343a70cd | 4 | #include "nsdl_support.h" |
michaeljkoster | 0:9101343a70cd | 5 | #include "mbed.h" |
michaeljkoster | 0:9101343a70cd | 6 | |
michaeljkoster | 0:9101343a70cd | 7 | //Debug is disabled by default |
michaeljkoster | 0:9101343a70cd | 8 | #define DEBUG 1 |
michaeljkoster | 0:9101343a70cd | 9 | |
michaeljkoster | 0:9101343a70cd | 10 | #if (DEBUG) |
michaeljkoster | 0:9101343a70cd | 11 | extern Serial pc; |
michaeljkoster | 0:9101343a70cd | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
michaeljkoster | 0:9101343a70cd | 13 | #else |
michaeljkoster | 0:9101343a70cd | 14 | #define NSDL_DEBUG(x, ...) |
michaeljkoster | 0:9101343a70cd | 15 | #endif |
michaeljkoster | 0:9101343a70cd | 16 | |
michaeljkoster | 0:9101343a70cd | 17 | #endif |