diff --git a/examples/spi-dma.rs b/examples/spi-dma.rs index 1a0dfd03..a03ad703 100644 --- a/examples/spi-dma.rs +++ b/examples/spi-dma.rs @@ -84,7 +84,7 @@ fn main() -> ! { cortex_m::interrupt::free(|cs| *G_TRANSFER.borrow(cs).borrow_mut() = Some(transfer)); // Enable interrupt unsafe { - cortex_m::peripheral::NVIC::unmask(pac::Interrupt::DMA2_STREAM4); + cortex_m::peripheral::NVIC::unmask(pac::Interrupt::DMA1_STREAM4); } } @@ -94,7 +94,7 @@ fn main() -> ! { } #[interrupt] -fn DMA2_STREAM4() { +fn DMA1_STREAM4() { static mut TRANSFER: Option = None; let transfer = TRANSFER.get_or_insert_with(|| {