diff options
Diffstat (limited to 'embassy-net-adin1110')
| -rw-r--r-- | embassy-net-adin1110/Cargo.toml | 8 | ||||
| -rw-r--r-- | embassy-net-adin1110/src/lib.rs | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/embassy-net-adin1110/Cargo.toml b/embassy-net-adin1110/Cargo.toml index 3f016160d..3dbbee44d 100644 --- a/embassy-net-adin1110/Cargo.toml +++ b/embassy-net-adin1110/Cargo.toml | |||
| @@ -13,16 +13,16 @@ edition = "2021" | |||
| 13 | heapless = "0.8" | 13 | heapless = "0.8" |
| 14 | defmt = { version = "0.3", optional = true } | 14 | defmt = { version = "0.3", optional = true } |
| 15 | log = { version = "0.4", default-features = false, optional = true } | 15 | log = { version = "0.4", default-features = false, optional = true } |
| 16 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.1" } | 16 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-rc.2" } |
| 17 | embedded-hal-async = { version = "=1.0.0-rc.1" } | 17 | embedded-hal-async = { version = "=1.0.0-rc.2" } |
| 18 | embedded-hal-bus = { version = "=0.1.0-rc.1", features = ["async"] } | 18 | embedded-hal-bus = { version = "=0.1.0-rc.2", features = ["async"] } |
| 19 | embassy-net-driver-channel = { version = "0.2.0", path = "../embassy-net-driver-channel" } | 19 | embassy-net-driver-channel = { version = "0.2.0", path = "../embassy-net-driver-channel" } |
| 20 | embassy-time = { version = "0.1.5", path = "../embassy-time" } | 20 | embassy-time = { version = "0.1.5", path = "../embassy-time" } |
| 21 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | 21 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } |
| 22 | bitfield = "0.14.0" | 22 | bitfield = "0.14.0" |
| 23 | 23 | ||
| 24 | [dev-dependencies] | 24 | [dev-dependencies] |
| 25 | embedded-hal-mock = { version = "=0.10.0-rc.1", features = ["embedded-hal-async", "eh1"] } | 25 | embedded-hal-mock = { git = "https://github.com/Dirbaio/embedded-hal-mock", rev = "c5c4dca18e043e6386aee02173f61a65fea3981e", features = ["embedded-hal-async", "eh1"] } |
| 26 | crc = "3.0.1" | 26 | crc = "3.0.1" |
| 27 | env_logger = "0.10" | 27 | env_logger = "0.10" |
| 28 | critical-section = { version = "1.1.2", features = ["std"] } | 28 | critical-section = { version = "1.1.2", features = ["std"] } |
diff --git a/embassy-net-adin1110/src/lib.rs b/embassy-net-adin1110/src/lib.rs index 331c596df..e4a3cb209 100644 --- a/embassy-net-adin1110/src/lib.rs +++ b/embassy-net-adin1110/src/lib.rs | |||
| @@ -729,7 +729,7 @@ mod tests { | |||
| 729 | use core::convert::Infallible; | 729 | use core::convert::Infallible; |
| 730 | 730 | ||
| 731 | use embedded_hal_1::digital::{ErrorType, OutputPin}; | 731 | use embedded_hal_1::digital::{ErrorType, OutputPin}; |
| 732 | use embedded_hal_async::delay::DelayUs; | 732 | use embedded_hal_async::delay::DelayNs; |
| 733 | use embedded_hal_bus::spi::ExclusiveDevice; | 733 | use embedded_hal_bus::spi::ExclusiveDevice; |
| 734 | use embedded_hal_mock::common::Generic; | 734 | use embedded_hal_mock::common::Generic; |
| 735 | use embedded_hal_mock::eh1::spi::{Mock as SpiMock, Transaction as SpiTransaction}; | 735 | use embedded_hal_mock::eh1::spi::{Mock as SpiMock, Transaction as SpiTransaction}; |
| @@ -760,7 +760,11 @@ mod tests { | |||
| 760 | // see https://github.com/rust-embedded/embedded-hal/pull/462#issuecomment-1560014426 | 760 | // see https://github.com/rust-embedded/embedded-hal/pull/462#issuecomment-1560014426 |
| 761 | struct MockDelay {} | 761 | struct MockDelay {} |
| 762 | 762 | ||
| 763 | impl DelayUs for MockDelay { | 763 | impl DelayNs for MockDelay { |
| 764 | async fn delay_ns(&mut self, _ns: u32) { | ||
| 765 | todo!() | ||
| 766 | } | ||
| 767 | |||
| 764 | async fn delay_us(&mut self, _us: u32) { | 768 | async fn delay_us(&mut self, _us: u32) { |
| 765 | todo!() | 769 | todo!() |
| 766 | } | 770 | } |
