fix: ensure spi irq is disabled when dropped
This commit is contained in:
parent
5d5cd23715
commit
7d8e3951ba
1 changed files with 3 additions and 0 deletions
|
@ -378,6 +378,9 @@ impl<'d, T: Instance> Drop for Spim<'d, T> {
|
||||||
gpio::deconfigure_pin(r.psel.miso.read().bits());
|
gpio::deconfigure_pin(r.psel.miso.read().bits());
|
||||||
gpio::deconfigure_pin(r.psel.mosi.read().bits());
|
gpio::deconfigure_pin(r.psel.mosi.read().bits());
|
||||||
|
|
||||||
|
// Disable all events interrupts
|
||||||
|
T::Interrupt::disable();
|
||||||
|
|
||||||
trace!("spim drop: done");
|
trace!("spim drop: done");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue