mirror of https://github.com/ARMmbed/mbed-os.git
Support 31250 baud rate
parent
6fb5e609c3
commit
9ffd462a28
|
@ -1046,8 +1046,10 @@ void serial_baud(serial_t *obj, int baudrate)
|
||||||
new_rate = NRF_UARTE_BAUDRATE_14400;
|
new_rate = NRF_UARTE_BAUDRATE_14400;
|
||||||
} else if (baudrate < 28800) {
|
} else if (baudrate < 28800) {
|
||||||
new_rate = NRF_UARTE_BAUDRATE_19200;
|
new_rate = NRF_UARTE_BAUDRATE_19200;
|
||||||
} else if (baudrate < 38400) {
|
} else if (baudrate < 31250) {
|
||||||
new_rate = NRF_UARTE_BAUDRATE_28800;
|
new_rate = NRF_UARTE_BAUDRATE_28800;
|
||||||
|
} else if (baudrate < 38400) {
|
||||||
|
new_rate = NRF_UARTE_BAUDRATE_31250;
|
||||||
} else if (baudrate < 57600) {
|
} else if (baudrate < 57600) {
|
||||||
new_rate = NRF_UARTE_BAUDRATE_38400;
|
new_rate = NRF_UARTE_BAUDRATE_38400;
|
||||||
} else if (baudrate < 76800) {
|
} else if (baudrate < 76800) {
|
||||||
|
|
Loading…
Reference in New Issue