Made use of the generic Ethernet driver for cc65 targets.

This commit is contained in:
oliverschmidt 2007-11-20 22:24:03 +00:00
parent 7c1cbd4ee2
commit 645be6acbc

View file

@ -30,12 +30,13 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * Author: Oliver Schmidt <ol.sc@web.de>
* *
* $Id: contiki-main.c,v 1.2 2007/11/20 21:24:25 oliverschmidt Exp $ * $Id: contiki-main.c,v 1.3 2007/11/20 22:24:03 oliverschmidt Exp $
*/ */
#include <stdio.h> #include <stdio.h>
#include "contiki-net.h" #include "contiki-net.h"
#include "net/ethernet-drv.h"
PROCINIT(&etimer_process, PROCINIT(&etimer_process,
&tcpip_process); &tcpip_process);
@ -64,7 +65,11 @@ main(void)
#if 1 #if 1
{ {
static struct ethernet_config config = {0xDE08, "CS8900A.ETH"};
uip_ipaddr_t addr; uip_ipaddr_t addr;
process_start((struct process *)&ethernet_process, (char *)&config);
uip_ipaddr(&addr, 192,168,0,128); uip_ipaddr(&addr, 192,168,0,128);
uip_sethostaddr(&addr); uip_sethostaddr(&addr);