diff --git a/liteeth/software/liblwip/netif/liteethif.c b/liteeth/software/liblwip/netif/liteethif.c index e89c3e5..2769e9d 100644 --- a/liteeth/software/liblwip/netif/liteethif.c +++ b/liteeth/software/liblwip/netif/liteethif.c @@ -13,7 +13,11 @@ #include "netif/liteethif.h" #include -#include + +#define ETHMAC_RX0_BASE ETHMAC_BASE +#define ETHMAC_RX1_BASE (ETHMAC_BASE+0x0800) +#define ETHMAC_TX0_BASE (ETHMAC_BASE+0x1000) +#define ETHMAC_TX1_BASE (ETHMAC_BASE+0x1800) static unsigned int rxslot; static unsigned int rxlen; diff --git a/liteeth/software/libuip/liteethmac-drv.c b/liteeth/software/libuip/liteethmac-drv.c index f9c1b67..5bc6533 100644 --- a/liteeth/software/libuip/liteethmac-drv.c +++ b/liteeth/software/libuip/liteethmac-drv.c @@ -10,10 +10,14 @@ #include #include #include -#include #include #include +#define ETHMAC_RX0_BASE ETHMAC_BASE +#define ETHMAC_RX1_BASE (ETHMAC_BASE+0x0800) +#define ETHMAC_TX0_BASE (ETHMAC_BASE+0x1000) +#define ETHMAC_TX1_BASE (ETHMAC_BASE+0x1800) + #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b))