From af1b8e5d8b3974d87067d4224f4ef71177ca5c4d Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Wed, 10 Jan 2024 21:15:07 +0200 Subject: [PATCH] update to embedded-hal 1 (#879) * update to eh1 * changelogs about embedded-hal 1.0 --- rtic-monotonics/CHANGELOG.md | 4 ++++ rtic-monotonics/Cargo.toml | 4 ++-- rtic-sync/CHANGELOG.md | 2 ++ rtic-sync/Cargo.toml | 6 +++--- rtic-time/CHANGELOG.md | 2 ++ rtic-time/Cargo.toml | 4 ++-- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/rtic-monotonics/CHANGELOG.md b/rtic-monotonics/CHANGELOG.md index 7fb311dd5e..ecef55377d 100644 --- a/rtic-monotonics/CHANGELOG.md +++ b/rtic-monotonics/CHANGELOG.md @@ -7,6 +7,10 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top! ## Unreleased +### Changed + +- Using `embedded-hal` 1.0. + ## v1.4.1 - 2023-12-06 ### Fixed diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index f85b3fe851..dc19ee9ac4 100644 --- a/rtic-monotonics/Cargo.toml +++ b/rtic-monotonics/Cargo.toml @@ -29,8 +29,8 @@ rustdoc-flags = ["--cfg", "docsrs"] [dependencies] rtic-time = { version = "1.1.0", path = "../rtic-time" } -embedded-hal = { version = "1.0.0-rc.2" } -embedded-hal-async = { version = "1.0.0-rc.2", optional = true } +embedded-hal = { version = "1.0" } +embedded-hal-async = { version = "1.0", optional = true } fugit = { version = "0.3.6" } atomic-polyfill = "1" cfg-if = "1.0.0" diff --git a/rtic-sync/CHANGELOG.md b/rtic-sync/CHANGELOG.md index 0e5ab07adf..96714a4f26 100644 --- a/rtic-sync/CHANGELOG.md +++ b/rtic-sync/CHANGELOG.md @@ -11,6 +11,8 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top! ### Changed +- Using `embedded-hal` 1.0. + ### Fixed - `make_channel` now accepts `Type` expressions instead of only `TypePath` expressions. diff --git a/rtic-sync/Cargo.toml b/rtic-sync/Cargo.toml index 292230cb70..429c33e916 100644 --- a/rtic-sync/Cargo.toml +++ b/rtic-sync/Cargo.toml @@ -25,9 +25,9 @@ heapless = "0.8" critical-section = "1" rtic-common = { version = "1.0.0", path = "../rtic-common" } portable-atomic = { version = "1", default-features = false } -embedded-hal = { version = "1.0.0-rc.2", optional = true } -embedded-hal-async = { version = "1.0.0-rc.2", optional = true } -embedded-hal-bus = { version = "0.1.0-rc.2", optional = true, features = ["async"] } +embedded-hal = { version = "1.0", optional = true } +embedded-hal-async = { version = "1.0", optional = true } +embedded-hal-bus = { version = "0.1.0", optional = true, features = ["async"] } [dev-dependencies] tokio = { version = "1", features = ["rt", "macros", "time"] } diff --git a/rtic-time/CHANGELOG.md b/rtic-time/CHANGELOG.md index 9bce0a7f09..e091762a1b 100644 --- a/rtic-time/CHANGELOG.md +++ b/rtic-time/CHANGELOG.md @@ -11,6 +11,8 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top! ### Changed +- Using `embedded-hal` 1.0. + ### Fixed ## v1.2.0 - 2023-12-06 diff --git a/rtic-time/Cargo.toml b/rtic-time/Cargo.toml index 67619a34a7..239ec783b3 100644 --- a/rtic-time/Cargo.toml +++ b/rtic-time/Cargo.toml @@ -23,8 +23,8 @@ futures-util = { version = "0.3.25", default-features = false } rtic-common = { version = "1.0.0", path = "../rtic-common" } [dev-dependencies] -embedded-hal = { version = "1.0.0-rc.2" } -embedded-hal-async = { version = "1.0.0-rc.2" } +embedded-hal = { version = "1.0" } +embedded-hal-async = { version = "1.0" } fugit = "0.3.7" parking_lot = "0.12" cassette = "0.2"