Application running on nRF51822 PCA10001
Dependencies: BLE_API MMA8652 nRF51822 mbed-src
Logger.h@6:2fb6cf3c9047, 2014-10-14 (annotated)
- Committer:
- rosterloh84
- Date:
- Tue Oct 14 13:04:06 2014 +0000
- Revision:
- 6:2fb6cf3c9047
- Parent:
- 3:596283411a00
Updates before refactoring BuddiService
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rosterloh84 | 3:596283411a00 | 1 | #ifndef _H_LOGGER_H |
rosterloh84 | 3:596283411a00 | 2 | #define _H_LOGGER_H |
rosterloh84 | 3:596283411a00 | 3 | |
rosterloh84 | 3:596283411a00 | 4 | #define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console; |
rosterloh84 | 3:596283411a00 | 5 | * it will have an impact on code-size and power consumption. */ |
rosterloh84 | 3:596283411a00 | 6 | |
rosterloh84 | 3:596283411a00 | 7 | #if NEED_CONSOLE_OUTPUT |
rosterloh84 | 3:596283411a00 | 8 | //Serial pc(USBTX, USBRX); |
rosterloh84 | 3:596283411a00 | 9 | //pc.baud(9600); |
rosterloh84 | 3:596283411a00 | 10 | //pc.set_flow_control(SerialBase::RTSCTS, p8, p10); |
rosterloh84 | 3:596283411a00 | 11 | #define DEBUG(...) { printf(__VA_ARGS__); } |
rosterloh84 | 3:596283411a00 | 12 | #else |
rosterloh84 | 3:596283411a00 | 13 | #define DEBUG(...) /* nothing */ |
rosterloh84 | 3:596283411a00 | 14 | #endif /* #if NEED_CONSOLE_OUTPUT */ |
rosterloh84 | 3:596283411a00 | 15 | |
rosterloh84 | 3:596283411a00 | 16 | #endif //_H_LOGGER_H |