mbed library sources, mbed-dev only for TYBLE16
Fork of mbed-dev by
Please refer flowing link.
/users/kenjiArai/notebook/tyble16-module-will-become-a-mbed-family--mbedliza/
Diff: drivers/Ticker.cpp
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
- Child:
- 167:e84263d55307
--- a/drivers/Ticker.cpp Tue Feb 28 17:13:35 2017 +0000 +++ b/drivers/Ticker.cpp Tue Mar 14 16:40:56 2017 +0000 @@ -18,14 +18,14 @@ #include "drivers/TimerEvent.h" #include "platform/FunctionPointer.h" #include "hal/ticker_api.h" -#include "platform/critical.h" +#include "platform/mbed_critical.h" namespace mbed { void Ticker::detach() { core_util_critical_section_enter(); remove(); - _function.attach(0); + _function = 0; core_util_critical_section_exit(); } @@ -39,7 +39,7 @@ void Ticker::handler() { insert(event.timestamp + _delay); - _function.call(); + _function(); } } // namespace mbed