if((pconfig->hwflowctrl == USART_HardwareFlowControl_CTS_RTS) || (pconfig->hwflowctrl == USART_HardwareFlowControl_RTS))
{
SET_PERI_REG_MASK(UART_CONF1(uart_no), ((0x78 & UART_RX_FLOW_THRHD) << UART_RX_FLOW_THRHD_S) | UART_RX_FLOW_EN );
}
question:
1) why the overrun happened when RTS enable?
2) when the RTS fall? the Rx FIFO data all read? or Rx FIFO data less than threshold?
the client follow the RTS/CTS.