mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Change to using embassy-sync
This commit is contained in:
parent
36cf719a18
commit
594a64b3bf
@ -4,7 +4,7 @@ use core::task::{Context, Poll};
|
|||||||
|
|
||||||
use embassy_cortex_m::interrupt::{Interrupt, InterruptExt};
|
use embassy_cortex_m::interrupt::{Interrupt, InterruptExt};
|
||||||
use embassy_hal_common::{impl_peripheral, into_ref, Peripheral, PeripheralRef};
|
use embassy_hal_common::{impl_peripheral, into_ref, Peripheral, PeripheralRef};
|
||||||
use embassy_util::waitqueue::AtomicWaker;
|
use embassy_sync::waitqueue::AtomicWaker;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
use pac::dma::vals::DataSize;
|
use pac::dma::vals::DataSize;
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ unsafe fn DMA_IRQ_0() {
|
|||||||
pub(crate) unsafe fn init() {
|
pub(crate) unsafe fn init() {
|
||||||
let irq = interrupt::DMA_IRQ_0::steal();
|
let irq = interrupt::DMA_IRQ_0::steal();
|
||||||
irq.disable();
|
irq.disable();
|
||||||
irq.set_priority(interrupt::Priority::P6);
|
irq.set_priority(interrupt::Priority::P3);
|
||||||
|
|
||||||
pac::DMA.inte0().write(|w| w.set_inte0(0xFFFF));
|
pac::DMA.inte0().write(|w| w.set_inte0(0xFFFF));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user