Fork of mbed-dev build 137, last build before FAT file system appears to be broken. Also reduced HSE timeout time in STM4XX HAL

Fork of mbed-dev by mbed official

Revision:
156:95d6b41a828b
Parent:
149:156823d33999
--- a/targets/TARGET_STM/TARGET_STM32F0/serial_api.c	Thu Jan 05 10:51:54 2017 +0000
+++ b/targets/TARGET_STM/TARGET_STM32F0/serial_api.c	Mon Jan 16 15:03:32 2017 +0000
@@ -217,64 +217,64 @@
       
     // Reset UART and disable clock
     if (obj_s->uart == UART_1) {
-        __USART1_FORCE_RESET();
-        __USART1_RELEASE_RESET();
-        __USART1_CLK_DISABLE();
+        __HAL_RCC_USART1_FORCE_RESET();
+        __HAL_RCC_USART1_RELEASE_RESET();
+        __HAL_RCC_USART1_CLK_DISABLE();
     }
 
 #if defined(USART2_BASE)
     if (obj_s->uart == UART_2) {
-        __USART2_FORCE_RESET();
-        __USART2_RELEASE_RESET();
-        __USART2_CLK_DISABLE();
+         __HAL_RCC_USART2_FORCE_RESET();
+         __HAL_RCC_USART2_RELEASE_RESET();
+         __HAL_RCC_USART2_CLK_DISABLE();
     }
 #endif
 
 #if defined USART3_BASE
     if (obj_s->uart == UART_3) {
-        __USART3_FORCE_RESET();
-        __USART3_RELEASE_RESET();
-        __USART3_CLK_DISABLE();
+        __HAL_RCC_USART3_FORCE_RESET();
+        __HAL_RCC_USART3_RELEASE_RESET();
+        __HAL_RCC_USART3_CLK_DISABLE();
     }
 #endif
 
 #if defined USART4_BASE
     if (obj_s->uart == UART_4) {
-        __USART4_FORCE_RESET();
-        __USART4_RELEASE_RESET();
-        __USART4_CLK_DISABLE();
+        __HAL_RCC_USART4_FORCE_RESET();
+        __HAL_RCC_USART4_RELEASE_RESET();
+        __HAL_RCC_USART4_CLK_DISABLE();
     }
 #endif
 
 #if defined USART5_BASE
     if (obj_s->uart == UART_5) {
-        __USART5_FORCE_RESET();
-        __USART5_RELEASE_RESET();
-        __USART5_CLK_DISABLE();
+        __HAL_RCC_USART5_FORCE_RESET();
+        __HAL_RCC_USART5_RELEASE_RESET();
+        __HAL_RCC_USART5_CLK_DISABLE();
     }
 #endif
 
 #if defined USART6_BASE
     if (obj_s->uart == UART_6) {
-        __USART6_FORCE_RESET();
-        __USART6_RELEASE_RESET();
-        __USART6_CLK_DISABLE();
+        __HAL_RCC_USART6_FORCE_RESET();
+        __HAL_RCC_USART6_RELEASE_RESET();
+        __HAL_RCC_USART6_CLK_DISABLE();
     }
 #endif
 
 #if defined USART7_BASE
     if (obj_s->uart == UART_7) {
-        __USART7_FORCE_RESET();
-        __USART7_RELEASE_RESET();
-        __USART7_CLK_DISABLE();
+        __HAL_RCC_USART7_FORCE_RESET();
+        __HAL_RCC_USART7_RELEASE_RESET();
+        __HAL_RCC_USART7_CLK_DISABLE();
     }
 #endif
 
 #if defined USART8_BASE
     if (obj_s->uart == UART_8) {
-        __USART8_FORCE_RESET();
-        __USART8_RELEASE_RESET();
-        __USART8_CLK_DISABLE();
+        __HAL_RCC_USART8_FORCE_RESET();
+        __HAL_RCC_USART8_RELEASE_RESET();
+        __HAL_RCC_USART8_CLK_DISABLE();
     }
 #endif