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@9:9d5b0c43579b, 2014-10-29 (annotated)
- Committer:
- bjblazkowicz
- Date:
- Wed Oct 29 18:28:59 2014 +0000
- Revision:
- 9:9d5b0c43579b
- Parent:
- 0:345864e9ee85
Switched to using MODSERIAL.; Added BLE beacon resource.
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) |
| bjblazkowicz | 9:9d5b0c43579b | 11 | extern MODSERIAL console; |
| bjblazkowicz | 9:9d5b0c43579b | 12 | #define NSDL_DEBUG(x, ...) console.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 |
