diff options
Diffstat (limited to 'board/xilinx/xilinx_enet/emac_adapter.c')
| -rw-r--r-- | board/xilinx/xilinx_enet/emac_adapter.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/board/xilinx/xilinx_enet/emac_adapter.c b/board/xilinx/xilinx_enet/emac_adapter.c index b30e89766..d3403038e 100644 --- a/board/xilinx/xilinx_enet/emac_adapter.c +++ b/board/xilinx/xilinx_enet/emac_adapter.c @@ -37,9 +37,9 @@  *  ******************************************************************************/ +#include <config.h>  #include <common.h>  #include <net.h> -#include "xparameters.h"  #include "xemac.h"  #if defined(XPAR_EMAC_0_DEVICE_ID) @@ -147,7 +147,11 @@ eth_rx(void)  	RecvFrameLength = PKTSIZE;  	Result = XEmac_PollRecv(&Emac, (u8 *) etherrxbuff, &RecvFrameLength);  	if (Result == XST_SUCCESS) { +#ifndef CONFIG_EMACLITE  		NetReceive((uchar *)etherrxbuff, RecvFrameLength); +#else +		NetReceive(etherrxbuff, RecvFrameLength); +#endif  		return (1);  	} else {  		return (0); |