From 804b20c5af787518c7b29d1e5689b708190c2ec3 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 28 Apr 2022 01:56:25 +0200 Subject: [PATCH] stm32/eth: make "ethmac" vs "eth" consistent in RCC regs. --- embassy-stm32/src/eth/v1/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embassy-stm32/src/eth/v1/mod.rs b/embassy-stm32/src/eth/v1/mod.rs index 7bc90988..f102f431 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); }); });