From 8642f65ab0301d6711892e8cbaa8b93061ca5ee4 Mon Sep 17 00:00:00 2001 From: hebinglin Date: Thu, 12 Feb 2026 20:01:17 +0800 Subject: [PATCH] fix(esp_driver_uart): restore enable pad clock in uart_set_wakeup_threshold --- components/esp_driver_uart/src/uart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_driver_uart/src/uart.c b/components/esp_driver_uart/src/uart.c index 444619b1e64..87e106a51c4 100644 --- a/components/esp_driver_uart/src/uart.c +++ b/components/esp_driver_uart/src/uart.c @@ -2278,6 +2278,9 @@ esp_err_t uart_set_wakeup_threshold(uart_port_t uart_num, int wakeup_threshold) "wakeup_threshold out of bounds"); UART_ENTER_CRITICAL(&(uart_context[uart_num].spinlock)); uart_hal_set_wakeup_edge_thrd(&(uart_context[uart_num].hal), wakeup_threshold); + PERIPH_RCC_ATOMIC() { + uart_ll_enable_pad_sleep_clock(uart_context[uart_num].hal.dev, true); + } UART_EXIT_CRITICAL(&(uart_context[uart_num].spinlock)); return ESP_OK; }