aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan McKernan <[email protected]>2025-01-01 21:47:44 -0800
committerIan McKernan <[email protected]>2025-01-01 21:47:44 -0800
commit9e9fa1cbefcd12bf3f645c02630b1566df864376 (patch)
treee3e450f05ab553a5cb47965098bb37ed5bbf8db6
parente7c3e1b2663b924f65d5ddf898030ddeffe6f368 (diff)
added fix for https://github.com/embassy-rs/embassy/issues/2496 in the v1 driver
-rw-r--r--embassy-stm32/src/eth/v1/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/eth/v1/mod.rs b/embassy-stm32/src/eth/v1/mod.rs
index cce75ece7..693355593 100644
--- a/embassy-stm32/src/eth/v1/mod.rs
+++ b/embassy-stm32/src/eth/v1/mod.rs
@@ -163,6 +163,11 @@ impl<'d, T: Instance, P: PHY> Ethernet<'d, T, P> {
163 // TODO: Carrier sense ? ECRSFD 163 // TODO: Carrier sense ? ECRSFD
164 }); 164 });
165 165
166 // Set the mac to pass all multicast packets
167 mac.macffr().modify(|w| {
168 w.set_pam(true);
169 });
170
166 // Note: Writing to LR triggers synchronisation of both LR and HR into the MAC core, 171 // Note: Writing to LR triggers synchronisation of both LR and HR into the MAC core,
167 // so the LR write must happen after the HR write. 172 // so the LR write must happen after the HR write.
168 mac.maca0hr() 173 mac.maca0hr()