Correctly enable RTC_IRQ when scheduling an RTC alarm
This commit is contained in:
parent
83fcc360fe
commit
5846b4ff7d
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue