The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
138:093f2bd7b9eb
Parent:
128:9bcdf88f62b0
Child:
145:64910690c574
--- a/drivers/Ticker.h	Tue Feb 28 16:44:21 2017 +0000
+++ b/drivers/Ticker.h	Tue Mar 14 16:20:51 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);
     }