mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

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

Revision:
15:4892fe388435
Parent:
13:0645d8841f51
Child:
212:34d62c0b2af6
--- a/api/FunctionPointer.h	Mon Aug 05 14:54:27 2013 +0000
+++ b/api/FunctionPointer.h	Wed Aug 07 16:43:59 2013 +0300
@@ -20,6 +20,8 @@
 
 namespace mbed {
 
+typedef void (*pvoidf_t)(void);
+
 /** A class for storing and calling a pointer to a static or member void function
  */
 class FunctionPointer {
@@ -64,6 +66,14 @@
      */
     void call();
 
+    pvoidf_t get_function() const {
+        return (pvoidf_t)_function;
+    }
+
+#ifdef MBED_OPERATORS
+    void operator ()(void);
+#endif
+
 private:
     template<typename T>
     static void membercaller(void *object, char *member) {