Arch Pro mbed Device Server demo exposes LEDs as LWM2M style object
Dependencies: EthernetInterface mbed-rtos mbed nsdl_lib
dbg.h@0:f7f236605c98, 2014-10-11 (annotated)
- Committer:
- michaeljkoster
- Date:
- Sat Oct 11 06:14:44 2014 +0000
- Revision:
- 0:f7f236605c98
Initial Drop for SCU Class Demo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 0:f7f236605c98 | 1 | #ifndef DEBUG_H |
michaeljkoster | 0:f7f236605c98 | 2 | #define DEBUG_H |
michaeljkoster | 0:f7f236605c98 | 3 | |
michaeljkoster | 0:f7f236605c98 | 4 | #include "nsdl_support.h" |
michaeljkoster | 0:f7f236605c98 | 5 | #include "mbed.h" |
michaeljkoster | 0:f7f236605c98 | 6 | |
michaeljkoster | 0:f7f236605c98 | 7 | //Debug is disabled by default |
michaeljkoster | 0:f7f236605c98 | 8 | #define DEBUG 1 |
michaeljkoster | 0:f7f236605c98 | 9 | |
michaeljkoster | 0:f7f236605c98 | 10 | #if (DEBUG) |
michaeljkoster | 0:f7f236605c98 | 11 | extern Serial pc; |
michaeljkoster | 0:f7f236605c98 | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
michaeljkoster | 0:f7f236605c98 | 13 | #else |
michaeljkoster | 0:f7f236605c98 | 14 | #define NSDL_DEBUG(x, ...) |
michaeljkoster | 0:f7f236605c98 | 15 | #endif |
michaeljkoster | 0:f7f236605c98 | 16 | |
michaeljkoster | 0:f7f236605c98 | 17 | #endif |