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;
67 main(
int argc,
char **argv)
81 bordercolor(BORDERCOLOR);
87 ethernet_config = config_read(
"contiki.cfg");
90 static struct ethernet_config config = {0xD500,
"cs8900a.eth"};
105 ethernet_config = &config;
111 process_start((
struct process *)ðernet_process, (
void *)ethernet_config);
113 autostart_start(autostart_processes);
115 log_message(
"Contiki up and running ...",
"");
#define uip_sethostaddr(addr)
Set the IP address of this host.
int main(void)
This is main...
void process_init(void)
Initialize the process module.
#define uip_setdraddr(addr)
Set the default router's IP address.
void etimer_request_poll(void)
Make the event timer aware that the clock has changed.
void process_start(struct process *p, process_data_t data)
Start a process.
int process_run(void)
Run the system once - call poll handlers and process one event.
#define uip_ipaddr(addr, addr0, addr1, addr2, addr3)
Construct an IP address from four bytes.
#define uip_setnetmask(addr)
Set the netmask.