Skip to content

Commit

Permalink
Don't need to keep IO_MUX clocked
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 9, 2023
1 parent 3705a7b commit b536530
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions esp-hal-common/src/rtc_cntl/rtc/esp32s3_sleep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,11 @@ impl WakeSource for RtcioWakeupSource<'_, '_> {
return;
}

// don't power down RTC peripherals
// Don't power down RTC peripherals
// Since we only use RTCIO pins, we can keep deep sleep enabled.
sleep_config.set_rtc_peri_pd_en(false);
triggers.set_gpio(true);

// Since we only use RTCIO pins, we can keep deep sleep enabled.
let sens = unsafe { &*crate::peripherals::SENS::PTR };

// TODO: disable clock when not in use
sens.sar_peri_clk_gate_conf
.modify(|_, w| w.iomux_clk_en().set_bit());

for (pin, level) in pins.iter_mut() {
self.apply_pin(*pin, *level);
}
Expand Down

0 comments on commit b536530

Please sign in to comment.