We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7240d commit 3ae2e0eCopy full SHA for 3ae2e0e
examples/spi-dma.rs
@@ -84,7 +84,7 @@ fn main() -> ! {
84
cortex_m::interrupt::free(|cs| *G_TRANSFER.borrow(cs).borrow_mut() = Some(transfer));
85
// Enable interrupt
86
unsafe {
87
- cortex_m::peripheral::NVIC::unmask(pac::Interrupt::DMA2_STREAM4);
+ cortex_m::peripheral::NVIC::unmask(pac::Interrupt::DMA1_STREAM4);
88
}
89
90
@@ -94,7 +94,7 @@ fn main() -> ! {
94
95
96
#[interrupt]
97
-fn DMA2_STREAM4() {
+fn DMA1_STREAM4() {
98
static mut TRANSFER: Option<SpiDma> = None;
99
100
let transfer = TRANSFER.get_or_insert_with(|| {
0 commit comments