Brian Daniels / Mbed 2 deprecated nespresso_demo

Dependencies:   EthernetInterface mbed-rtos mbed nsdl rgb_sensor_buffer

Fork of mbed_nsdl by Nespresso RGB Sensor

Committer:
GeofferyOmlette
Date:
Wed Jun 04 15:39:11 2014 +0000
Revision:
0:345864e9ee85
Child:
9:9d5b0c43579b
hello

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GeofferyOmlette 0:345864e9ee85 1 #ifndef DEBUG_H
GeofferyOmlette 0:345864e9ee85 2 #define DEBUG_H
GeofferyOmlette 0:345864e9ee85 3
GeofferyOmlette 0:345864e9ee85 4 #include "nsdl_support.h"
GeofferyOmlette 0:345864e9ee85 5 #include "mbed.h"
GeofferyOmlette 0:345864e9ee85 6
GeofferyOmlette 0:345864e9ee85 7 //Debug is disabled by default
GeofferyOmlette 0:345864e9ee85 8 #define DEBUG 1
GeofferyOmlette 0:345864e9ee85 9
GeofferyOmlette 0:345864e9ee85 10 #if (DEBUG)
GeofferyOmlette 0:345864e9ee85 11 extern Serial pc;
GeofferyOmlette 0:345864e9ee85 12 #define NSDL_DEBUG(x, ...) pc.printf("[NSDL_DEBUG: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
GeofferyOmlette 0:345864e9ee85 13 #else
GeofferyOmlette 0:345864e9ee85 14 #define NSDL_DEBUG(x, ...)
GeofferyOmlette 0:345864e9ee85 15 #endif
GeofferyOmlette 0:345864e9ee85 16
GeofferyOmlette 0:345864e9ee85 17 #endif