diff options
| -rw-r--r-- | embassy-stm32/src/eth/generic_smi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/eth/generic_smi.rs b/embassy-stm32/src/eth/generic_smi.rs index acd793958..41d19e921 100644 --- a/embassy-stm32/src/eth/generic_smi.rs +++ b/embassy-stm32/src/eth/generic_smi.rs | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | use core::task::Context; | 3 | use core::task::Context; |
| 4 | 4 | ||
| 5 | #[cfg(feature = "time")] | 5 | #[cfg(feature = "time")] |
| 6 | use embassy_time::{Duration, Timer, Delay}; | 6 | use embassy_time::{Delay, Duration, Timer}; |
| 7 | #[cfg(feature = "time")] | 7 | #[cfg(feature = "time")] |
| 8 | use futures_util::FutureExt; | 8 | use futures_util::FutureExt; |
| 9 | 9 | ||
| @@ -80,7 +80,7 @@ unsafe impl PHY for GenericSMI { | |||
| 80 | } | 80 | } |
| 81 | panic!("PHY did not respond"); | 81 | panic!("PHY did not respond"); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | sm.smi_write(self.phy_addr, PHY_REG_BCR, PHY_REG_BCR_RESET); | 84 | sm.smi_write(self.phy_addr, PHY_REG_BCR, PHY_REG_BCR_RESET); |
| 85 | while sm.smi_read(self.phy_addr, PHY_REG_BCR) & PHY_REG_BCR_RESET == PHY_REG_BCR_RESET {} | 85 | while sm.smi_read(self.phy_addr, PHY_REG_BCR) & PHY_REG_BCR_RESET == PHY_REG_BCR_RESET {} |
| 86 | } | 86 | } |
