diff options
| -rw-r--r-- | embassy-rp/src/pio.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-rp/src/pio.rs b/embassy-rp/src/pio.rs index 32e9be74d..d05eef04b 100644 --- a/embassy-rp/src/pio.rs +++ b/embassy-rp/src/pio.rs | |||
| @@ -324,6 +324,9 @@ pub struct PioStateMachineInstance<'d, PIO: PioInstance, const SM: usize> { | |||
| 324 | 324 | ||
| 325 | impl<'d, PIO: PioInstance, const SM: usize> Drop for PioStateMachineInstance<'d, PIO, SM> { | 325 | impl<'d, PIO: PioInstance, const SM: usize> Drop for PioStateMachineInstance<'d, PIO, SM> { |
| 326 | fn drop(&mut self) { | 326 | fn drop(&mut self) { |
| 327 | unsafe { | ||
| 328 | PIO::PIO.ctrl().write_clear(|w| w.set_sm_enable(1 << SM)); | ||
| 329 | } | ||
| 327 | on_pio_drop::<PIO>(); | 330 | on_pio_drop::<PIO>(); |
| 328 | } | 331 | } |
| 329 | } | 332 | } |
