Multitech + KL46Z NanoService example with the RTOS
Dependencies: mbed SocketModem nanoservice_client_1_12
Diff: debug.h
- Revision:
- 0:f739ace74102
- Child:
- 9:5b116d75f41a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debug.h Mon Feb 17 21:39:28 2014 +0000 @@ -0,0 +1,17 @@ +#ifndef DEBUG_H +#define DEBUG_H + +#include "mbed.h" + +// Set the debugging level, 0 = off, 1 = simple, 2 = detailed +#define DEBUG_LEVEL 1 + +#if (DEBUG_LEVEL) == 2 +#define DEBUG(x, ...) printf("[DEBUG: %s:%d] " x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); +#elif (DEBUG_LEVEL) == 1 +#define DEBUG(x, ...) printf("[DEBUG] " x "\r\n", ##__VA_ARGS__); +#elif (DEBUG_LEVEL) == 0 +#define DEBUG(x, ...) +#endif + +#endif // DEBUG_H \ No newline at end of file