mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
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:
@@ -282,10 +282,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
|
||||
|
||||
Reference in New Issue
Block a user