diff --git a/embassy-stm32/src/eth/v1/mod.rs b/embassy-stm32/src/eth/v1/mod.rs index 7bc909886..f102f4314 100644 --- a/embassy-stm32/src/eth/v1/mod.rs +++ b/embassy-stm32/src/eth/v1/mod.rs @@ -117,9 +117,9 @@ impl<'d, T: Instance, P: PHY, const TX: usize, const RX: usize> Ethernet<'d, T, AFIO.mapr().modify(|w| w.set_mii_rmii_sel(true)); RCC.ahbenr().modify(|w| { - w.set_ethmacen(true); - w.set_ethmactxen(true); - w.set_ethmacrxen(true); + w.set_ethen(true); + w.set_ethtxen(true); + w.set_ethrxen(true); }); });