mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'bugfix/rtc_gpio_deinit_for_deep_slp_v5.5' into 'release/v5.5'
refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func (v5.5) See merge request espressif/esp-idf!48295
This commit is contained in:
@@ -1919,6 +1919,7 @@ static void ext0_wakeup_prepare(void)
|
||||
#endif
|
||||
rtcio_hal_ext0_set_wakeup_pin(rtc_gpio_num, s_config.ext0_trigger_level);
|
||||
rtcio_hal_function_select(rtc_gpio_num, RTCIO_LL_FUNC_RTC);
|
||||
rtcio_hal_iomux_func_sel(rtc_gpio_num, RTCIO_LL_PIN_FUNC);
|
||||
rtcio_hal_input_enable(rtc_gpio_num);
|
||||
}
|
||||
|
||||
@@ -2055,6 +2056,8 @@ static void ext1_wakeup_prepare(void)
|
||||
#if SOC_RTCIO_INPUT_OUTPUT_SUPPORTED
|
||||
// Route pad to RTC
|
||||
rtcio_hal_function_select(rtc_pin, RTCIO_LL_FUNC_RTC);
|
||||
// Select LP GPIO function
|
||||
rtcio_hal_iomux_func_sel(rtc_pin, RTCIO_LL_PIN_FUNC);
|
||||
// set input enable in sleep mode
|
||||
rtcio_hal_input_enable(rtc_pin);
|
||||
#if SOC_PM_SUPPORT_RTC_PERIPH_PD
|
||||
|
||||
Reference in New Issue
Block a user