mirror of https://github.com/ARMmbed/mbed-os.git
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:
0a6e345400
-
Add support for 56000 baud on nrf51
pull/1479/head
parent
a8616dc775
commit
e825431c1a
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
static uint32_t serial_irq_ids[UART_NUM] = {0};
|
static uint32_t serial_irq_ids[UART_NUM] = {0};
|
||||||
static uart_irq_handler irq_handler;
|
static uart_irq_handler irq_handler;
|
||||||
static const int acceptedSpeeds[17][2] = {
|
static const int acceptedSpeeds[18][2] = {
|
||||||
{1200, UART_BAUDRATE_BAUDRATE_Baud1200},
|
{1200, UART_BAUDRATE_BAUDRATE_Baud1200},
|
||||||
{2400, UART_BAUDRATE_BAUDRATE_Baud2400},
|
{2400, UART_BAUDRATE_BAUDRATE_Baud2400},
|
||||||
{4800, UART_BAUDRATE_BAUDRATE_Baud4800},
|
{4800, UART_BAUDRATE_BAUDRATE_Baud4800},
|
||||||
|
|
Loading…
Reference in New Issue