add support for higher speeds.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user