[posix] add radio URL parameter uart-init-deassert to deassert DTR and RTS on init when flow control is disabled (#10644)

This lets us preserve legacy behavior where `uart-flow-control` was
not required even with hardware flow control enabled.
This commit is contained in:
Suvesh Pratapa
2024-08-28 11:38:31 -07:00
committed by GitHub
parent 3a525f3b57
commit 45c5fe475b
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -600,8 +600,9 @@ int HdlcInterface::OpenFile(const Url::Url &aRadioUrl)
{
tios.c_cflag |= CRTSCTS;
}
else
else if (aRadioUrl.HasParam("uart-init-deassert"))
{
// When flow control is disabled, deassert DTR and RTS on init
#ifndef __APPLE__
int flags;
#endif
+1
View File
@@ -84,6 +84,7 @@ const char *otSysGetRadioUrlHelpString(void)
" uart-stop[=number-of-bits] Uart stop bit, default is 1.\n" \
" uart-baudrate[=baudrate] Uart baud rate, default is 115200.\n" \
" uart-flow-control Enable flow control, disabled by default.\n" \
" uart-init-deassert Deassert lines on init when flow control is disabled.\n" \
" uart-reset Reset connection after hard resetting RCP(USB CDC ACM).\n" \
"\n"
#else