fix(uart): fix uart sw flow ctrl XOFF char write to wrong reg on ESP32C6

Add software flow control test case

Introduced in e6ef4d1791

Closes https://github.com/espressif/esp-idf/issues/18779
This commit is contained in:
Song Ruo Jing
2026-07-10 11:37:14 +08:00
parent 28b43f2e8d
commit dedb603390
6 changed files with 260 additions and 8 deletions
@@ -283,10 +283,12 @@ esp_err_t uart_set_hw_flow_ctrl(uart_port_t uart_num, uart_hw_flowcontrol_t flow
/**
* @brief Set software flow control.
*
* The XON and XOFF characters are '0x11' and '0x13' respectively.
*
* @param uart_num UART port number, the max port number is (UART_NUM_MAX -1)
* @param enable switch on or off
* @param rx_thresh_xon low water mark
* @param rx_thresh_xoff high water mark
* @param enable Enable or disable software flow control feature
* @param rx_thresh_xon Low RX FIFO water mark for TX to send XON character
* @param rx_thresh_xoff High RX FIFO water mark for TX to send XOFF character
*
* @return
* - ESP_OK Success