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: EthernetInterfaceUpdate mbed-rtos mbed nanoservice_client_1_12_X
dbg.h@0:2b74e0fc583d, 2014-11-25 (annotated)
- Committer:
- michaeljkoster
- Date:
- Tue Nov 25 01:43:27 2014 +0000
- Revision:
- 0:2b74e0fc583d
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
michaeljkoster | 0:2b74e0fc583d | 1 | #ifndef DEBUG_H |
michaeljkoster | 0:2b74e0fc583d | 2 | #define DEBUG_H |
michaeljkoster | 0:2b74e0fc583d | 3 | |
michaeljkoster | 0:2b74e0fc583d | 4 | #include "nsdl_support.h" |
michaeljkoster | 0:2b74e0fc583d | 5 | #include "mbed.h" |
michaeljkoster | 0:2b74e0fc583d | 6 | |
michaeljkoster | 0:2b74e0fc583d | 7 | //Debug is disabled by default |
michaeljkoster | 0:2b74e0fc583d | 8 | #define DEBUG 1 |
michaeljkoster | 0:2b74e0fc583d | 9 | |
michaeljkoster | 0:2b74e0fc583d | 10 | #if (DEBUG) |
michaeljkoster | 0:2b74e0fc583d | 11 | extern Serial pc; |
michaeljkoster | 0:2b74e0fc583d | 12 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
michaeljkoster | 0:2b74e0fc583d | 13 | #else |
michaeljkoster | 0:2b74e0fc583d | 14 | #define NSDL_DEBUG(x, ...) |
michaeljkoster | 0:2b74e0fc583d | 15 | #endif |
michaeljkoster | 0:2b74e0fc583d | 16 | |
michaeljkoster | 0:2b74e0fc583d | 17 | #endif |