diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-29 17:12:30 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-29 17:12:30 +0100 |
| commit | 384bad7bfaa1f2415baf2cd3b69ebf36dc0a02d7 (patch) | |
| tree | 1992bf003d6afcdeae926db2308f369bccfc42ea /embassy-net-adin1110/src | |
| parent | b4bc9ac028568dfb3896dfb00cbd1e181863fd64 (diff) | |
| parent | 4634316749c41dd5d8cc2f316033c9098369ed2f (diff) | |
Merge pull request #2231 from embassy-rs/stable3
Update embedded-(hal,io,nal).
Diffstat (limited to 'embassy-net-adin1110/src')
| -rw-r--r-- | embassy-net-adin1110/src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
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 | } |
