An example program to test data transfer throughput. Exhibits long latency (2 sec) between hardware callbacks on write event.
Dependencies: BLE_API mbed nRF51822
Diff: Logger.h
- Revision:
- 0:ab775bf55fe4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Logger.h Thu Aug 14 14:13:53 2014 +0000 @@ -0,0 +1,13 @@ +#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 +#define DEBUG(...) { printf(__VA_ARGS__); } +#else +#define DEBUG(...) /* nothing */ +#endif /* #if NEED_CONSOLE_OUTPUT */ + +#endif//_H_LOGGER_H \ No newline at end of file