Open jonathanpallant opened 3 years ago
This code in timer.rs:
timer.rs
pub fn unlisten(&mut self, event: Event) { match event { Event::TimeOut => { // Enable update event interrupt self.tim.dier.write(|w| w.uie().clear_bit()); } } }
should be
pub fn unlisten(&mut self, event: Event) { match event { Event::TimeOut => { // Enable update event interrupt self.tim.dier.modify(|_r, w| w.uie().clear_bit()); } } }
The write call will disable all the interrupts, not just that specified one.
This code in
timer.rs
:should be
The write call will disable all the interrupts, not just that specified one.