mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(uart): fix 8/16-bit uart register access
This commit is contained in:
@@ -713,10 +713,10 @@ typedef union {
|
||||
* uart_sw_flow_con_en set to 1, it will send a Xoff char.
|
||||
*/
|
||||
uint32_t xoff_threshold:10;
|
||||
/** xoff_char : R/W; bitpos: [17:10]; default: 19;
|
||||
/** xoff_character : R/W; bitpos: [17:10]; default: 19;
|
||||
* This register stores the Xoff flow control char.
|
||||
*/
|
||||
uint32_t xoff_char:8;
|
||||
uint32_t xoff_character:8;
|
||||
uint32_t reserved_18:14;
|
||||
};
|
||||
uint32_t val;
|
||||
@@ -732,10 +732,10 @@ typedef union {
|
||||
* uart_sw_flow_con_en set to 1, it will send a Xon char.
|
||||
*/
|
||||
uint32_t xon_threshold:10;
|
||||
/** xon_char : R/W; bitpos: [17:10]; default: 17;
|
||||
/** xon_character : R/W; bitpos: [17:10]; default: 17;
|
||||
* This register stores the Xon flow control char.
|
||||
*/
|
||||
uint32_t xon_char:8;
|
||||
uint32_t xon_character:8;
|
||||
uint32_t reserved_18:14;
|
||||
};
|
||||
uint32_t val;
|
||||
@@ -1097,15 +1097,15 @@ typedef union {
|
||||
*/
|
||||
typedef union {
|
||||
struct {
|
||||
/** at_cmd_char : R/W; bitpos: [7:0]; default: 43;
|
||||
/** data : R/W; bitpos: [7:0]; default: 43;
|
||||
* This register is used to configure the content of at_cmd char.
|
||||
*/
|
||||
uint32_t at_cmd_char:8;
|
||||
/** char_num : R/W; bitpos: [15:8]; default: 3;
|
||||
uint32_t data:8;
|
||||
/** at_char_num : R/W; bitpos: [15:8]; default: 3;
|
||||
* This register is used to configure the num of continuous at_cmd chars received by
|
||||
* receiver.
|
||||
*/
|
||||
uint32_t char_num:8;
|
||||
uint32_t at_char_num:8;
|
||||
uint32_t reserved_16:16;
|
||||
};
|
||||
uint32_t val;
|
||||
|
||||
Reference in New Issue
Block a user