Merge pull request #13595 from gutbag/add-nrf52-midi-baud-rate

Nordic: Support 31250 baud rate
pull/13692/head
Martin Kojtal 2020-10-16 09:06:31 +01:00 committed by GitHub
commit c8345a3490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1046,8 +1046,10 @@ void serial_baud(serial_t *obj, int baudrate)
new_rate = NRF_UARTE_BAUDRATE_14400;
} else if (baudrate < 28800) {
new_rate = NRF_UARTE_BAUDRATE_19200;
} else if (baudrate < 38400) {
} else if (baudrate < 31250) {
new_rate = NRF_UARTE_BAUDRATE_28800;
} else if (baudrate < 38400) {
new_rate = NRF_UARTE_BAUDRATE_31250;
} else if (baudrate < 57600) {
new_rate = NRF_UARTE_BAUDRATE_38400;
} else if (baudrate < 76800) {