mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c
Dependents: Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay
Fork of mbed-dev by
Diff: drivers/Ticker.cpp
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
- Child:
- 167:e84263d55307
diff -r 612c381a210f -r d5399cc887bb drivers/Ticker.cpp --- 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