mbed library sources

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Tue Nov 11 09:45:07 2014 +0000
Parent:
395:bfce16e86ea4
Child:
397:e6a80499f8a6
Commit message:
Synchronized with git revision c9ec51388750fd5ee6c1934e3e879ba23a82955b

Full URL: https://github.com/mbedmicro/mbed/commit/c9ec51388750fd5ee6c1934e3e879ba23a82955b/

Targets: Freescale KSDK - Fix first serial char not being sent

Changed in this revision

targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Mon Nov 10 07:45:06 2014 +0000
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c	Tue Nov 11 09:45:07 2014 +0000
@@ -79,6 +79,7 @@
         stdio_uart_inited = 1;
         memcpy(&stdio_uart, obj, sizeof(serial_t));
     }
+    while(!UART_HAL_IsTxDataRegEmpty(uart_addrs[obj->index]));
 }
 
 void serial_free(serial_t *obj) {