diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-07-14 10:12:43 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-07-14 10:12:43 +0300 |
commit | 16148ac053acd33422c4e91dd09e4d5aefc2e80b (patch) | |
tree | 394ba5b5ed664a7bd5c714bf239066b259255045 /src/Hardware/SAME70 | |
parent | f2813210021a755e5bf6147668b506b82861db7f (diff) |
Fixes to multicast
Diffstat (limited to 'src/Hardware/SAME70')
-rw-r--r-- | src/Hardware/SAME70/Ethernet/GmacInterface.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Hardware/SAME70/Ethernet/GmacInterface.cpp b/src/Hardware/SAME70/Ethernet/GmacInterface.cpp index 8099da8c..abf2e0a0 100644 --- a/src/Hardware/SAME70/Ethernet/GmacInterface.cpp +++ b/src/Hardware/SAME70/Ethernet/GmacInterface.cpp @@ -667,6 +667,13 @@ void ethernetif_hardware_init() noexcept gmac_enable_copy_all(GMAC, false); gmac_disable_broadcast(GMAC, false); +#if SUPPORT_MULTICAST_DISCOVERY + // Without this code, we don't receive any multicast packets + GMAC->GMAC_NCFGR |= GMAC_NCFGR_MTIHEN; // enable multicast hash reception + GMAC->GMAC_HRB = 0xFFFFFFFF; // enable reception of all multicast frames + GMAC->GMAC_HRT = 0xFFFFFFFF; +#endif + /* Set RX buffer size to 1536. */ gmac_set_rx_bufsize(GMAC, 0x18); |