diff options
| -rw-r--r-- | embassy-stm32/src/eth/v1/mod.rs | 5 |
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() |
