imxrt:serial:Fix selection of RTS to iflow

This commit is contained in:
David Sidrane 2022-12-19 06:34:07 -08:00 committed by Xiang Xiao
parent 70791af8e2
commit 033adeced4

View File

@ -1578,15 +1578,15 @@ static int imxrt_setup(struct uart_dev_s *dev)
config.parity = priv->parity; /* 0=none, 1=odd, 2=even */
config.bits = priv->bits; /* Number of bits (5-9) */
config.stopbits2 = priv->stopbits2; /* true: Configure with 2 stop bits instead of 1 */
#ifdef CONFIG_SERIAL_IFLOWCONTROL
config.usects = priv->iflow; /* Flow control on inbound side */
#endif
#ifdef CONFIG_SERIAL_OFLOWCONTROL
/* Flow control on outbound side if not GPIO based */
config.usects = priv->oflow; /* Flow control on outbound side */
#endif
#ifdef CONFIG_SERIAL_IFLOWCONTROL
/* Flow control on inbound side if not GPIO based */
if ((priv->rts_gpio & GPIO_MODE_MASK) == GPIO_PERIPH)
{
config.userts = priv->oflow;
config.userts = priv->iflow;
}
#endif