Skip to content

Commit 523f543

Browse files
gekyadbridge
authored andcommitted
lpc1768: Removed invalid use of IP_SOF_BROADCAST_RECV option
From opt.h: IP_SOF_BROADCAST_RECV (requires IP_SOF_BROADCAST=1) enable the broadcast filter on recv operations. The IP_SOF_BROADCAST_RECV option does not enable or disable recieving broadcast packets, it only enables a software filter.
1 parent f7c392e commit 523f543

File tree

1 file changed

+0
-4
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP

1 file changed

+0
-4
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,11 +861,7 @@ static err_t low_level_init(struct netif *netif)
861861
return ERR_BUF;
862862

863863
/* Enable packet reception */
864-
#if IP_SOF_BROADCAST_RECV
865864
LPC_EMAC->RxFilterCtrl = EMAC_RFC_PERFECT_EN | EMAC_RFC_BCAST_EN | EMAC_RFC_MCAST_EN;
866-
#else
867-
LPC_EMAC->RxFilterCtrl = EMAC_RFC_PERFECT_EN;
868-
#endif
869865

870866
/* Clear and enable rx/tx interrupts */
871867
LPC_EMAC->IntClear = 0xFFFF;

0 commit comments

Comments
 (0)