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: mbed SocketModem nanoservice_client_1_12
debug.h
- Committer:
- zdshelby
- Date:
- 2014-02-17
- Revision:
- 0:f739ace74102
- Child:
- 9:5b116d75f41a
File content as of revision 0:f739ace74102:
#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
