An example program to test data transfer throughput. Exhibits long latency (2 sec) between hardware callbacks on write event.

Dependencies:   BLE_API mbed nRF51822

Committer:
pvaibhav
Date:
Thu Aug 14 14:13:53 2014 +0000
Revision:
0:ab775bf55fe4
Minimal program to demo slow throughput/callback latency

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pvaibhav 0:ab775bf55fe4 1 #ifndef _H_LOGGER_H
pvaibhav 0:ab775bf55fe4 2 #define _H_LOGGER_H
pvaibhav 0:ab775bf55fe4 3
pvaibhav 0:ab775bf55fe4 4 #define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console;
pvaibhav 0:ab775bf55fe4 5 * it will have an impact on code-size and power consumption. */
pvaibhav 0:ab775bf55fe4 6
pvaibhav 0:ab775bf55fe4 7 #if NEED_CONSOLE_OUTPUT
pvaibhav 0:ab775bf55fe4 8 #define DEBUG(...) { printf(__VA_ARGS__); }
pvaibhav 0:ab775bf55fe4 9 #else
pvaibhav 0:ab775bf55fe4 10 #define DEBUG(...) /* nothing */
pvaibhav 0:ab775bf55fe4 11 #endif /* #if NEED_CONSOLE_OUTPUT */
pvaibhav 0:ab775bf55fe4 12
pvaibhav 0:ab775bf55fe4 13 #endif//_H_LOGGER_H