Merge pull request #3707 from itmmckernan/main

Fixed stm32 v1 ethernet driver multicast reception
This commit is contained in:
Dario Nieuwenhuis 2025-01-02 10:27:05 +00:00 committed by GitHub
commit adf1e424f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,6 +163,11 @@ impl<'d, T: Instance, P: PHY> Ethernet<'d, T, P> {
// TODO: Carrier sense ? ECRSFD
});
// Set the mac to pass all multicast packets
mac.macffr().modify(|w| {
w.set_pam(true);
});
// Note: Writing to LR triggers synchronisation of both LR and HR into the MAC core,
// so the LR write must happen after the HR write.
mac.maca0hr()