mbed library sources

Fork of mbed-src by mbed official

Revision:
592:474d026f7d79
Parent:
227:7bd0639b8911
--- a/common/assert.c	Tue Jul 14 09:45:08 2015 +0100
+++ b/common/assert.c	Wed Jul 15 08:15:08 2015 +0100
@@ -14,19 +14,9 @@
  * limitations under the License.
  */
 #include "mbed_assert.h"
-#include "device.h"
-
-#if DEVICE_STDIO_MESSAGES
-#include <stdio.h>
-#endif
-
-#include <stdlib.h>
-#include "mbed_interface.h"
+#include "mbed_error.h"
 
 void mbed_assert_internal(const char *expr, const char *file, int line)
 {
-#if DEVICE_STDIO_MESSAGES
-    fprintf(stderr, "mbed assertation failed: %s, file: %s, line %d \n", expr, file, line);
-#endif
-    mbed_die();
+    error("mbed assertation failed: %s, file: %s, line %d \n", expr, file, line);
 }