From 45383aba10c169cf0ac4c6df1d6bd96351c92947 Mon Sep 17 00:00:00 2001 From: Justin Beaurivage Date: Wed, 10 Jan 2024 15:35:03 -0500 Subject: [PATCH] Switch to embedded-hal-async and embedded-hal 1.0 --- hal/Cargo.toml | 4 ++-- hal/src/thumbv6m/eic/pin.rs | 2 +- hal/src/thumbv7em/eic/pin.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/Cargo.toml b/hal/Cargo.toml index da7e8e32a5a..74a2b7b870e 100644 --- a/hal/Cargo.toml +++ b/hal/Cargo.toml @@ -55,8 +55,8 @@ void = {version = "1.0", default-features = false} #=============================================================================== embassy-sync = {version = "0.5.0", optional = true} -embedded-hal-alpha = {package = "embedded-hal", version = "1.0.0-rc.1"} -embedded-hal-async = {version = "1.0.0-rc.2", optional = true, features = ["defmt-03"]} +embedded-hal_1 = {package = "embedded-hal", version = "1.0.0"} +embedded-hal-async = {version = "1.0.0", optional = true, features = ["defmt-03"]} embedded-sdmmc = {version = "0.3", optional = true} futures = {version = "0.3", default-features = false, features = ["async-await"], optional = true} jlink_rtt = {version = "0.2", optional = true} diff --git a/hal/src/thumbv6m/eic/pin.rs b/hal/src/thumbv6m/eic/pin.rs index 32cb6ab3595..3ff0cd11390 100644 --- a/hal/src/thumbv6m/eic/pin.rs +++ b/hal/src/thumbv6m/eic/pin.rs @@ -198,7 +198,7 @@ crate::paste::item! { } #[cfg(feature = "async")] - impl embedded_hal_alpha::digital::ErrorType for [<$PadType $num>] + impl embedded_hal_1::digital::ErrorType for [<$PadType $num>] where GPIO: AnyPin, Self: InputPin, diff --git a/hal/src/thumbv7em/eic/pin.rs b/hal/src/thumbv7em/eic/pin.rs index 4a9c6084fe9..1846b4db5f4 100644 --- a/hal/src/thumbv7em/eic/pin.rs +++ b/hal/src/thumbv7em/eic/pin.rs @@ -259,7 +259,7 @@ crate::paste::item! { } #[cfg(feature = "async")] - impl embedded_hal_alpha::digital::ErrorType for [<$PadType $num>] + impl embedded_hal_1::digital::ErrorType for [<$PadType $num>] where GPIO: AnyPin, Self: InputPin,