diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-03-26 16:01:37 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-27 15:18:06 +0100 |
| commit | d41eeeae79388f219bf6a84e2f7bde9f6b532516 (patch) | |
| tree | 678b6fc732216e529dc38e6f65b72a309917ac32 /embassy-stm32/src/eth/mod.rs | |
| parent | 9edf5b7f049f95742b60b041e4443967d8a6b708 (diff) | |
Remove Peripheral trait, rename PeripheralRef->Peri.
Diffstat (limited to 'embassy-stm32/src/eth/mod.rs')
| -rw-r--r-- | embassy-stm32/src/eth/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/eth/mod.rs b/embassy-stm32/src/eth/mod.rs index 109ceeeb3..97d7b4347 100644 --- a/embassy-stm32/src/eth/mod.rs +++ b/embassy-stm32/src/eth/mod.rs | |||
| @@ -9,6 +9,7 @@ mod generic_phy; | |||
| 9 | use core::mem::MaybeUninit; | 9 | use core::mem::MaybeUninit; |
| 10 | use core::task::Context; | 10 | use core::task::Context; |
| 11 | 11 | ||
| 12 | use embassy_hal_internal::PeripheralType; | ||
| 12 | use embassy_net_driver::{Capabilities, HardwareAddress, LinkState}; | 13 | use embassy_net_driver::{Capabilities, HardwareAddress, LinkState}; |
| 13 | use embassy_sync::waitqueue::AtomicWaker; | 14 | use embassy_sync::waitqueue::AtomicWaker; |
| 14 | 15 | ||
| @@ -199,7 +200,7 @@ trait SealedInstance { | |||
| 199 | 200 | ||
| 200 | /// Ethernet instance. | 201 | /// Ethernet instance. |
| 201 | #[allow(private_bounds)] | 202 | #[allow(private_bounds)] |
| 202 | pub trait Instance: SealedInstance + RccPeripheral + Send + 'static {} | 203 | pub trait Instance: SealedInstance + PeripheralType + RccPeripheral + Send + 'static {} |
| 203 | 204 | ||
| 204 | impl SealedInstance for crate::peripherals::ETH { | 205 | impl SealedInstance for crate::peripherals::ETH { |
| 205 | fn regs() -> crate::pac::eth::Eth { | 206 | fn regs() -> crate::pac::eth::Eth { |
