aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-01-02 10:27:05 +0000
committerGitHub <[email protected]>2025-01-02 10:27:05 +0000
commitadf1e424f4e6ec8602b429b2727a7c5ce153558e (patch)
tree62e3adcbb81228ff2e72e21e6fc0ab844604f0ec
parente7c3e1b2663b924f65d5ddf898030ddeffe6f368 (diff)
parent28d58578d69cc80653cf0620cbd22385749a5eb1 (diff)
Merge pull request #3707 from itmmckernan/main
Fixed stm32 v1 ethernet driver multicast reception
-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..b96275cb7 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()