Skip to content

Commit 2bad43d

Browse files
author
Mika Leppänen
committed
Corrected K66F and K64F drivers to make "or" operation instead of "and" when multicast
group address is added to filter.
1 parent bb50717 commit 2bad43d

File tree

2 files changed

+4
-4
lines changed
  • hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS

2 files changed

+4
-4
lines changed

hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,11 @@ void ENET_AddMulticastGroup(ENET_Type *base, uint8_t *address)
10641064
/* Enable a multicast group address. */
10651065
if (!((crc >> 0x1FU) & 1U))
10661066
{
1067-
base->GALR = 1U << ((crc >> 0x1AU) & 0x1FU);
1067+
base->GALR |= 1U << ((crc >> 0x1AU) & 0x1FU);
10681068
}
10691069
else
10701070
{
1071-
base->GAUR = 1U << ((crc >> 0x1AU) & 0x1FU);
1071+
base->GAUR |= 1U << ((crc >> 0x1AU) & 0x1FU);
10721072
}
10731073
}
10741074

hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,11 @@ void ENET_AddMulticastGroup(ENET_Type *base, uint8_t *address)
10641064
/* Enable a multicast group address. */
10651065
if (!((crc >> 0x1FU) & 1U))
10661066
{
1067-
base->GALR = 1U << ((crc >> 0x1AU) & 0x1FU);
1067+
base->GALR |= 1U << ((crc >> 0x1AU) & 0x1FU);
10681068
}
10691069
else
10701070
{
1071-
base->GAUR = 1U << ((crc >> 0x1AU) & 0x1FU);
1071+
base->GAUR |= 1U << ((crc >> 0x1AU) & 0x1FU);
10721072
}
10731073
}
10741074

0 commit comments

Comments
 (0)