From e825431c1aa035c5e182e35fc9195b6eb0f540da Mon Sep 17 00:00:00 2001 From: Russ Butler Date: Mon, 21 Dec 2015 23:59:55 -0600 Subject: [PATCH] Fix nRF51 baud table size Increase the number of entries in the baud rate table from 17 to 18. This problem was introduced in the patch: 0a6e345400e5e73eeb8df189bc3ce112f0dbd793 - Add support for 56000 baud on nrf51 --- .../targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c index 4a8dda930f..e48c929ded 100755 --- a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c +++ b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c @@ -29,7 +29,7 @@ static uint32_t serial_irq_ids[UART_NUM] = {0}; static uart_irq_handler irq_handler; -static const int acceptedSpeeds[17][2] = { +static const int acceptedSpeeds[18][2] = { {1200, UART_BAUDRATE_BAUDRATE_Baud1200}, {2400, UART_BAUDRATE_BAUDRATE_Baud2400}, {4800, UART_BAUDRATE_BAUDRATE_Baud4800},