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-15 16:45:39 +08:00
parent 39a219331c
commit a59daff749
5 changed files with 267 additions and 13 deletions
@@ -741,10 +741,10 @@ typedef union {
* This register stores the Xon flow control char.
*/
uint32_t xon_character:8;
/** xoff_threshold : R/W; bitpos: [15:8]; default: 19;
/** xoff_character : R/W; bitpos: [15:8]; default: 19;
* This register stores the Xoff flow control char.
*/
uint32_t xoff_threshold:8;
uint32_t xoff_character:8;
/** xon_xoff_still_send : R/W; bitpos: [16]; default: 0;
* In software flow control mode, UART Tx is disabled once UART Rx receives XOFF. In
* this status, UART Tx can not transmit XOFF even the received data number is larger