add support for higher speeds.

This commit is contained in:
iceman1001 2019-05-18 21:38:21 +02:00
commit 13cd6ab61a
2 changed files with 8 additions and 0 deletions

View file

@ -412,6 +412,12 @@ bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) {
stPortSpeed = B921600;
break;
# endif
# ifdef B1382400
case 1382400:
stPortSpeed = B1382400;
break;
# endif
default:
return false;
};

View file

@ -150,6 +150,8 @@ bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) {
case 115200:
case 230400:
case 460800:
case 921600:
case 1382400:
break;
default:
return false;