fix(uart): fix 8/16-bit uart register access

This commit is contained in:
Song Ruo Jing
2024-12-25 15:32:06 +08:00
parent 25a1ad7e98
commit 7167b04e6e
21 changed files with 144 additions and 139 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -241,7 +241,7 @@ typedef volatile struct uart_dev_s {
union {
struct {
uint32_t xoff_threshold: 9; /*When the data amount in Rx-FIFO is more than this register value with uart_sw_flow_con_en set to 1 it will send a Xoff char.*/
uint32_t xoff_char: 8; /*This register stores the Xoff flow control char.*/
uint32_t xoff_character: 8; /*This register stores the Xoff flow control char.*/
uint32_t reserved17: 15; /*Reserved*/
};
uint32_t val;
@@ -249,7 +249,7 @@ typedef volatile struct uart_dev_s {
union {
struct {
uint32_t xon_threshold: 9; /*When the data amount in Rx-FIFO is less than this register value with uart_sw_flow_con_en set to 1 it will send a Xon char.*/
uint32_t xon_char: 8; /*This register stores the Xon flow control char.*/
uint32_t xon_character: 8; /*This register stores the Xon flow control char.*/
uint32_t reserved17: 15; /*Reserved*/
};
uint32_t val;
@@ -306,7 +306,7 @@ typedef volatile struct uart_dev_s {
union {
struct {
uint32_t data: 8; /*This register is used to configure the content of at_cmd char.*/
uint32_t char_num: 8; /*This register is used to configure the num of continuous at_cmd chars received by receiver.*/
uint32_t at_char_num: 8; /*This register is used to configure the num of continuous at_cmd chars received by receiver.*/
uint32_t reserved16: 16; /*Reserved*/
};
uint32_t val;