diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-04-28 01:56:25 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-04-30 04:49:57 +0200 |
| commit | 804b20c5af787518c7b29d1e5689b708190c2ec3 (patch) | |
| tree | b589a963f8256448eb404cb4569479b8ded9ddc2 | |
| parent | bb2db2b7beb1e412cf7e7b77f0c211ebc4b2072e (diff) | |
stm32/eth: make "ethmac" vs "eth" consistent in RCC regs.
| -rw-r--r-- | embassy-stm32/src/eth/v1/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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, | |||
| 117 | AFIO.mapr().modify(|w| w.set_mii_rmii_sel(true)); | 117 | AFIO.mapr().modify(|w| w.set_mii_rmii_sel(true)); |
| 118 | 118 | ||
| 119 | RCC.ahbenr().modify(|w| { | 119 | RCC.ahbenr().modify(|w| { |
| 120 | w.set_ethmacen(true); | 120 | w.set_ethen(true); |
| 121 | w.set_ethmactxen(true); | 121 | w.set_ethtxen(true); |
| 122 | w.set_ethmacrxen(true); | 122 | w.set_ethrxen(true); |
| 123 | }); | 123 | }); |
| 124 | }); | 124 | }); |
| 125 | 125 | ||
