mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
uart: Provide support for esp32c2 and esp32h2
UART examples, unit test, and programming guide are all updated.
This commit is contained in:
@@ -199,9 +199,8 @@ static void uart_module_enable(uart_port_t uart_num)
|
||||
if (uart_context[uart_num].hw_enabled != true) {
|
||||
periph_module_enable(uart_periph_signal[uart_num].module);
|
||||
if (uart_num != CONFIG_ESP_CONSOLE_UART_NUM) {
|
||||
// Workaround for ESP32C3: enable core reset
|
||||
// before enabling uart module clock
|
||||
// to prevent uart output garbage value.
|
||||
// Workaround for ESP32C3/S3: enable core reset before enabling uart module clock to prevent uart output
|
||||
// garbage value.
|
||||
#if SOC_UART_REQUIRE_CORE_RESET
|
||||
uart_hal_set_reset_core(&(uart_context[uart_num].hal), true);
|
||||
periph_module_reset(uart_periph_signal[uart_num].module);
|
||||
|
Reference in New Issue
Block a user