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:
122:f9eeca106725
Parent:
66:9c8f0e3462fb
--- a/mbed_interface.h	Wed May 25 16:44:06 2016 +0100
+++ b/mbed_interface.h	Thu Jul 07 14:34:11 2016 +0100
@@ -16,6 +16,8 @@
 #ifndef MBED_INTERFACE_H
 #define MBED_INTERFACE_H
 
+#include <stdarg.h>
+
 #include "device.h"
 
 /* Mbed interface mac address
@@ -107,6 +109,20 @@
  */
 void mbed_die(void);
 
+/** Print out an error message.  This is typically called when
+ * hanlding a crash.
+ *
+ * @Note Synchronization level: Interrupt safe
+ */
+void mbed_error_printf(const char* format, ...);
+
+/** Print out an error message.  Similar to mbed_error_printf
+ * but uses a va_list.
+ *
+ * @Note Synchronization level: Interrupt safe
+ */
+void mbed_error_vfprintf(const char * format, va_list arg);
+
 #ifdef __cplusplus
 }
 #endif