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 mbed official

Revision:
160:d5399cc887bb
Parent:
149:156823d33999
Child:
167:e84263d55307
--- a/drivers/Ticker.h	Tue Feb 28 17:13:35 2017 +0000
+++ b/drivers/Ticker.h	Tue Mar 14 16:40:56 2017 +0000
@@ -18,7 +18,7 @@
 
 #include "drivers/TimerEvent.h"
 #include "platform/Callback.h"
-#include "platform/toolchain.h"
+#include "platform/mbed_toolchain.h"
 
 namespace mbed {
 /** \addtogroup drivers */
@@ -101,7 +101,7 @@
      *  @param t the time between calls in micro-seconds
      */
     void attach_us(Callback<void()> func, timestamp_t t) {
-        _function.attach(func);
+        _function = func;
         setup(t);
     }