diff --git a/Drv/LinuxUartDriver/LinuxUartDriver.cpp b/Drv/LinuxUartDriver/LinuxUartDriver.cpp index 0357c1f0a2..85ea98c4a3 100644 --- a/Drv/LinuxUartDriver/LinuxUartDriver.cpp +++ b/Drv/LinuxUartDriver/LinuxUartDriver.cpp @@ -173,6 +173,30 @@ bool LinuxUartDriver::open(const char* const device, case BAUD_921K: relayRate = B921600; break; + case BAUD_1000K: + relayRate = B1000000; + break; + case BAUD_1152K: + relayRate = B1152000; + break; + case BAUD_1500K: + relayRate = B1500000; + break; + case BAUD_2000K: + relayRate = B2000000; + break; + case BAUD_2500K: + relayRate = B2500000; + break; + case BAUD_3000K: + relayRate = B3000000; + break; + case BAUD_3500K: + relayRate = B3500000; + break; + case BAUD_4000K: + relayRate = B4000000; + break; #endif default: FW_ASSERT(0, baud); diff --git a/Drv/LinuxUartDriver/LinuxUartDriver.hpp b/Drv/LinuxUartDriver/LinuxUartDriver.hpp index 282ea5f106..3818606f63 100644 --- a/Drv/LinuxUartDriver/LinuxUartDriver.hpp +++ b/Drv/LinuxUartDriver/LinuxUartDriver.hpp @@ -36,7 +36,24 @@ class LinuxUartDriver : public LinuxUartDriverComponentBase { ); //! Configure UART parameters - enum UartBaudRate { BAUD_9600=9600, BAUD_19200=19200, BAUD_38400=38400, BAUD_57600=57600, BAUD_115K=115200, BAUD_230K=230400, BAUD_460K=460800, BAUD_921K=921600}; + enum UartBaudRate { + BAUD_9600=9600, + BAUD_19200=19200, + BAUD_38400=38400, + BAUD_57600=57600, + BAUD_115K=115200, + BAUD_230K=230400, + BAUD_460K=460800, + BAUD_921K=921600, + BAUD_1000K=1000000000, + BAUD_1152K=1152000000, + BAUD_1500K=1500000000, + BAUD_2000K=2000000000, + BAUD_2500K=2500000000, + BAUD_3000K=3000000000, + BAUD_3500K=3500000000, + BAUD_4000K=4000000000 + }; enum UartFlowControl { NO_FLOW, HW_FLOW };