Skip to content

Commit 0a6e345

Browse files
committed
Add support for 56000 baud on nrf51
Add support for the baudrate 56000. This is not documented in the datasheet, but Nordic has indicated in can be used by setting the BAUD register to 56000.
1 parent 8d12e20 commit 0a6e345

File tree

1 file changed

+1
-0
lines changed
  • libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822

1 file changed

+1
-0
lines changed

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static const int acceptedSpeeds[17][2] = {
3939
{28800, UART_BAUDRATE_BAUDRATE_Baud28800},
4040
{31250, (0x00800000UL) /* 31250 baud */},
4141
{38400, UART_BAUDRATE_BAUDRATE_Baud38400},
42+
{56000, (0x00E51000UL) /* 56000 baud */},
4243
{57600, UART_BAUDRATE_BAUDRATE_Baud57600},
4344
{76800, UART_BAUDRATE_BAUDRATE_Baud76800},
4445
{115200, UART_BAUDRATE_BAUDRATE_Baud115200},

0 commit comments

Comments
 (0)