Mbed Library with modified HSE_Startup timeout

Fork of mbed-src by mbed official

Revision:
591:474d026f7d79
Parent:
227:7bd0639b8911
diff -r 0e93a0f70f9d -r 474d026f7d79 common/assert.c
--- 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);
 }