mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-15 21:10:04 +01:00
Adding high speed UART support for Armbian + AllWinnder H2/H3 SBCs (ie. NanoPi NEO, OrangePi Zero, etc.)
This commit is contained in:
parent
8370bdb644
commit
f834c505ca
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue