Merge pull request #5704 from mikaleppanen/lwip_k64f_mcast_fix

Fixed lwip k64f ethernet driver ipv6 multicast groups
pull/5618/merge
Anna Bridge 2017-12-14 17:40:11 +00:00 committed by GitHub
commit cc6a838b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -246,6 +246,16 @@ static err_t low_level_init(struct netif *netif)
config.txAccelerConfig = kENET_TxAccelIsShift16Enabled;
config.rxAccelerConfig = kENET_RxAccelisShift16Enabled | kENET_RxAccelMacCheckEnabled;
ENET_Init(ENET, &g_handle, &config, &buffCfg, netif->hwaddr, sysClock);
#if defined(TOOLCHAIN_ARM)
#if defined(__OPTIMISE_TIME) && (__ARMCC_VERSION < 5060750)
/* Add multicast groups
work around for https://github.com/ARMmbed/mbed-os/issues/4372 */
ENET->GAUR = 0xFFFFFFFFu;
ENET->GALR = 0xFFFFFFFFu;
#endif
#endif
ENET_SetCallback(&g_handle, ethernet_callback, netif);
ENET_ActiveRead(ENET);