mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: common/Ticker.cpp
- Revision:
- 529:c320967f86b9
- Parent:
- 304:89b9c3a9a045
diff -r c0134becc221 -r c320967f86b9 common/Ticker.cpp --- a/common/Ticker.cpp Mon Apr 27 09:45:08 2015 +0100 +++ b/common/Ticker.cpp Tue Apr 28 11:45:12 2015 +0100 @@ -17,6 +17,7 @@ #include "TimerEvent.h" #include "FunctionPointer.h" +#include "ticker_api.h" namespace mbed { @@ -28,7 +29,7 @@ void Ticker::setup(timestamp_t t) { remove(); _delay = t; - insert(_delay + us_ticker_read()); + insert(_delay + ticker_read(_ticker_data)); } void Ticker::handler() {