Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed nsdl rgb_sensor_buffer
Fork of mbed_nsdl by
dbg.h@0:345864e9ee85, 2014-06-04 (annotated)
- Committer:
- GeofferyOmlette
- Date:
- Wed Jun 04 15:39:11 2014 +0000
- Revision:
- 0:345864e9ee85
- Child:
- 9:9d5b0c43579b
hello
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| GeofferyOmlette | 0:345864e9ee85 | 1 | #ifndef DEBUG_H |
| GeofferyOmlette | 0:345864e9ee85 | 2 | #define DEBUG_H |
| GeofferyOmlette | 0:345864e9ee85 | 3 | |
| GeofferyOmlette | 0:345864e9ee85 | 4 | #include "nsdl_support.h" |
| GeofferyOmlette | 0:345864e9ee85 | 5 | #include "mbed.h" |
| GeofferyOmlette | 0:345864e9ee85 | 6 | |
| GeofferyOmlette | 0:345864e9ee85 | 7 | //Debug is disabled by default |
| GeofferyOmlette | 0:345864e9ee85 | 8 | #define DEBUG 1 |
| GeofferyOmlette | 0:345864e9ee85 | 9 | |
| GeofferyOmlette | 0:345864e9ee85 | 10 | #if (DEBUG) |
| GeofferyOmlette | 0:345864e9ee85 | 11 | extern Serial pc; |
| GeofferyOmlette | 0:345864e9ee85 | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| GeofferyOmlette | 0:345864e9ee85 | 13 | #else |
| GeofferyOmlette | 0:345864e9ee85 | 14 | #define NSDL_DEBUG(x, ...) |
| GeofferyOmlette | 0:345864e9ee85 | 15 | #endif |
| GeofferyOmlette | 0:345864e9ee85 | 16 | |
| GeofferyOmlette | 0:345864e9ee85 | 17 | #endif |
