LED Demo for Tech Con 2014

Dependencies:   EthernetInterface PololuLedStripx mbed-rtos mbed nanoservice_client_1_12_X

Fork of LPC1768_LWM2M_Client by MBED_DEMOS

dbg.h

Committer:
michaeljkoster
Date:
2014-11-17
Revision:
15:2f2b3eaa51a6
Parent:
0:9101343a70cd

File content as of revision 15:2f2b3eaa51a6:

#ifndef DEBUG_H
#define DEBUG_H

#include "nsdl_support.h"
#include "mbed.h"

//Debug is disabled by default
#define DEBUG 1

#if (DEBUG)
extern Serial pc;
#define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
#else
#define NSDL_DEBUG(x, ...)
#endif

#endif