Skip to content

Commit 1420397

Browse files
committed
Add missing UART baud rates
1 parent 6e1fc99 commit 1420397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/nRF5/Uart.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ void Uart::begin(unsigned long baudrate, uint16_t config)
104104
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud19200;
105105
} else if (baudrate <= 28800) {
106106
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud28800;
107+
} else if (baudrate <= 31250) {
108+
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud31250;
107109
} else if (baudrate <= 38400) {
108110
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud38400;
111+
} else if (baudrate <= 56000) {
112+
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud56000;
109113
} else if (baudrate <= 57600) {
110114
nrfBaudRate = UARTE_BAUDRATE_BAUDRATE_Baud57600;
111115
} else if (baudrate <= 76800) {

0 commit comments

Comments
 (0)