fix set UART_FORCE_XOFF can't stop new Tx request issue

This commit is contained in:
Li Shuai
2020-12-04 11:20:07 +08:00
parent 6d12fdd6e7
commit a43de3a44b
6 changed files with 177 additions and 24 deletions

View File

@@ -27,6 +27,11 @@ extern "C" {
// ESP32-C3 have 2 UART
#define SOC_UART_NUM (2)
// UART has an extra TX_WAIT_SEND state when the FIFO is not empty and XOFF is enabled
#define SOC_UART_SUPPORT_FSM_TX_WAIT_SEND (1)
#define UART_FSM_IDLE (0x0)
#define UART_FSM_TX_WAIT_SEND (0xf)
#ifdef __cplusplus
}
#endif