aboutsummaryrefslogtreecommitdiff
path: root/src/dma.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dma.rs')
-rw-r--r--src/dma.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dma.rs b/src/dma.rs
index 66b610d93..7bfc95752 100644
--- a/src/dma.rs
+++ b/src/dma.rs
@@ -107,12 +107,13 @@ use core::ptr::NonNull;
107use core::sync::atomic::{fence, AtomicBool, AtomicUsize, Ordering}; 107use core::sync::atomic::{fence, AtomicBool, AtomicUsize, Ordering};
108use core::task::{Context, Poll}; 108use core::task::{Context, Poll};
109 109
110use embassy_hal_internal::PeripheralType;
111use embassy_sync::waitqueue::AtomicWaker;
112
110use crate::clocks::Gate; 113use crate::clocks::Gate;
111use crate::pac; 114use crate::pac;
112use crate::pac::Interrupt; 115use crate::pac::Interrupt;
113use crate::peripherals::DMA0; 116use crate::peripherals::DMA0;
114use embassy_hal_internal::PeripheralType;
115use embassy_sync::waitqueue::AtomicWaker;
116 117
117/// Static flag to track whether DMA has been initialized. 118/// Static flag to track whether DMA has been initialized.
118static DMA_INITIALIZED: AtomicBool = AtomicBool::new(false); 119static DMA_INITIALIZED: AtomicBool = AtomicBool::new(false);