Made use of the generic Ethernet driver for cc65 targets.
This commit is contained in:
parent
7c1cbd4ee2
commit
645be6acbc
1 changed files with 6 additions and 1 deletions
|
@ -30,12 +30,13 @@
|
|||
*
|
||||
* 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 "contiki-net.h"
|
||||
#include "net/ethernet-drv.h"
|
||||
|
||||
PROCINIT(&etimer_process,
|
||||
&tcpip_process);
|
||||
|
@ -64,7 +65,11 @@ main(void)
|
|||
|
||||
#if 1
|
||||
{
|
||||
static struct ethernet_config config = {0xDE08, "CS8900A.ETH"};
|
||||
uip_ipaddr_t addr;
|
||||
|
||||
process_start((struct process *)ðernet_process, (char *)&config);
|
||||
|
||||
uip_ipaddr(&addr, 192,168,0,128);
|
||||
uip_sethostaddr(&addr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue