mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
189:f392fc9709a3
Parent:
188:bcfe06ba3d64
--- a/targets/TARGET_STM/serial_api.c	Thu Nov 08 11:46:34 2018 +0000
+++ b/targets/TARGET_STM/serial_api.c	Wed Feb 20 22:31:08 2019 +0000
@@ -536,12 +536,14 @@
 #if defined(LPUART1_BASE)
     if (huart->Instance == LPUART1) {
         if (obj_s->baudrate <= 9600) {
-#if ((MBED_CONF_TARGET_LPUART_CLOCK_SOURCE) & USE_LPUART_CLK_LSE)            
+#if ((MBED_CONF_TARGET_LPUART_CLOCK_SOURCE) & USE_LPUART_CLK_LSE) && !TARGET_STM32H7
             HAL_UARTEx_EnableClockStopMode(huart);
-#endif            
+#endif
             HAL_UARTEx_EnableStopMode(huart);
         } else {
+#if !TARGET_STM32H7
             HAL_UARTEx_DisableClockStopMode(huart);
+#endif
             HAL_UARTEx_DisableStopMode(huart);
         }
     }
@@ -666,7 +668,8 @@
 .* Returns 1 if there is at least 1 serial instance with an on-going transfer
  * and 0 otherwise.
 */
-int serial_is_tx_ongoing(void) {
+int serial_is_tx_ongoing(void)
+{
     int TxOngoing = 0;
 
 #if defined(USART1_BASE)
@@ -764,7 +767,8 @@
 
 #else
 
-int serial_is_tx_ongoing(void) {
+int serial_is_tx_ongoing(void)
+{
     return 0;
 }