uart: fix esp32c3 uart output garbage value after resetting

This commit is contained in:
Wangjialin
2021-03-16 00:50:31 +08:00
committed by Chen Yi Qun
parent cba6f1ae66
commit 427fe1bcde
5 changed files with 30 additions and 6 deletions

View File

@@ -58,9 +58,8 @@ typedef enum {
UART_INTR_CMD_CHAR_DET = (0x1 << 18),
} uart_intr_t;
static inline void uart_ll_reset_core(uart_dev_t *hw) {
hw->clk_conf.rst_core = 1;
hw->clk_conf.rst_core = 0;
static inline void uart_ll_set_reset_core(uart_dev_t *hw, bool core_rst_en) {
hw->clk_conf.rst_core = core_rst_en;
}
static inline void uart_ll_sclk_enable(uart_dev_t *hw) {