mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/4060/head
parent
cd7abc019f
commit
2918270222
|
@ -861,11 +861,7 @@ static err_t low_level_init(struct netif *netif)
|
|||
return ERR_BUF;
|
||||
|
||||
/* Enable packet reception */
|
||||
#if IP_SOF_BROADCAST_RECV
|
||||
LPC_EMAC->RxFilterCtrl = EMAC_RFC_PERFECT_EN | EMAC_RFC_BCAST_EN | EMAC_RFC_MCAST_EN;
|
||||
#else
|
||||
LPC_EMAC->RxFilterCtrl = EMAC_RFC_PERFECT_EN;
|
||||
#endif
|
||||
|
||||
/* Clear and enable rx/tx interrupts */
|
||||
LPC_EMAC->IntClear = 0xFFFF;
|
||||
|
|
Loading…
Reference in New Issue