diff options
| author | Mathias <[email protected]> | 2022-08-23 13:28:14 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2022-08-23 13:28:14 +0200 |
| commit | 594a64b3bfd5757f98ea4118fcaf62f59fc2157b (patch) | |
| tree | 933956ee25223c6c47f09a678b87f789f623acd1 | |
| parent | 36cf719a1899202caeae39a8a6d5443a4acbdcfe (diff) | |
Change to using embassy-sync
| -rw-r--r-- | embassy-rp/src/dma.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/dma.rs b/embassy-rp/src/dma.rs index 6423d1938..137e9a0c3 100644 --- a/embassy-rp/src/dma.rs +++ b/embassy-rp/src/dma.rs | |||
| @@ -4,7 +4,7 @@ use core::task::{Context, Poll}; | |||
| 4 | 4 | ||
| 5 | use embassy_cortex_m::interrupt::{Interrupt, InterruptExt}; | 5 | use embassy_cortex_m::interrupt::{Interrupt, InterruptExt}; |
| 6 | use embassy_hal_common::{impl_peripheral, into_ref, Peripheral, PeripheralRef}; | 6 | use embassy_hal_common::{impl_peripheral, into_ref, Peripheral, PeripheralRef}; |
| 7 | use embassy_util::waitqueue::AtomicWaker; | 7 | use embassy_sync::waitqueue::AtomicWaker; |
| 8 | use futures::Future; | 8 | use futures::Future; |
| 9 | use pac::dma::vals::DataSize; | 9 | use pac::dma::vals::DataSize; |
| 10 | 10 | ||
| @@ -36,7 +36,7 @@ unsafe fn DMA_IRQ_0() { | |||
| 36 | pub(crate) unsafe fn init() { | 36 | pub(crate) unsafe fn init() { |
| 37 | let irq = interrupt::DMA_IRQ_0::steal(); | 37 | let irq = interrupt::DMA_IRQ_0::steal(); |
| 38 | irq.disable(); | 38 | irq.disable(); |
| 39 | irq.set_priority(interrupt::Priority::P6); | 39 | irq.set_priority(interrupt::Priority::P3); |
| 40 | 40 | ||
| 41 | pac::DMA.inte0().write(|w| w.set_inte0(0xFFFF)); | 41 | pac::DMA.inte0().write(|w| w.set_inte0(0xFFFF)); |
| 42 | 42 | ||
