Add embassy-cortex-m crate.
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
use crate::adc::{AdcPin, Instance};
|
||||
use crate::rcc::get_freqs;
|
||||
use crate::time::Hertz;
|
||||
use crate::Unborrow;
|
||||
use core::marker::PhantomData;
|
||||
use embassy::util::Unborrow;
|
||||
use embassy_hal_common::unborrow;
|
||||
use embedded_hal_02::blocking::delay::DelayUs;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::adc::{AdcPin, Instance};
|
||||
use crate::time::Hertz;
|
||||
use crate::Unborrow;
|
||||
use core::marker::PhantomData;
|
||||
use embassy::util::Unborrow;
|
||||
use embassy_hal_common::unborrow;
|
||||
use embedded_hal_02::blocking::delay::DelayUs;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use crate::adc::{AdcPin, Instance};
|
||||
use crate::Unborrow;
|
||||
use core::marker::PhantomData;
|
||||
use embassy::util::Unborrow;
|
||||
use embassy_hal_common::unborrow;
|
||||
use embedded_hal_02::blocking::delay::DelayUs;
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
use core::marker::PhantomData;
|
||||
|
||||
use crate::time::{Hertz, U32Ext};
|
||||
use crate::Unborrow;
|
||||
use atomic_polyfill::AtomicU8;
|
||||
use atomic_polyfill::Ordering;
|
||||
use embassy::util::Unborrow;
|
||||
use embedded_hal_02::blocking::delay::DelayUs;
|
||||
use pac::adc::vals::{Adcaldif, Boost, Difsel, Exten, Pcsel};
|
||||
use pac::adccommon::vals::Presc;
|
||||
|
Reference in New Issue
Block a user