mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
Merge branch 'bugfix/resolve_esp32s2_rtc_gpio_reject_lightsleep_v4.2' into 'release/v4.2'
set clk_gate_en when enable rtc gpio wake up _backport_to_v4.2 See merge request espressif/esp-idf!11009
This commit is contained in:
@@ -275,6 +275,7 @@ static inline void rtcio_ll_force_unhold_all(void)
|
|||||||
*/
|
*/
|
||||||
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
|
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
|
||||||
{
|
{
|
||||||
|
SENS.sar_io_mux_conf.iomux_clk_gate_en = 1;
|
||||||
RTCIO.pin[rtcio_num].wakeup_enable = 0x1;
|
RTCIO.pin[rtcio_num].wakeup_enable = 0x1;
|
||||||
RTCIO.pin[rtcio_num].int_type = type;
|
RTCIO.pin[rtcio_num].int_type = type;
|
||||||
}
|
}
|
||||||
@@ -286,6 +287,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
|
|||||||
*/
|
*/
|
||||||
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
|
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
|
||||||
{
|
{
|
||||||
|
SENS.sar_io_mux_conf.iomux_clk_gate_en = 0;
|
||||||
RTCIO.pin[rtcio_num].wakeup_enable = 0;
|
RTCIO.pin[rtcio_num].wakeup_enable = 0;
|
||||||
RTCIO.pin[rtcio_num].int_type = RTCIO_WAKEUP_DISABLE;
|
RTCIO.pin[rtcio_num].int_type = RTCIO_WAKEUP_DISABLE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user