mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
uart: fixed reset logic on ESP32-S3
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
bdd7610e66
commit
2ef6b8845b
@@ -62,6 +62,18 @@ typedef enum {
|
|||||||
UART_INTR_CMD_CHAR_DET = (0x1 << 18),
|
UART_INTR_CMD_CHAR_DET = (0x1 << 18),
|
||||||
} uart_intr_t;
|
} uart_intr_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Configure the UART core reset.
|
||||||
|
*
|
||||||
|
* @param hw Beginning address of the peripheral registers.
|
||||||
|
* @param core_rst_en True to enable the core reset, otherwise set it false.
|
||||||
|
*
|
||||||
|
* @return None.
|
||||||
|
*/
|
||||||
|
static inline void uart_ll_set_reset_core(uart_dev_t *hw, bool core_rst_en)
|
||||||
|
{
|
||||||
|
hw->clk_conf.rst_core = core_rst_en;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set the UART source clock.
|
* @brief Set the UART source clock.
|
||||||
|
@@ -237,6 +237,7 @@
|
|||||||
|
|
||||||
#define SOC_UART_SUPPORT_RTC_CLK (1) /*!< Support RTC clock as the clock source */
|
#define SOC_UART_SUPPORT_RTC_CLK (1) /*!< Support RTC clock as the clock source */
|
||||||
#define SOC_UART_SUPPORT_XTAL_CLK (1) /*!< Support XTAL clock as the clock source */
|
#define SOC_UART_SUPPORT_XTAL_CLK (1) /*!< Support XTAL clock as the clock source */
|
||||||
|
#define SOC_UART_REQUIRE_CORE_RESET (1)
|
||||||
|
|
||||||
/*-------------------------- USB CAPS ----------------------------------------*/
|
/*-------------------------- USB CAPS ----------------------------------------*/
|
||||||
#define SOC_USB_PERIPH_NUM 1
|
#define SOC_USB_PERIPH_NUM 1
|
||||||
|
Reference in New Issue
Block a user