mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
Adding high speed UART support for Armbian + AllWinnder H2/H3 SBCs (ie. NanoPi NEO, OrangePi Zero, etc.)
This commit is contained in:
@@ -357,6 +357,12 @@ bool CUARTController::setRaw()
|
||||
::cfsetispeed(&termios, B460800);
|
||||
break;
|
||||
#endif /*B460800*/
|
||||
#if defined(B500000)
|
||||
case 500000U:
|
||||
::cfsetospeed(&termios, B500000);
|
||||
::cfsetispeed(&termios, B500000);
|
||||
break;
|
||||
#endif /*B500000*/
|
||||
default:
|
||||
LogError("Unsupported serial port speed - %u", m_speed);
|
||||
::close(m_fd);
|
||||
|
||||
Reference in New Issue
Block a user