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

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Sat Dec 19 00:15:10 2015 +0000
Parent:
38:a3b3bdc2ad2c
Child:
40:f082c96e7119
Commit message:
Synchronized with git revision a8616dc775b746e7d5fc384e3890272353bbfbd6

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

Remove byte sent at 9600 baud on init on NRF51-DK

Changed in this revision

targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c	Tue Dec 15 16:15:11 2015 +0000
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c	Sat Dec 19 00:15:10 2015 +0000
@@ -39,6 +39,7 @@
     {28800, UART_BAUDRATE_BAUDRATE_Baud28800},
     {31250, (0x00800000UL) /* 31250 baud */},
     {38400, UART_BAUDRATE_BAUDRATE_Baud38400},
+    {56000, (0x00E51000UL) /* 56000 baud */},
     {57600, UART_BAUDRATE_BAUDRATE_Baud57600},
     {76800, UART_BAUDRATE_BAUDRATE_Baud76800},
     {115200, UART_BAUDRATE_BAUDRATE_Baud115200},
@@ -77,7 +78,10 @@
     obj->uart->EVENTS_RXDRDY = 0;
     // dummy write needed or TXDRDY trails write rather than leads write.
     //  pins are disconnected so nothing is physically transmitted on the wire
+    obj->uart->PSELTXD = 0xFFFFFFFF;
+    obj->uart->EVENTS_TXDRDY = 0;
     obj->uart->TXD = 0;
+    while (obj->uart->EVENTS_TXDRDY != 1);
 
     obj->index = 0;