Application running on nRF51822 PCA10001
Dependencies: BLE_API MMA8652 nRF51822 mbed-src
Diff: Logger.h
- Revision:
- 3:596283411a00
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Logger.h Fri Aug 29 12:36:01 2014 +0000 @@ -0,0 +1,16 @@ +#ifndef _H_LOGGER_H +#define _H_LOGGER_H + +#define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console; + * it will have an impact on code-size and power consumption. */ + +#if NEED_CONSOLE_OUTPUT +//Serial pc(USBTX, USBRX); +//pc.baud(9600); +//pc.set_flow_control(SerialBase::RTSCTS, p8, p10); +#define DEBUG(...) { printf(__VA_ARGS__); } +#else +#define DEBUG(...) /* nothing */ +#endif /* #if NEED_CONSOLE_OUTPUT */ + +#endif //_H_LOGGER_H