mbed Sensor node for Instrumented Booth over ETH.
Dependencies: EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib
Fork of Trenton_Switch_LPC1768_ETH by
NSDL/nsdl_dbg.h@26:4cac6b346e4f, 2014-12-03 (annotated)
- Committer:
- erigow01
- Date:
- Wed Dec 03 15:39:09 2014 +0000
- Revision:
- 26:4cac6b346e4f
UPdated sensor integration.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
erigow01 | 26:4cac6b346e4f | 1 | #ifndef DEBUG_H |
erigow01 | 26:4cac6b346e4f | 2 | #define DEBUG_H |
erigow01 | 26:4cac6b346e4f | 3 | |
erigow01 | 26:4cac6b346e4f | 4 | #include "nsdl_support.h" |
erigow01 | 26:4cac6b346e4f | 5 | #include "mbed.h" |
erigow01 | 26:4cac6b346e4f | 6 | |
erigow01 | 26:4cac6b346e4f | 7 | //Debug is disabled by default |
erigow01 | 26:4cac6b346e4f | 8 | #define DEBUG 1 |
erigow01 | 26:4cac6b346e4f | 9 | |
erigow01 | 26:4cac6b346e4f | 10 | #if (DEBUG) |
erigow01 | 26:4cac6b346e4f | 11 | //extern Serial pc; |
erigow01 | 26:4cac6b346e4f | 12 | #define NSDL_DEBUG(x, ...) printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
erigow01 | 26:4cac6b346e4f | 13 | #else |
erigow01 | 26:4cac6b346e4f | 14 | #define NSDL_DEBUG(x, ...) |
erigow01 | 26:4cac6b346e4f | 15 | #endif |
erigow01 | 26:4cac6b346e4f | 16 | |
erigow01 | 26:4cac6b346e4f | 17 | #endif |