mDS demo using cc3000 WiFi Shields from Sparkfun or Adafruit
Dependencies: cc3000_hostdriver_mbedsocket mbed nsdl_lib
dbg.h@3:ddf404b5ed21, 2014-10-18 (annotated)
- Committer:
- michaeljkoster
- Date:
- Sat Oct 18 22:38:21 2014 +0000
- Revision:
- 3:ddf404b5ed21
- Parent:
- 0:b1ec2d7dc8d1
Update WiFi for default SSID SCUGuest
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 0:b1ec2d7dc8d1 | 1 | #ifndef DEBUG_H |
michaeljkoster | 0:b1ec2d7dc8d1 | 2 | #define DEBUG_H |
michaeljkoster | 0:b1ec2d7dc8d1 | 3 | |
michaeljkoster | 0:b1ec2d7dc8d1 | 4 | #include "nsdl_support.h" |
michaeljkoster | 0:b1ec2d7dc8d1 | 5 | #include "mbed.h" |
michaeljkoster | 0:b1ec2d7dc8d1 | 6 | |
michaeljkoster | 0:b1ec2d7dc8d1 | 7 | //Debug is disabled by default |
michaeljkoster | 0:b1ec2d7dc8d1 | 8 | #define DEBUG 1 |
michaeljkoster | 0:b1ec2d7dc8d1 | 9 | |
michaeljkoster | 0:b1ec2d7dc8d1 | 10 | #if (DEBUG) |
michaeljkoster | 0:b1ec2d7dc8d1 | 11 | extern Serial pc; |
michaeljkoster | 0:b1ec2d7dc8d1 | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
michaeljkoster | 0:b1ec2d7dc8d1 | 13 | #else |
michaeljkoster | 0:b1ec2d7dc8d1 | 14 | #define NSDL_DEBUG(x, ...) |
michaeljkoster | 0:b1ec2d7dc8d1 | 15 | #endif |
michaeljkoster | 0:b1ec2d7dc8d1 | 16 | |
michaeljkoster | 0:b1ec2d7dc8d1 | 17 | #endif |