Project with example IPSO resources for LED bar, Gas Sensor, and Light Sensor

Dependencies:   EthernetInterface LED_Bar mbed-rtos mbed nsdl_lib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dbg.h Source File

dbg.h

00001 #ifndef DEBUG_H
00002 #define DEBUG_H
00003 
00004 #include "nsdl_support.h"
00005 #include "mbed.h"
00006 
00007 //Debug is disabled by default
00008 #define DEBUG 1
00009 
00010 #if (DEBUG)
00011 extern Serial pc;
00012 #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00013 #else
00014 #define NSDL_DEBUG(x, ...)
00015 #endif
00016 
00017 #endif