stm32f7xx-hal
stm32f7xx-hal copied to clipboard
Timer Interrupt clear is incorrect
This code in 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.