mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(ulp): fix lp uart keep wakeup triggered
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Enable LP Core
|
||||
CONFIG_ULP_COPROC_ENABLED=y
|
||||
CONFIG_ULP_COPROC_TYPE_LP_CORE=y
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=15000
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=16000
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Enable ULP
|
||||
CONFIG_ULP_COPROC_ENABLED=y
|
||||
CONFIG_ULP_COPROC_TYPE_LP_CORE=y
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=4096
|
||||
CONFIG_ULP_COPROC_RESERVE_MEM=5120
|
||||
|
||||
@@ -1,20 +1,17 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "ulp_lp_core_utils.h"
|
||||
#include "ulp_lp_core_print.h"
|
||||
#include "ulp_lp_core_lp_uart_shared.h"
|
||||
#include "ulp_lp_core_uart.h"
|
||||
|
||||
int main (void)
|
||||
{
|
||||
lp_core_printf("Hello world\r\n");
|
||||
lp_core_uart_tx_flush(LP_UART_NUM_0);
|
||||
|
||||
// If you want to make it possible to wake up from UART after sleep,
|
||||
// you have to reset the wakeup register and the UART buffer manually.
|
||||
// ulp_lp_core_lp_uart_reset_wakeup_en();
|
||||
// lp_core_uart_clear_buf();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user