mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 18:09:52 +00:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user