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:
126:549ba18ddd81
Parent:
125:23cc3068a9e4
Child:
185:e752b4ee7de1
--- a/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/system_stm32f4xx.c	Wed Mar 19 10:15:22 2014 +0000
+++ b/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/system_stm32f4xx.c	Wed Mar 19 16:00:09 2014 +0000
@@ -64,7 +64,6 @@
   */
 
 #include "stm32f4xx_hal.h"
-#include "error.h" /* [ADDED FOR MBED] */
 
 /**
   * @}
@@ -292,7 +291,11 @@
   RCC_OscInitStruct.PLL.PLLQ            = 7;
   if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
   {
-    error("System clock initialization failed.");
+    // System clock initialization failed
+    while(1)
+    {
+      // [TODO] Put something here to tell the user that a problem occured...
+    }
   }
  
   /* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2 clocks dividers */
@@ -303,7 +306,11 @@
   RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;   // 84 MHz (SPI1 clock...)
   if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
   {
-    error("System clock initialization failed.");
+    // System clock initialization failed
+    while(1)
+    {
+      // [TODO] Put something here to tell the user that a problem occured...
+    }
   }
 
   /* Update the SystemCoreClock variable