move most interrupt methods to InterruptExt extension trait. Fixes #35
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
use core::cell::Cell;
|
||||
use core::convert::TryInto;
|
||||
use core::sync::atomic::{compiler_fence, AtomicU32, Ordering};
|
||||
|
||||
use embassy::time::{Clock, TICKS_PER_SECOND};
|
||||
use stm32f4xx_hal::bb;
|
||||
use stm32f4xx_hal::rcc::Clocks;
|
||||
|
||||
use embassy::interrupt::InterruptExt;
|
||||
use embassy::time::{Clock, TICKS_PER_SECOND};
|
||||
|
||||
use crate::interrupt;
|
||||
use crate::interrupt::{CriticalSection, Interrupt, Mutex};
|
||||
|
||||
|
@ -8,7 +8,7 @@ use core::future::Future;
|
||||
use core::ptr;
|
||||
use core::sync::atomic::{self, Ordering};
|
||||
|
||||
use embassy::interrupt::Interrupt;
|
||||
use embassy::interrupt::InterruptExt;
|
||||
use embassy::uart::{Error, Uart};
|
||||
use embassy::util::Signal;
|
||||
|
||||
@ -19,9 +19,7 @@ use crate::hal::rcc::Clocks;
|
||||
use crate::hal::serial::config::{Config as SerialConfig, DmaConfig as SerialDmaConfig};
|
||||
use crate::hal::serial::Pins;
|
||||
use crate::hal::serial::{Event as SerialEvent, Serial as HalSerial};
|
||||
|
||||
use crate::interrupt;
|
||||
|
||||
use crate::pac::{DMA2, USART1};
|
||||
|
||||
/// Interface to the Serial peripheral
|
||||
|
Reference in New Issue
Block a user