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: Beep C12832_lcd EthernetInterface EthernetNetIf HTTPClient LM75B MMA7660 mbed-rtos mbed nsdl_lib
Fork of LWM2M_NanoService_Ethernet by
dbg.h@22:2fab757f9c2a, 2015-10-27 (annotated)
- Committer:
- pnysten
- Date:
- Tue Oct 27 07:18:16 2015 +0000
- Revision:
- 22:2fab757f9c2a
- Parent:
- 21:978281bfb26e
Firmware and 1/0/8 resource
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| bogdanm | 2:7e489126fe7a | 1 | #ifndef DEBUG_H | 
| bogdanm | 2:7e489126fe7a | 2 | #define DEBUG_H | 
| bogdanm | 2:7e489126fe7a | 3 | |
| bogdanm | 2:7e489126fe7a | 4 | #include "nsdl_support.h" | 
| bogdanm | 2:7e489126fe7a | 5 | #include "mbed.h" | 
| bogdanm | 2:7e489126fe7a | 6 | |
| bogdanm | 2:7e489126fe7a | 7 | //Debug is disabled by default | 
| bogdanm | 2:7e489126fe7a | 8 | #define DEBUG 1 | 
| bogdanm | 2:7e489126fe7a | 9 | |
| bogdanm | 2:7e489126fe7a | 10 | #if (DEBUG) | 
| bogdanm | 2:7e489126fe7a | 11 | extern Serial pc; | 
| pnysten | 21:978281bfb26e | 12 | |
| bogdanm | 2:7e489126fe7a | 13 | #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); | 
| bogdanm | 2:7e489126fe7a | 14 | #else | 
| bogdanm | 2:7e489126fe7a | 15 | #define NSDL_DEBUG(x, ...) | 
| bogdanm | 2:7e489126fe7a | 16 | #endif | 
| bogdanm | 2:7e489126fe7a | 17 | |
| bogdanm | 2:7e489126fe7a | 18 | #endif | 
