From a18984a28124913be943a04a4f4df5401d5d5c92 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sun, 9 Jun 2024 13:21:30 -0700 Subject: [PATCH] embedded-hal-mock: 0.10.0 -> 0.11.1 --- hl/Cargo.toml | 2 +- ll/Cargo.toml | 2 +- ll/src/eh0.rs | 6 +++--- ll/src/eh0/vdm.rs | 6 +++--- ll/src/eh1.rs | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hl/Cargo.toml b/hl/Cargo.toml index 452cbf36..4741e3fa 100644 --- a/hl/Cargo.toml +++ b/hl/Cargo.toml @@ -23,7 +23,7 @@ w5500-ll = { path = "../ll", version = "0.13.0" } [dev-dependencies] embedded-hal = "1" w5500-ll = { path = "../ll", version = "0.13.0", features = ["eh1", "defmt"] } -ehm = { package = "embedded-hal-mock", version = "0.10.0", features = ["eh0", "eh1", "embedded-hal-async"] } +ehm = { package = "embedded-hal-mock", version = "0.11.1", features = ["eh0", "eh1", "embedded-hal-async"] } [package.metadata.docs.rs] all-features = true diff --git a/ll/Cargo.toml b/ll/Cargo.toml index 1fae8b15..008e9302 100644 --- a/ll/Cargo.toml +++ b/ll/Cargo.toml @@ -24,7 +24,7 @@ eha1 = { package = "embedded-hal-async", version = "1", optional = true } [dev-dependencies] tokio = { version = "1.21.2", features = ["rt", "macros"] } -ehm = { package = "embedded-hal-mock", version = "0.10.0", features = ["eh0", "eh1", "embedded-hal-async"] } +ehm = { package = "embedded-hal-mock", version = "0.11.1", features = ["eh0", "eh1", "embedded-hal-async"] } [package.metadata.docs.rs] all-features = true diff --git a/ll/src/eh0.rs b/ll/src/eh0.rs index 6af50e82..7f41620a 100644 --- a/ll/src/eh0.rs +++ b/ll/src/eh0.rs @@ -25,9 +25,9 @@ pub mod vdm_infallible_gpio; /// ``` /// # use ehm::eh0 as hal; /// # let mut delay = hal::delay::NoopDelay::new(); -/// # let mut reset_pin = hal::pin::Mock::new(&[ -/// # hal::pin::Transaction::set(hal::pin::State::Low), -/// # hal::pin::Transaction::set(hal::pin::State::High), +/// # let mut reset_pin = hal::digital::Mock::new(&[ +/// # hal::digital::Transaction::set(hal::digital::State::Low), +/// # hal::digital::Transaction::set(hal::digital::State::High), /// # ]); /// w5500_ll::eh0::reset(&mut reset_pin, &mut delay)?; /// # reset_pin.done(); diff --git a/ll/src/eh0/vdm.rs b/ll/src/eh0/vdm.rs index 8c3287fe..2a979b4d 100644 --- a/ll/src/eh0/vdm.rs +++ b/ll/src/eh0/vdm.rs @@ -50,8 +50,8 @@ where /// ``` /// # use ehm::eh0 as hal; /// # let spi = hal::spi::Mock::new(&[]); - /// # let mut pin = hal::pin::Mock::new(&[ - /// # hal::pin::Transaction::set(hal::pin::State::High), + /// # let mut pin = hal::digital::Mock::new(&[ + /// # hal::digital::Transaction::set(hal::digital::State::High), /// # ]); /// use eh0::digital::v2::OutputPin; /// use w5500_ll::eh0::vdm::W5500; @@ -75,7 +75,7 @@ where /// ``` /// # use ehm::eh0 as hal; /// # let spi = hal::spi::Mock::new(&[]); - /// # let pin = hal::pin::Mock::new(&[]); + /// # let pin = hal::digital::Mock::new(&[]); /// use w5500_ll::eh0::vdm::W5500; /// /// let mut w5500 = W5500::new(spi, pin); diff --git a/ll/src/eh1.rs b/ll/src/eh1.rs index 9587b323..cafeaf9d 100644 --- a/ll/src/eh1.rs +++ b/ll/src/eh1.rs @@ -26,9 +26,9 @@ pub mod vdm; /// ``` /// # use ehm::eh1 as hal; /// # let mut delay = hal::delay::NoopDelay::new(); -/// # let mut reset_pin = hal::pin::Mock::new(&[ -/// # hal::pin::Transaction::set(hal::pin::State::Low), -/// # hal::pin::Transaction::set(hal::pin::State::High), +/// # let mut reset_pin = hal::digital::Mock::new(&[ +/// # hal::digital::Transaction::set(hal::digital::State::Low), +/// # hal::digital::Transaction::set(hal::digital::State::High), /// # ]); /// w5500_ll::eh1::reset(&mut reset_pin, &mut delay)?; /// # reset_pin.done();