diff options
Diffstat (limited to 'src/dma.rs')
| -rw-r--r-- | src/dma.rs | 5 |
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; | |||
| 107 | use core::sync::atomic::{fence, AtomicBool, AtomicUsize, Ordering}; | 107 | use core::sync::atomic::{fence, AtomicBool, AtomicUsize, Ordering}; |
| 108 | use core::task::{Context, Poll}; | 108 | use core::task::{Context, Poll}; |
| 109 | 109 | ||
| 110 | use embassy_hal_internal::PeripheralType; | ||
| 111 | use embassy_sync::waitqueue::AtomicWaker; | ||
| 112 | |||
| 110 | use crate::clocks::Gate; | 113 | use crate::clocks::Gate; |
| 111 | use crate::pac; | 114 | use crate::pac; |
| 112 | use crate::pac::Interrupt; | 115 | use crate::pac::Interrupt; |
| 113 | use crate::peripherals::DMA0; | 116 | use crate::peripherals::DMA0; |
| 114 | use embassy_hal_internal::PeripheralType; | ||
| 115 | use 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. |
| 118 | static DMA_INITIALIZED: AtomicBool = AtomicBool::new(false); | 119 | static DMA_INITIALIZED: AtomicBool = AtomicBool::new(false); |
