Skip to content

Commit 3fc8ac9

Browse files
author
Connor Truono
committed
Disable 1Hz alarm bit in interrupt handler
1 parent 1fda1f9 commit 3fc8ac9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rtc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ fn RTC() {
343343
// Clear any pending RTC interrupt before waking tasks to avoid spurious retriggers
344344
interrupt::RTC.unpend();
345345

346+
// Disable the 1Hz timer alarm for deep power down
347+
r.ctrl().modify(|_r, w| w.alarmdpd_en().clear_bit());
348+
346349
// Clear the alarm interrupt flag by writing 1 to it
347350
r.ctrl().modify(|_r, w| w.alarm1hz().set_bit());
348351

0 commit comments

Comments
 (0)