Merge branch 'contrib/github_pr_15837' into 'master'

fix(ulp): Add missing wake up enable and disable functions for LP core (GitHub PR)

Closes IDFGH-15161

See merge request espressif/esp-idf!38716
This commit is contained in:
Sudeep Mohanty
2025-04-25 16:07:09 +08:00

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -200,6 +200,27 @@ static inline void ulp_lp_core_gpio_clear_intr_status(void)
rtcio_ll_clear_interrupt_status();
}
/**
* @brief Enable wake up for lp io pin
*
* @param lp_io_num The lp io pin to enable the wake up for
* @param intr_type The interrupt type to enable wake up for
*/
static inline void ulp_lp_core_gpio_wakeup_enable(lp_io_num_t lp_io_num, gpio_int_type_t intr_type)
{
rtcio_ll_wakeup_enable(lp_io_num, intr_type);
}
/**
* @brief Disable wake up for lp io pin
*
* @param lp_io_num The lp io pin to disable the wake up for
*/
static inline void ulp_lp_core_gpio_wakeup_disable(lp_io_num_t lp_io_num)
{
rtcio_ll_wakeup_disable(lp_io_num);
}
#ifdef __cplusplus
}
#endif