mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
refactor(rtcio): split rtcio/gpio switch with rtc iomux func sel func
This allows rtc_gpio_deinit to always switch the pad back to GPIO, regardless of lp io clock enabled or not, so that gpio_config can always switch the IO back to GPIO use after wakeup from deep sleep.
This commit is contained in:
@@ -62,6 +62,7 @@ static inline void ulp_lp_core_gpio_init(lp_io_num_t lp_io_num)
|
||||
_rtcio_ll_enable_io_clock(true);
|
||||
#endif
|
||||
rtcio_ll_function_select(lp_io_num, RTCIO_LL_FUNC_RTC);
|
||||
rtcio_ll_iomux_func_sel(lp_io_num, RTCIO_LL_PIN_FUNC);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user