diff options
66 files changed, 59 insertions, 59 deletions
diff --git a/Cargo.example.toml b/Cargo.example.toml index 3362d0bc0..f072c2f96 100644 --- a/Cargo.example.toml +++ b/Cargo.example.toml | |||
| @@ -21,7 +21,7 @@ members = [ | |||
| 21 | "embassy", | 21 | "embassy", |
| 22 | "embassy-traits", | 22 | "embassy-traits", |
| 23 | "embassy-macros", | 23 | "embassy-macros", |
| 24 | "embassy-extras", | 24 | "embassy-hal-common", |
| 25 | "embassy-net", | 25 | "embassy-net", |
| 26 | 26 | ||
| 27 | # Uncomment ONLY ONE of the groups below. | 27 | # Uncomment ONLY ONE of the groups below. |
diff --git a/embassy-extras/Cargo.toml b/embassy-hal-common/Cargo.toml index 5d07901a9..4db536de4 100644 --- a/embassy-extras/Cargo.toml +++ b/embassy-hal-common/Cargo.toml | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-extras" | 2 | name = "embassy-hal-common" |
| 3 | version = "0.1.0" | 3 | version = "0.1.0" |
| 4 | authors = ["Dario Nieuwenhuis <[email protected]>"] | 4 | authors = ["Dario Nieuwenhuis <[email protected]>"] |
| 5 | edition = "2018" | 5 | edition = "2018" |
diff --git a/embassy-extras/src/fmt.rs b/embassy-hal-common/src/fmt.rs index 066970813..066970813 100644 --- a/embassy-extras/src/fmt.rs +++ b/embassy-hal-common/src/fmt.rs | |||
diff --git a/embassy-extras/src/interrupt.rs b/embassy-hal-common/src/interrupt.rs index 80b2cad5d..80b2cad5d 100644 --- a/embassy-extras/src/interrupt.rs +++ b/embassy-hal-common/src/interrupt.rs | |||
diff --git a/embassy-extras/src/lib.rs b/embassy-hal-common/src/lib.rs index 7036986ef..7036986ef 100644 --- a/embassy-extras/src/lib.rs +++ b/embassy-hal-common/src/lib.rs | |||
diff --git a/embassy-extras/src/macros.rs b/embassy-hal-common/src/macros.rs index 771db40f6..771db40f6 100644 --- a/embassy-extras/src/macros.rs +++ b/embassy-hal-common/src/macros.rs | |||
diff --git a/embassy-extras/src/peripheral.rs b/embassy-hal-common/src/peripheral.rs index 92512a0f6..92512a0f6 100644 --- a/embassy-extras/src/peripheral.rs +++ b/embassy-hal-common/src/peripheral.rs | |||
diff --git a/embassy-extras/src/peripheral_shared.rs b/embassy-hal-common/src/peripheral_shared.rs index 71d746341..71d746341 100644 --- a/embassy-extras/src/peripheral_shared.rs +++ b/embassy-hal-common/src/peripheral_shared.rs | |||
diff --git a/embassy-extras/src/ring_buffer.rs b/embassy-hal-common/src/ring_buffer.rs index 18795787f..18795787f 100644 --- a/embassy-extras/src/ring_buffer.rs +++ b/embassy-hal-common/src/ring_buffer.rs | |||
diff --git a/embassy-extras/src/usb/cdc_acm.rs b/embassy-hal-common/src/usb/cdc_acm.rs index 5a85b3846..5a85b3846 100644 --- a/embassy-extras/src/usb/cdc_acm.rs +++ b/embassy-hal-common/src/usb/cdc_acm.rs | |||
diff --git a/embassy-extras/src/usb/mod.rs b/embassy-hal-common/src/usb/mod.rs index 1fb501d7f..1fb501d7f 100644 --- a/embassy-extras/src/usb/mod.rs +++ b/embassy-hal-common/src/usb/mod.rs | |||
diff --git a/embassy-extras/src/usb/usb_serial.rs b/embassy-hal-common/src/usb/usb_serial.rs index a229b2000..a229b2000 100644 --- a/embassy-extras/src/usb/usb_serial.rs +++ b/embassy-hal-common/src/usb/usb_serial.rs | |||
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 1fdc83fb3..c4054cd18 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -30,7 +30,7 @@ nrf52840 = ["nrf52840-pac"] | |||
| 30 | [dependencies] | 30 | [dependencies] |
| 31 | embassy = { version = "0.1.0", path = "../embassy", features = ["time-tick-32768hz"] } | 31 | embassy = { version = "0.1.0", path = "../embassy", features = ["time-tick-32768hz"] } |
| 32 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]} | 32 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]} |
| 33 | embassy-extras = {version = "0.1.0", path = "../embassy-extras" } | 33 | embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" } |
| 34 | 34 | ||
| 35 | defmt = { version = "0.2.0", optional = true } | 35 | defmt = { version = "0.2.0", optional = true } |
| 36 | log = { version = "0.4.11", optional = true } | 36 | log = { version = "0.4.11", optional = true } |
diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index 9be4d4d54..d6120bd0c 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs | |||
| @@ -7,9 +7,9 @@ use core::task::{Context, Poll}; | |||
| 7 | use embassy::interrupt::InterruptExt; | 7 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::io::{AsyncBufRead, AsyncWrite, Result}; | 8 | use embassy::io::{AsyncBufRead, AsyncWrite, Result}; |
| 9 | use embassy::util::{Unborrow, WakerRegistration}; | 9 | use embassy::util::{Unborrow, WakerRegistration}; |
| 10 | use embassy_extras::peripheral::{PeripheralMutex, PeripheralState}; | 10 | use embassy_hal_common::peripheral::{PeripheralMutex, PeripheralState}; |
| 11 | use embassy_extras::ring_buffer::RingBuffer; | 11 | use embassy_hal_common::ring_buffer::RingBuffer; |
| 12 | use embassy_extras::{low_power_wait_until, unborrow}; | 12 | use embassy_hal_common::{low_power_wait_until, unborrow}; |
| 13 | 13 | ||
| 14 | use crate::gpio::sealed::Pin as _; | 14 | use crate::gpio::sealed::Pin as _; |
| 15 | use crate::gpio::{OptionalPin as GpioOptionalPin, Pin as GpioPin}; | 15 | use crate::gpio::{OptionalPin as GpioOptionalPin, Pin as GpioPin}; |
diff --git a/embassy-nrf/src/chips/nrf52805.rs b/embassy-nrf/src/chips/nrf52805.rs index 2b02c1afe..2034c67e0 100644 --- a/embassy-nrf/src/chips/nrf52805.rs +++ b/embassy-nrf/src/chips/nrf52805.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52805_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52810.rs b/embassy-nrf/src/chips/nrf52810.rs index 4c93d5046..27e1f3d20 100644 --- a/embassy-nrf/src/chips/nrf52810.rs +++ b/embassy-nrf/src/chips/nrf52810.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52810_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 10) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 10) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52811.rs b/embassy-nrf/src/chips/nrf52811.rs index f840214fa..0d0c5ac75 100644 --- a/embassy-nrf/src/chips/nrf52811.rs +++ b/embassy-nrf/src/chips/nrf52811.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52811_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 14) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 256; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52820.rs b/embassy-nrf/src/chips/nrf52820.rs index 180861f71..9b5bdef16 100644 --- a/embassy-nrf/src/chips/nrf52820.rs +++ b/embassy-nrf/src/chips/nrf52820.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52820_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 15) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 15) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52832.rs b/embassy-nrf/src/chips/nrf52832.rs index 1c38a7751..e79dba524 100644 --- a/embassy-nrf/src/chips/nrf52832.rs +++ b/embassy-nrf/src/chips/nrf52832.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52832_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 8) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 8) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 255; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 255; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52833.rs b/embassy-nrf/src/chips/nrf52833.rs index bcb0fffc0..7c62a7fdc 100644 --- a/embassy-nrf/src/chips/nrf52833.rs +++ b/embassy-nrf/src/chips/nrf52833.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52833_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/chips/nrf52840.rs b/embassy-nrf/src/chips/nrf52840.rs index ee8b5a89c..00f6d49dd 100644 --- a/embassy-nrf/src/chips/nrf52840.rs +++ b/embassy-nrf/src/chips/nrf52840.rs | |||
| @@ -3,7 +3,7 @@ pub use nrf52840_pac as pac; | |||
| 3 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; | 3 | pub const EASY_DMA_SIZE: usize = (1 << 16) - 1; |
| 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; | 4 | pub const FORCE_COPY_BUFFER_SIZE: usize = 512; |
| 5 | 5 | ||
| 6 | embassy_extras::peripherals! { | 6 | embassy_hal_common::peripherals! { |
| 7 | // RTC | 7 | // RTC |
| 8 | RTC0, | 8 | RTC0, |
| 9 | RTC1, | 9 | RTC1, |
diff --git a/embassy-nrf/src/gpio.rs b/embassy-nrf/src/gpio.rs index b02e77874..e30df7e7e 100644 --- a/embassy-nrf/src/gpio.rs +++ b/embassy-nrf/src/gpio.rs | |||
| @@ -5,7 +5,7 @@ use core::hint::unreachable_unchecked; | |||
| 5 | use core::marker::PhantomData; | 5 | use core::marker::PhantomData; |
| 6 | 6 | ||
| 7 | use embassy::util::Unborrow; | 7 | use embassy::util::Unborrow; |
| 8 | use embassy_extras::{unborrow, unsafe_impl_unborrow}; | 8 | use embassy_hal_common::{unborrow, unsafe_impl_unborrow}; |
| 9 | use embedded_hal::digital::v2::{InputPin, OutputPin, StatefulOutputPin}; | 9 | use embedded_hal::digital::v2::{InputPin, OutputPin, StatefulOutputPin}; |
| 10 | use gpio::pin_cnf::DRIVE_A; | 10 | use gpio::pin_cnf::DRIVE_A; |
| 11 | 11 | ||
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 54d3dd012..847b2fbf3 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -5,7 +5,7 @@ use core::task::{Context, Poll}; | |||
| 5 | use embassy::interrupt::{Interrupt, InterruptExt}; | 5 | use embassy::interrupt::{Interrupt, InterruptExt}; |
| 6 | use embassy::traits::gpio::{WaitForAnyEdge, WaitForHigh, WaitForLow}; | 6 | use embassy::traits::gpio::{WaitForAnyEdge, WaitForHigh, WaitForLow}; |
| 7 | use embassy::util::AtomicWaker; | 7 | use embassy::util::AtomicWaker; |
| 8 | use embassy_extras::unsafe_impl_unborrow; | 8 | use embassy_hal_common::unsafe_impl_unborrow; |
| 9 | use embedded_hal::digital::v2::{InputPin, StatefulOutputPin}; | 9 | use embedded_hal::digital::v2::{InputPin, StatefulOutputPin}; |
| 10 | use futures::future::poll_fn; | 10 | use futures::future::poll_fn; |
| 11 | 11 | ||
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 35815f792..1275a64f3 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -76,7 +76,7 @@ pub mod interrupt { | |||
| 76 | pub use crate::chip::irqs::*; | 76 | pub use crate::chip::irqs::*; |
| 77 | pub use cortex_m::interrupt::{CriticalSection, Mutex}; | 77 | pub use cortex_m::interrupt::{CriticalSection, Mutex}; |
| 78 | pub use embassy::interrupt::{declare, take, Interrupt}; | 78 | pub use embassy::interrupt::{declare, take, Interrupt}; |
| 79 | pub use embassy_extras::interrupt::Priority3 as Priority; | 79 | pub use embassy_hal_common::interrupt::Priority3 as Priority; |
| 80 | } | 80 | } |
| 81 | pub use embassy_macros::interrupt; | 81 | pub use embassy_macros::interrupt; |
| 82 | 82 | ||
diff --git a/embassy-nrf/src/ppi.rs b/embassy-nrf/src/ppi.rs index c91a69c10..61028c03a 100644 --- a/embassy-nrf/src/ppi.rs +++ b/embassy-nrf/src/ppi.rs | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | use core::marker::PhantomData; | 12 | use core::marker::PhantomData; |
| 13 | use core::ptr::NonNull; | 13 | use core::ptr::NonNull; |
| 14 | use embassy::util::Unborrow; | 14 | use embassy::util::Unborrow; |
| 15 | use embassy_extras::{unborrow, unsafe_impl_unborrow}; | 15 | use embassy_hal_common::{unborrow, unsafe_impl_unborrow}; |
| 16 | 16 | ||
| 17 | use crate::{pac, peripherals}; | 17 | use crate::{pac, peripherals}; |
| 18 | 18 | ||
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 07509aef9..5e996e882 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs | |||
| @@ -4,7 +4,7 @@ use core::cell::UnsafeCell; | |||
| 4 | use core::marker::PhantomData; | 4 | use core::marker::PhantomData; |
| 5 | use core::sync::atomic::{compiler_fence, Ordering}; | 5 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 6 | use embassy::util::Unborrow; | 6 | use embassy::util::Unborrow; |
| 7 | use embassy_extras::unborrow; | 7 | use embassy_hal_common::unborrow; |
| 8 | 8 | ||
| 9 | use crate::gpio::sealed::Pin as _; | 9 | use crate::gpio::sealed::Pin as _; |
| 10 | use crate::gpio::OptionalPin as GpioOptionalPin; | 10 | use crate::gpio::OptionalPin as GpioOptionalPin; |
diff --git a/embassy-nrf/src/qspi.rs b/embassy-nrf/src/qspi.rs index 42bf8f419..28becfd56 100644 --- a/embassy-nrf/src/qspi.rs +++ b/embassy-nrf/src/qspi.rs | |||
| @@ -7,7 +7,7 @@ use core::task::Poll; | |||
| 7 | use embassy::interrupt::{Interrupt, InterruptExt}; | 7 | use embassy::interrupt::{Interrupt, InterruptExt}; |
| 8 | use embassy::traits::flash::{Error, Flash}; | 8 | use embassy::traits::flash::{Error, Flash}; |
| 9 | use embassy::util::{AtomicWaker, DropBomb, Unborrow}; | 9 | use embassy::util::{AtomicWaker, DropBomb, Unborrow}; |
| 10 | use embassy_extras::unborrow; | 10 | use embassy_hal_common::unborrow; |
| 11 | use futures::future::poll_fn; | 11 | use futures::future::poll_fn; |
| 12 | 12 | ||
| 13 | use crate::gpio::sealed::Pin as _; | 13 | use crate::gpio::sealed::Pin as _; |
diff --git a/embassy-nrf/src/rng.rs b/embassy-nrf/src/rng.rs index a444c9b3f..6cdcccf3b 100644 --- a/embassy-nrf/src/rng.rs +++ b/embassy-nrf/src/rng.rs | |||
| @@ -11,7 +11,7 @@ use embassy::traits; | |||
| 11 | use embassy::util::AtomicWaker; | 11 | use embassy::util::AtomicWaker; |
| 12 | use embassy::util::OnDrop; | 12 | use embassy::util::OnDrop; |
| 13 | use embassy::util::Unborrow; | 13 | use embassy::util::Unborrow; |
| 14 | use embassy_extras::unborrow; | 14 | use embassy_hal_common::unborrow; |
| 15 | use futures::future::poll_fn; | 15 | use futures::future::poll_fn; |
| 16 | use rand_core::RngCore; | 16 | use rand_core::RngCore; |
| 17 | 17 | ||
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index edb8aa21f..7bc38f1d3 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs | |||
| @@ -3,7 +3,7 @@ use core::marker::PhantomData; | |||
| 3 | use core::sync::atomic::{compiler_fence, Ordering}; | 3 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 4 | use core::task::Poll; | 4 | use core::task::Poll; |
| 5 | use embassy::util::{wake_on_interrupt, Unborrow}; | 5 | use embassy::util::{wake_on_interrupt, Unborrow}; |
| 6 | use embassy_extras::unborrow; | 6 | use embassy_hal_common::unborrow; |
| 7 | use futures::future::poll_fn; | 7 | use futures::future::poll_fn; |
| 8 | 8 | ||
| 9 | use crate::interrupt; | 9 | use crate::interrupt; |
diff --git a/embassy-nrf/src/spim.rs b/embassy-nrf/src/spim.rs index 221c52051..9a7fb4f67 100644 --- a/embassy-nrf/src/spim.rs +++ b/embassy-nrf/src/spim.rs | |||
| @@ -7,7 +7,7 @@ use core::task::Poll; | |||
| 7 | use embassy::interrupt::InterruptExt; | 7 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::traits; | 8 | use embassy::traits; |
| 9 | use embassy::util::{AtomicWaker, Unborrow}; | 9 | use embassy::util::{AtomicWaker, Unborrow}; |
| 10 | use embassy_extras::unborrow; | 10 | use embassy_hal_common::unborrow; |
| 11 | use futures::future::poll_fn; | 11 | use futures::future::poll_fn; |
| 12 | use traits::spi::{FullDuplex, Read, Spi, Write}; | 12 | use traits::spi::{FullDuplex, Read, Spi, Write}; |
| 13 | 13 | ||
diff --git a/embassy-nrf/src/timer.rs b/embassy-nrf/src/timer.rs index 7ff35c320..eab9a1416 100644 --- a/embassy-nrf/src/timer.rs +++ b/embassy-nrf/src/timer.rs | |||
| @@ -7,7 +7,7 @@ use embassy::interrupt::Interrupt; | |||
| 7 | use embassy::interrupt::InterruptExt; | 7 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::util::OnDrop; | 8 | use embassy::util::OnDrop; |
| 9 | use embassy::util::Unborrow; | 9 | use embassy::util::Unborrow; |
| 10 | use embassy_extras::unborrow; | 10 | use embassy_hal_common::unborrow; |
| 11 | use futures::future::poll_fn; | 11 | use futures::future::poll_fn; |
| 12 | 12 | ||
| 13 | use crate::pac; | 13 | use crate::pac; |
diff --git a/embassy-nrf/src/twim.rs b/embassy-nrf/src/twim.rs index b533c69c4..ac263bad7 100644 --- a/embassy-nrf/src/twim.rs +++ b/embassy-nrf/src/twim.rs | |||
| @@ -13,7 +13,7 @@ use core::task::Poll; | |||
| 13 | use embassy::interrupt::{Interrupt, InterruptExt}; | 13 | use embassy::interrupt::{Interrupt, InterruptExt}; |
| 14 | use embassy::traits; | 14 | use embassy::traits; |
| 15 | use embassy::util::{AtomicWaker, Unborrow}; | 15 | use embassy::util::{AtomicWaker, Unborrow}; |
| 16 | use embassy_extras::unborrow; | 16 | use embassy_hal_common::unborrow; |
| 17 | use futures::future::poll_fn; | 17 | use futures::future::poll_fn; |
| 18 | use traits::i2c::I2c; | 18 | use traits::i2c::I2c; |
| 19 | 19 | ||
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 985854a5f..b2b298661 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs | |||
| @@ -9,7 +9,7 @@ use core::task::Poll; | |||
| 9 | use embassy::interrupt::InterruptExt; | 9 | use embassy::interrupt::InterruptExt; |
| 10 | use embassy::traits::uart::{Error, Read, ReadUntilIdle, Write}; | 10 | use embassy::traits::uart::{Error, Read, ReadUntilIdle, Write}; |
| 11 | use embassy::util::{AtomicWaker, OnDrop, Unborrow}; | 11 | use embassy::util::{AtomicWaker, OnDrop, Unborrow}; |
| 12 | use embassy_extras::unborrow; | 12 | use embassy_hal_common::unborrow; |
| 13 | use futures::future::poll_fn; | 13 | use futures::future::poll_fn; |
| 14 | 14 | ||
| 15 | use crate::chip::EASY_DMA_SIZE; | 15 | use crate::chip::EASY_DMA_SIZE; |
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index c61b8c997..e2da226dd 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [ ] | |||
| 20 | 20 | ||
| 21 | [dependencies] | 21 | [dependencies] |
| 22 | embassy = { version = "0.1.0", path = "../embassy", features = [ "time-tick-1mhz" ] } | 22 | embassy = { version = "0.1.0", path = "../embassy", features = [ "time-tick-1mhz" ] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" } |
| 24 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["rp"]} | 24 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["rp"]} |
| 25 | 25 | ||
| 26 | defmt = { version = "0.2.0", optional = true } | 26 | defmt = { version = "0.2.0", optional = true } |
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 5edf47f52..4ea78016a 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -6,7 +6,7 @@ use crate::pac::SIO; | |||
| 6 | use crate::peripherals; | 6 | use crate::peripherals; |
| 7 | 7 | ||
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::{unborrow, unsafe_impl_unborrow}; | 9 | use embassy_hal_common::{unborrow, unsafe_impl_unborrow}; |
| 10 | use embedded_hal::digital::v2 as digital; | 10 | use embedded_hal::digital::v2 as digital; |
| 11 | 11 | ||
| 12 | /// Represents a digital input or output level. | 12 | /// Represents a digital input or output level. |
diff --git a/embassy-rp/src/interrupt.rs b/embassy-rp/src/interrupt.rs index a4e5959ab..109afcbc4 100644 --- a/embassy-rp/src/interrupt.rs +++ b/embassy-rp/src/interrupt.rs | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | // Re-exports | 6 | // Re-exports |
| 7 | pub use embassy::interrupt::{declare, take, Interrupt}; | 7 | pub use embassy::interrupt::{declare, take, Interrupt}; |
| 8 | pub use embassy_extras::interrupt::Priority3 as Priority; | 8 | pub use embassy_hal_common::interrupt::Priority3 as Priority; |
| 9 | 9 | ||
| 10 | mod irqs { | 10 | mod irqs { |
| 11 | use super::*; | 11 | use super::*; |
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index c53d2e58d..10bf7158f 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs | |||
| @@ -25,7 +25,7 @@ pub mod uart; | |||
| 25 | mod clocks; | 25 | mod clocks; |
| 26 | mod reset; | 26 | mod reset; |
| 27 | 27 | ||
| 28 | embassy_extras::peripherals! { | 28 | embassy_hal_common::peripherals! { |
| 29 | PIN_0, | 29 | PIN_0, |
| 30 | PIN_1, | 30 | PIN_1, |
| 31 | PIN_2, | 31 | PIN_2, |
diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index 959ad9b0f..906fa23e9 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::marker::PhantomData; | 1 | use core::marker::PhantomData; |
| 2 | 2 | ||
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use embedded_hal::blocking::spi as eh; | 5 | use embedded_hal::blocking::spi as eh; |
| 6 | use embedded_hal::spi as ehnb; | 6 | use embedded_hal::spi as ehnb; |
| 7 | 7 | ||
diff --git a/embassy-rp/src/uart.rs b/embassy-rp/src/uart.rs index 6d354e7c4..3f5c49079 100644 --- a/embassy-rp/src/uart.rs +++ b/embassy-rp/src/uart.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::marker::PhantomData; | 1 | use core::marker::PhantomData; |
| 2 | 2 | ||
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use gpio::Pin; | 5 | use gpio::Pin; |
| 6 | 6 | ||
| 7 | use crate::{gpio, pac, peripherals}; | 7 | use crate::{gpio, pac, peripherals}; |
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 4e4d7ff82..d94c9d523 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml | |||
| @@ -8,7 +8,7 @@ resolver = "2" | |||
| 8 | [dependencies] | 8 | [dependencies] |
| 9 | embassy = { version = "0.1.0", path = "../embassy", features = ["time-tick-32768hz"] } | 9 | embassy = { version = "0.1.0", path = "../embassy", features = ["time-tick-32768hz"] } |
| 10 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] } | 10 | embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["stm32"] } |
| 11 | embassy-extras = {version = "0.1.0", path = "../embassy-extras" } | 11 | embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" } |
| 12 | embassy-traits = {version = "0.1.0", path = "../embassy-traits" } | 12 | embassy-traits = {version = "0.1.0", path = "../embassy-traits" } |
| 13 | embassy-net = { version = "0.1.0", path = "../embassy-net", default-features = false, optional = true } | 13 | embassy-net = { version = "0.1.0", path = "../embassy-net", default-features = false, optional = true } |
| 14 | 14 | ||
diff --git a/embassy-stm32/gen.py b/embassy-stm32/gen.py index 01c778716..e589f2f06 100644 --- a/embassy-stm32/gen.py +++ b/embassy-stm32/gen.py | |||
| @@ -85,4 +85,4 @@ with open(output_file, 'w') as f: | |||
| 85 | for (channel_id, defn) in core['dma_channels'].items(): | 85 | for (channel_id, defn) in core['dma_channels'].items(): |
| 86 | singletons.append( channel_id ) | 86 | singletons.append( channel_id ) |
| 87 | 87 | ||
| 88 | f.write(f"embassy_extras::peripherals!({','.join(singletons)});") | 88 | f.write(f"embassy_hal_common::peripherals!({','.join(singletons)});") |
diff --git a/embassy-stm32/src/adc/v3.rs b/embassy-stm32/src/adc/v3.rs index 7480c4a36..db6a4e512 100644 --- a/embassy-stm32/src/adc/v3.rs +++ b/embassy-stm32/src/adc/v3.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use crate::adc::{AdcPin, Instance}; | 1 | use crate::adc::{AdcPin, Instance}; |
| 2 | use core::marker::PhantomData; | 2 | use core::marker::PhantomData; |
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use embedded_hal::blocking::delay::DelayUs; | 5 | use embedded_hal::blocking::delay::DelayUs; |
| 6 | 6 | ||
| 7 | pub const VDDA_CALIB_MV: u32 = 3000; | 7 | pub const VDDA_CALIB_MV: u32 = 3000; |
diff --git a/embassy-stm32/src/dac/v2.rs b/embassy-stm32/src/dac/v2.rs index 25a87db06..f46145b8d 100644 --- a/embassy-stm32/src/dac/v2.rs +++ b/embassy-stm32/src/dac/v2.rs | |||
| @@ -3,7 +3,7 @@ use crate::gpio::AnyPin; | |||
| 3 | use crate::pac::dac; | 3 | use crate::pac::dac; |
| 4 | use core::marker::PhantomData; | 4 | use core::marker::PhantomData; |
| 5 | use embassy::util::Unborrow; | 5 | use embassy::util::Unborrow; |
| 6 | use embassy_extras::unborrow; | 6 | use embassy_hal_common::unborrow; |
| 7 | 7 | ||
| 8 | #[derive(Debug)] | 8 | #[derive(Debug)] |
| 9 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 9 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
diff --git a/embassy-stm32/src/eth/v2/mod.rs b/embassy-stm32/src/eth/v2/mod.rs index 129d2d02c..3f72fb35e 100644 --- a/embassy-stm32/src/eth/v2/mod.rs +++ b/embassy-stm32/src/eth/v2/mod.rs | |||
| @@ -4,8 +4,8 @@ use core::sync::atomic::{fence, Ordering}; | |||
| 4 | use core::task::Waker; | 4 | use core::task::Waker; |
| 5 | 5 | ||
| 6 | use embassy::util::{AtomicWaker, Unborrow}; | 6 | use embassy::util::{AtomicWaker, Unborrow}; |
| 7 | use embassy_extras::peripheral::{PeripheralMutex, PeripheralState}; | 7 | use embassy_hal_common::peripheral::{PeripheralMutex, PeripheralState}; |
| 8 | use embassy_extras::unborrow; | 8 | use embassy_hal_common::unborrow; |
| 9 | use embassy_net::{Device, DeviceCapabilities, LinkState, PacketBuf, MTU}; | 9 | use embassy_net::{Device, DeviceCapabilities, LinkState, PacketBuf, MTU}; |
| 10 | 10 | ||
| 11 | use crate::gpio::sealed::Pin as __GpioPin; | 11 | use crate::gpio::sealed::Pin as __GpioPin; |
diff --git a/embassy-stm32/src/exti/mod.rs b/embassy-stm32/src/exti/mod.rs index 217c8173b..bb9082f2e 100644 --- a/embassy-stm32/src/exti/mod.rs +++ b/embassy-stm32/src/exti/mod.rs | |||
| @@ -42,7 +42,7 @@ mod _version; | |||
| 42 | pub use _version::*; | 42 | pub use _version::*; |
| 43 | 43 | ||
| 44 | use crate::peripherals; | 44 | use crate::peripherals; |
| 45 | use embassy_extras::unsafe_impl_unborrow; | 45 | use embassy_hal_common::unsafe_impl_unborrow; |
| 46 | 46 | ||
| 47 | pub(crate) mod sealed { | 47 | pub(crate) mod sealed { |
| 48 | pub trait Channel {} | 48 | pub trait Channel {} |
diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 5145bd689..7812709ce 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | use core::convert::Infallible; | 2 | use core::convert::Infallible; |
| 3 | use core::marker::PhantomData; | 3 | use core::marker::PhantomData; |
| 4 | use embassy::util::Unborrow; | 4 | use embassy::util::Unborrow; |
| 5 | use embassy_extras::{unborrow, unsafe_impl_unborrow}; | 5 | use embassy_hal_common::{unborrow, unsafe_impl_unborrow}; |
| 6 | use embedded_hal::digital::v2::{toggleable, InputPin, OutputPin, StatefulOutputPin}; | 6 | use embedded_hal::digital::v2::{toggleable, InputPin, OutputPin, StatefulOutputPin}; |
| 7 | 7 | ||
| 8 | use crate::pac; | 8 | use crate::pac; |
diff --git a/embassy-stm32/src/i2c/v1.rs b/embassy-stm32/src/i2c/v1.rs index 8573f01f4..578536855 100644 --- a/embassy-stm32/src/i2c/v1.rs +++ b/embassy-stm32/src/i2c/v1.rs | |||
| @@ -2,7 +2,7 @@ use crate::i2c::{Error, Instance, SclPin, SdaPin}; | |||
| 2 | use crate::time::Hertz; | 2 | use crate::time::Hertz; |
| 3 | use core::marker::PhantomData; | 3 | use core::marker::PhantomData; |
| 4 | use embassy::util::Unborrow; | 4 | use embassy::util::Unborrow; |
| 5 | use embassy_extras::unborrow; | 5 | use embassy_hal_common::unborrow; |
| 6 | use embedded_hal::blocking::i2c::Read; | 6 | use embedded_hal::blocking::i2c::Read; |
| 7 | use embedded_hal::blocking::i2c::Write; | 7 | use embedded_hal::blocking::i2c::Write; |
| 8 | use embedded_hal::blocking::i2c::WriteRead; | 8 | use embedded_hal::blocking::i2c::WriteRead; |
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 3179211ec..9f7206107 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::cmp; | 1 | use core::cmp; |
| 2 | use core::marker::PhantomData; | 2 | use core::marker::PhantomData; |
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use embedded_hal::blocking::i2c::Read; | 5 | use embedded_hal::blocking::i2c::Read; |
| 6 | use embedded_hal::blocking::i2c::Write; | 6 | use embedded_hal::blocking::i2c::Write; |
| 7 | use embedded_hal::blocking::i2c::WriteRead; | 7 | use embedded_hal::blocking::i2c::WriteRead; |
diff --git a/embassy-stm32/src/interrupt.rs b/embassy-stm32/src/interrupt.rs index a12cdf235..27e441644 100644 --- a/embassy-stm32/src/interrupt.rs +++ b/embassy-stm32/src/interrupt.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | pub use bare_metal::Mutex; | 1 | pub use bare_metal::Mutex; |
| 2 | pub use critical_section::CriticalSection; | 2 | pub use critical_section::CriticalSection; |
| 3 | pub use embassy::interrupt::{take, Interrupt}; | 3 | pub use embassy::interrupt::{take, Interrupt}; |
| 4 | pub use embassy_extras::interrupt::Priority4 as Priority; | 4 | pub use embassy_hal_common::interrupt::Priority4 as Priority; |
| 5 | 5 | ||
| 6 | use crate::pac::Interrupt as InterruptEnum; | 6 | use crate::pac::Interrupt as InterruptEnum; |
| 7 | use embassy::interrupt::declare; | 7 | use embassy::interrupt::declare; |
diff --git a/embassy-stm32/src/rcc/f4/mod.rs b/embassy-stm32/src/rcc/f4/mod.rs index 6000192b9..d47510da7 100644 --- a/embassy-stm32/src/rcc/f4/mod.rs +++ b/embassy-stm32/src/rcc/f4/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::time::Hertz; | |||
| 6 | use crate::time::U32Ext; | 6 | use crate::time::U32Ext; |
| 7 | use core::marker::PhantomData; | 7 | use core::marker::PhantomData; |
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | use pac::rcc::vals::{Hpre, Ppre, Sw}; | 10 | use pac::rcc::vals::{Hpre, Ppre, Sw}; |
| 11 | 11 | ||
| 12 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 12 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
diff --git a/embassy-stm32/src/rcc/l0/mod.rs b/embassy-stm32/src/rcc/l0/mod.rs index 6107d5f55..ef8286e25 100644 --- a/embassy-stm32/src/rcc/l0/mod.rs +++ b/embassy-stm32/src/rcc/l0/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::time::Hertz; | |||
| 6 | use crate::time::U32Ext; | 6 | use crate::time::U32Ext; |
| 7 | use core::marker::PhantomData; | 7 | use core::marker::PhantomData; |
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | use pac::rcc::vals::{Hpre, Msirange, Plldiv, Pllmul, Pllsrc, Ppre, Sw}; | 10 | use pac::rcc::vals::{Hpre, Msirange, Plldiv, Pllmul, Pllsrc, Ppre, Sw}; |
| 11 | 11 | ||
| 12 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 12 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
diff --git a/embassy-stm32/src/rcc/l4/mod.rs b/embassy-stm32/src/rcc/l4/mod.rs index e6662f59f..4247d8ffb 100644 --- a/embassy-stm32/src/rcc/l4/mod.rs +++ b/embassy-stm32/src/rcc/l4/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::time::Hertz; | |||
| 6 | use crate::time::U32Ext; | 6 | use crate::time::U32Ext; |
| 7 | use core::marker::PhantomData; | 7 | use core::marker::PhantomData; |
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | 10 | ||
| 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
| 12 | /// and with the addition of the init function to configure a system clock. | 12 | /// and with the addition of the init function to configure a system clock. |
diff --git a/embassy-stm32/src/rcc/wb55/mod.rs b/embassy-stm32/src/rcc/wb55/mod.rs index e6662f59f..4247d8ffb 100644 --- a/embassy-stm32/src/rcc/wb55/mod.rs +++ b/embassy-stm32/src/rcc/wb55/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::time::Hertz; | |||
| 6 | use crate::time::U32Ext; | 6 | use crate::time::U32Ext; |
| 7 | use core::marker::PhantomData; | 7 | use core::marker::PhantomData; |
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | 10 | ||
| 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
| 12 | /// and with the addition of the init function to configure a system clock. | 12 | /// and with the addition of the init function to configure a system clock. |
diff --git a/embassy-stm32/src/rcc/wl5x/mod.rs b/embassy-stm32/src/rcc/wl5x/mod.rs index 554a27ca2..6a4f99e0c 100644 --- a/embassy-stm32/src/rcc/wl5x/mod.rs +++ b/embassy-stm32/src/rcc/wl5x/mod.rs | |||
| @@ -6,7 +6,7 @@ use crate::time::Hertz; | |||
| 6 | use crate::time::U32Ext; | 6 | use crate::time::U32Ext; |
| 7 | use core::marker::PhantomData; | 7 | use core::marker::PhantomData; |
| 8 | use embassy::util::Unborrow; | 8 | use embassy::util::Unborrow; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | 10 | ||
| 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, | 11 | /// Most of clock setup is copied from stm32l0xx-hal, and adopted to the generated PAC, |
| 12 | /// and with the addition of the init function to configure a system clock. | 12 | /// and with the addition of the init function to configure a system clock. |
diff --git a/embassy-stm32/src/rng.rs b/embassy-stm32/src/rng.rs index c2248c84d..d93a25f5a 100644 --- a/embassy-stm32/src/rng.rs +++ b/embassy-stm32/src/rng.rs | |||
| @@ -4,7 +4,7 @@ use core::future::Future; | |||
| 4 | use core::task::Poll; | 4 | use core::task::Poll; |
| 5 | use embassy::traits; | 5 | use embassy::traits; |
| 6 | use embassy::util::{AtomicWaker, Unborrow}; | 6 | use embassy::util::{AtomicWaker, Unborrow}; |
| 7 | use embassy_extras::unborrow; | 7 | use embassy_hal_common::unborrow; |
| 8 | use futures::future::poll_fn; | 8 | use futures::future::poll_fn; |
| 9 | use rand_core::{CryptoRng, RngCore}; | 9 | use rand_core::{CryptoRng, RngCore}; |
| 10 | 10 | ||
diff --git a/embassy-stm32/src/sdmmc/v2.rs b/embassy-stm32/src/sdmmc/v2.rs index 9c7bad4df..aa1d68ae7 100644 --- a/embassy-stm32/src/sdmmc/v2.rs +++ b/embassy-stm32/src/sdmmc/v2.rs | |||
| @@ -6,7 +6,7 @@ use core::task::Poll; | |||
| 6 | 6 | ||
| 7 | use embassy::interrupt::InterruptExt; | 7 | use embassy::interrupt::InterruptExt; |
| 8 | use embassy::util::{AtomicWaker, OnDrop, Unborrow}; | 8 | use embassy::util::{AtomicWaker, OnDrop, Unborrow}; |
| 9 | use embassy_extras::unborrow; | 9 | use embassy_hal_common::unborrow; |
| 10 | use futures::future::poll_fn; | 10 | use futures::future::poll_fn; |
| 11 | use sdio_host::{BusWidth, CardCapacity, CardStatus, CurrentState, SDStatus, CID, CSD, OCR, SCR}; | 11 | use sdio_host::{BusWidth, CardCapacity, CardStatus, CurrentState, SDStatus, CID, CSD, OCR, SCR}; |
| 12 | 12 | ||
diff --git a/embassy-stm32/src/spi/v1.rs b/embassy-stm32/src/spi/v1.rs index 43489bb6f..554981ce7 100644 --- a/embassy-stm32/src/spi/v1.rs +++ b/embassy-stm32/src/spi/v1.rs | |||
| @@ -12,7 +12,7 @@ use core::future::Future; | |||
| 12 | use core::marker::PhantomData; | 12 | use core::marker::PhantomData; |
| 13 | use core::ptr; | 13 | use core::ptr; |
| 14 | use embassy::util::Unborrow; | 14 | use embassy::util::Unborrow; |
| 15 | use embassy_extras::unborrow; | 15 | use embassy_hal_common::unborrow; |
| 16 | use embassy_traits::spi as traits; | 16 | use embassy_traits::spi as traits; |
| 17 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; | 17 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; |
| 18 | use futures::future::join3; | 18 | use futures::future::join3; |
diff --git a/embassy-stm32/src/spi/v2.rs b/embassy-stm32/src/spi/v2.rs index 2144dfcc8..496d100f7 100644 --- a/embassy-stm32/src/spi/v2.rs +++ b/embassy-stm32/src/spi/v2.rs | |||
| @@ -14,7 +14,7 @@ use core::future::Future; | |||
| 14 | use core::marker::PhantomData; | 14 | use core::marker::PhantomData; |
| 15 | use core::ptr; | 15 | use core::ptr; |
| 16 | use embassy::util::Unborrow; | 16 | use embassy::util::Unborrow; |
| 17 | use embassy_extras::unborrow; | 17 | use embassy_hal_common::unborrow; |
| 18 | use embassy_traits::spi as traits; | 18 | use embassy_traits::spi as traits; |
| 19 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; | 19 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; |
| 20 | use futures::future::join3; | 20 | use futures::future::join3; |
diff --git a/embassy-stm32/src/spi/v3.rs b/embassy-stm32/src/spi/v3.rs index f433d7f9c..cfee54dac 100644 --- a/embassy-stm32/src/spi/v3.rs +++ b/embassy-stm32/src/spi/v3.rs | |||
| @@ -14,7 +14,7 @@ use core::future::Future; | |||
| 14 | use core::marker::PhantomData; | 14 | use core::marker::PhantomData; |
| 15 | use core::ptr; | 15 | use core::ptr; |
| 16 | use embassy::util::Unborrow; | 16 | use embassy::util::Unborrow; |
| 17 | use embassy_extras::unborrow; | 17 | use embassy_hal_common::unborrow; |
| 18 | use embassy_traits::spi as traits; | 18 | use embassy_traits::spi as traits; |
| 19 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; | 19 | pub use embedded_hal::spi::{Mode, Phase, Polarity, MODE_0, MODE_1, MODE_2, MODE_3}; |
| 20 | 20 | ||
diff --git a/embassy-stm32/src/usart/v1.rs b/embassy-stm32/src/usart/v1.rs index 0f39c364b..d68215fea 100644 --- a/embassy-stm32/src/usart/v1.rs +++ b/embassy-stm32/src/usart/v1.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::future::Future; | 1 | use core::future::Future; |
| 2 | use core::marker::PhantomData; | 2 | use core::marker::PhantomData; |
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use futures::TryFutureExt; | 5 | use futures::TryFutureExt; |
| 6 | 6 | ||
| 7 | use super::*; | 7 | use super::*; |
diff --git a/embassy-stm32/src/usart/v2.rs b/embassy-stm32/src/usart/v2.rs index 8a4d63b20..6ce3a338e 100644 --- a/embassy-stm32/src/usart/v2.rs +++ b/embassy-stm32/src/usart/v2.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | use core::future::Future; | 1 | use core::future::Future; |
| 2 | use core::marker::PhantomData; | 2 | use core::marker::PhantomData; |
| 3 | use embassy::util::Unborrow; | 3 | use embassy::util::Unborrow; |
| 4 | use embassy_extras::unborrow; | 4 | use embassy_hal_common::unborrow; |
| 5 | use futures::TryFutureExt; | 5 | use futures::TryFutureExt; |
| 6 | 6 | ||
| 7 | use super::*; | 7 | use super::*; |
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml index 704a76390..693dac545 100644 --- a/examples/stm32f4/Cargo.toml +++ b/examples/stm32f4/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [] | |||
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac"] } | 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac"] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 24 | ||
| 25 | defmt = "0.2.0" | 25 | defmt = "0.2.0" |
| 26 | defmt-rtt = "0.2.0" | 26 | defmt-rtt = "0.2.0" |
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml index ebaa4e5db..278ab6f6b 100644 --- a/examples/stm32h7/Cargo.toml +++ b/examples/stm32h7/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [] | |||
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net"] } | 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net"] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } | 24 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } |
| 25 | stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] } | 25 | stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] } |
| 26 | embassy-macros = { path = "../../embassy-macros" } | 26 | embassy-macros = { path = "../../embassy-macros" } |
diff --git a/examples/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml index 68291b007..47d23d08f 100644 --- a/examples/stm32l0/Cargo.toml +++ b/examples/stm32l0/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [] | |||
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l072cz"] } | 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l072cz"] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 24 | ||
| 25 | defmt = "0.2.0" | 25 | defmt = "0.2.0" |
| 26 | defmt-rtt = "0.2.0" | 26 | defmt-rtt = "0.2.0" |
diff --git a/examples/stm32l4/Cargo.toml b/examples/stm32l4/Cargo.toml index cbf002291..ce4618290 100644 --- a/examples/stm32l4/Cargo.toml +++ b/examples/stm32l4/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [] | |||
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi"] } | 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi"] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 24 | ||
| 25 | defmt = "0.2.0" | 25 | defmt = "0.2.0" |
| 26 | defmt-rtt = "0.2.0" | 26 | defmt-rtt = "0.2.0" |
diff --git a/examples/stm32wb55/Cargo.toml b/examples/stm32wb55/Cargo.toml index 92813ccd0..4d6f7789c 100644 --- a/examples/stm32wb55/Cargo.toml +++ b/examples/stm32wb55/Cargo.toml | |||
| @@ -20,7 +20,7 @@ defmt-error = [] | |||
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc"] } | 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc"] } |
| 23 | embassy-extras = {version = "0.1.0", path = "../../embassy-extras" } | 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 24 | ||
| 25 | defmt = "0.2.0" | 25 | defmt = "0.2.0" |
| 26 | defmt-rtt = "0.2.0" | 26 | defmt-rtt = "0.2.0" |
