35 #include "contiki-net.h"
38 #include "lib/config.h"
39 #include "net/ethernet-drv.h"
42 #define CTK_PROCESS &ctk_process,
48 #define RESOLV_PROCESS ,&resolv_process
50 #define RESOLV_PROCESS
53 PROCINIT(&etimer_process,
58 static struct ethernet_config *ethernet_config;
60 void clock_update(
void);
69 main(
int argc,
char **argv)
87 videomode(VIDEOMODE_80COL);
93 ethernet_config = config_read(
"contiki.cfg");
96 static struct ethernet_config config = {0xC0B0,
"cs8900a.eth"};
111 ethernet_config = &config;
117 process_start((
struct process *)ðernet_process, (
void *)ethernet_config);
119 autostart_start(autostart_processes);
121 log_message(
"Contiki up and running ...",
"");
#define uip_sethostaddr(addr)
Set the IP address of this host.
#define uip_setdraddr(addr)
Set the default router's IP address.
#define uip_ipaddr(addr, addr0, addr1, addr2, addr3)
Construct an IP address from four bytes.
static uip_ds6_addr_t * addr
Pointer to a router list entry.
void etimer_request_poll(void)
Make the event timer aware that the clock has changed.
void uip_nameserver_update(const uip_ipaddr_t *nameserver, uint32_t lifetime)
Initialize the module variables.
int process_run(void)
Run the system once - call poll handlers and process one event.
#define uip_setnetmask(addr)
Set the netmask.
void process_start(struct process *p, process_data_t data)
Start a process.
int main(void)
This is main...
#define UIP_NAMESERVER_INFINITE_LIFETIME
Infinite Lifetime indicator.
void process_init(void)
Initialize the process module.