mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-05 12:25:03 +02:00
uart: support light sleep on esp32s3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -47,7 +47,7 @@ static const char *UART_TAG = "uart";
|
||||
#define UART_PATTERN_DET_QLEN_DEFAULT (10)
|
||||
#define UART_MIN_WAKEUP_THRESH (UART_LL_MIN_WAKEUP_THRESH)
|
||||
|
||||
#if SOC_UART_SUPPORT_WAKEUP
|
||||
#if SOC_UART_SUPPORT_WAKEUP_INT
|
||||
#define UART_INTR_CONFIG_FLAG ((UART_INTR_RXFIFO_FULL) \
|
||||
| (UART_INTR_RXFIFO_TOUT) \
|
||||
| (UART_INTR_RXFIFO_OVF) \
|
||||
@@ -1091,7 +1091,7 @@ static void UART_ISR_ATTR uart_rx_intr_handler_default(void *param)
|
||||
xSemaphoreGiveFromISR(p_uart_obj[uart_num]->tx_done_sem, &HPTaskAwoken);
|
||||
}
|
||||
}
|
||||
#if SOC_UART_SUPPORT_WAKEUP
|
||||
#if SOC_UART_SUPPORT_WAKEUP_INT
|
||||
else if (uart_intr_status & UART_INTR_WAKEUP) {
|
||||
uart_hal_clr_intsts_mask(&(uart_context[uart_num].hal), UART_INTR_WAKEUP);
|
||||
uart_event.type = UART_WAKEUP;
|
||||
|
||||
Reference in New Issue
Block a user