summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-10-12 19:15:48 +0000
committerGitHub <noreply@github.com>2022-10-12 19:15:48 +0000
commit1559374a19d33dbc8f20f71a924993ab82f27057 (patch)
treedf5bfbaf9815305d2c5be5c0deca8e51708aff8e
parent83fcc360fef662b1c9db121b9f9b73e0d5b8fde8 (diff)
parent5846b4ff7d6a3ab177abe1f1070b0b21d5a87f1d (diff)
downloadembassy-1559374a19d33dbc8f20f71a924993ab82f27057.zip
Merge #1010
1010: (embassy-rp): correctly enable RTC_IRQ when scheduling an RTC alarm r=Dirbaio a=MathiasKoch Co-authored-by: Mathias <mk@blackbird.online>
-rw-r--r--embassy-rp/src/rtc/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-rp/src/rtc/mod.rs b/embassy-rp/src/rtc/mod.rs
index 7f3bbbe7..e4b6f0b1 100644
--- a/embassy-rp/src/rtc/mod.rs
+++ b/embassy-rp/src/rtc/mod.rs
@@ -145,6 +145,8 @@ impl<'d, T: Instance> RealTimeClock<'d, T> {
filter.write_setup_1(w);
});
+ self.inner.regs().inte().modify(|w| w.set_rtc(true));
+
// Set the enable bit and check if it is set
self.inner.regs().irq_setup_0().modify(|w| w.set_match_ena(true));
while !self.inner.regs().irq_setup_0().read().match_active() {