Re: [lwip-users] How can I make the lwIP stack communicate with a new Et
From:
nielda (sent by Nabble.com)
Subject:
Re: [lwip-users] How can I make the lwIP stack communicate with a new Ethernet MAC?
Date:
Tue, 7 Feb 2006 10:36:21 -0800 (PST)
Hello Christiaan Simons,
Thank you very much for your answer! I also received your e-mail.
Could you tell me in which programm I should call
netif_add(&netif, &ipaddr, &netmask, &gw, NULL, your_if_init, tcpip_input);
netif_set_default(&netif); ?
If I did that in the device driver altera_avalon_rtmac.c it would probably have no effect, because the device driver is not registered in alt_sys_init.c (which is automatically generated in the project system library).
In alt_sys_init.c there is written:
#include "altera_avalon_lan91c111.h"
but not
#include "altera_avalon_rtmac.h"
and I do not know how I could achieve that.
Do you have an idea?