Download library here.
Check the tutorial page for an explanation about Ethernet.
For this example we choose to show only the main.c Ethernet is a very complex subject, all the modification that have to be done are explained in the tutorial. To make this code a bit more interesting and handier, we placed the Ethernet handler in a timer interrupt. In this way there is more time for other applications.
/* Init Ethernet */
/*Init timer interrupt every 0.125 seconds and start interrupting*/
/* Place other code here */
void TIMER0_IRQHandler (void)
/* Set new timer interrupt */
/* Take care of Ethernet */