Skip to content

Commit 382121b

Browse files
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
2 parents 79b1ea7 + 4c3fa95 commit 382121b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

components/ulp/lp_core/lp_core/include/ulp_lp_core_gpio.h

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -200,6 +200,27 @@ static inline void ulp_lp_core_gpio_clear_intr_status(void)
200200
rtcio_ll_clear_interrupt_status();
201201
}
202202

203+
/**
204+
* @brief Enable wake up for lp io pin
205+
*
206+
* @param lp_io_num The lp io pin to enable the wake up for
207+
* @param intr_type The interrupt type to enable wake up for
208+
*/
209+
static inline void ulp_lp_core_gpio_wakeup_enable(lp_io_num_t lp_io_num, gpio_int_type_t intr_type)
210+
{
211+
rtcio_ll_wakeup_enable(lp_io_num, intr_type);
212+
}
213+
214+
/**
215+
* @brief Disable wake up for lp io pin
216+
*
217+
* @param lp_io_num The lp io pin to disable the wake up for
218+
*/
219+
static inline void ulp_lp_core_gpio_wakeup_disable(lp_io_num_t lp_io_num)
220+
{
221+
rtcio_ll_wakeup_disable(lp_io_num);
222+
}
223+
203224
#ifdef __cplusplus
204225
}
205226
#endif

0 commit comments

Comments
 (0)