mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Merge pull request #1769 from embassy-rs/spim-disable-irq-on-drop
fix: ensure spi irq is disabled when dropped
This commit is contained in:
commit
c1da2c0219
@ -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.mosi.read().bits());
|
||||
|
||||
// Disable all events interrupts
|
||||
T::Interrupt::disable();
|
||||
|
||||
trace!("spim drop: done");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user