mirror of https://github.com/ARMmbed/mbed-os.git
Corrected K66F and K64F drivers to make "or" operation instead of "and" when multicast
group address is added to filter.pull/2767/head
parent
bb50717dc3
commit
2bad43d7ca
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue