Corrected K66F and K64F drivers to make "or" operation instead of "and" when multicast

group address is added to filter.
pull/2767/head
Mika Leppänen 2016-09-16 11:14:05 +03:00
parent bb50717dc3
commit 2bad43d7ca
2 changed files with 4 additions and 4 deletions

View File

@ -1064,11 +1064,11 @@ void ENET_AddMulticastGroup(ENET_Type *base, uint8_t *address)
/* Enable a multicast group address. */ /* Enable a multicast group address. */
if (!((crc >> 0x1FU) & 1U)) if (!((crc >> 0x1FU) & 1U))
{ {
base->GALR = 1U << ((crc >> 0x1AU) & 0x1FU); base->GALR |= 1U << ((crc >> 0x1AU) & 0x1FU);
} }
else else
{ {
base->GAUR = 1U << ((crc >> 0x1AU) & 0x1FU); base->GAUR |= 1U << ((crc >> 0x1AU) & 0x1FU);
} }
} }

View File

@ -1064,11 +1064,11 @@ void ENET_AddMulticastGroup(ENET_Type *base, uint8_t *address)
/* Enable a multicast group address. */ /* Enable a multicast group address. */
if (!((crc >> 0x1FU) & 1U)) if (!((crc >> 0x1FU) & 1U))
{ {
base->GALR = 1U << ((crc >> 0x1AU) & 0x1FU); base->GALR |= 1U << ((crc >> 0x1AU) & 0x1FU);
} }
else else
{ {
base->GAUR = 1U << ((crc >> 0x1AU) & 0x1FU); base->GAUR |= 1U << ((crc >> 0x1AU) & 0x1FU);
} }
} }