mDS demo using cc3000 WiFi Shields from Sparkfun or Adafruit

Dependencies:   cc3000_hostdriver_mbedsocket mbed nsdl_lib

dbg.h

Committer:
michaeljkoster
Date:
2014-10-18
Revision:
3:ddf404b5ed21
Parent:
0:b1ec2d7dc8d1

File content as of revision 3:ddf404b5ed21:

#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