mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 16:55:33 +00:00
fix(examples): fix esp32c5 ulp examples
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -55,6 +55,18 @@ static inline void lp_core_ll_reset_register(void)
|
||||
/// the critical section needs to declare the __DECLARE_RCC_ATOMIC_ENV variable in advance
|
||||
#define lp_core_ll_reset_register(...) (void)__DECLARE_RCC_ATOMIC_ENV; lp_core_ll_reset_register(__VA_ARGS__)
|
||||
|
||||
/**
|
||||
* @brief Enable fast access of LP memory
|
||||
*
|
||||
* @note When fast access is activated, LP-core cannot access LP mem during deep sleep
|
||||
*
|
||||
* @param enable Enable if true, disable if false
|
||||
*/
|
||||
static inline void lp_core_ll_fast_lp_mem_enable(bool enable)
|
||||
{
|
||||
LP_AON.lpbus.fast_mem_mux_sel = enable;
|
||||
LP_AON.lpbus.fast_mem_mux_sel_update = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Trigger a LP_CORE_LL_WAKEUP_SOURCE_HP_CPU wake-up on the lp core
|
||||
|
Reference in New Issue
Block a user