37 #include "contiki-net.h"
40 #include "lib/config.h"
41 #include "net/ethernet-drv.h"
44 #define CTK_PROCESS &ctk_process,
50 #define RESOLV_PROCESS ,&resolv_process
52 #define RESOLV_PROCESS
55 PROCINIT(&etimer_process,
60 static struct ethernet_config *ethernet_config;
69 main(
int argc,
char **argv)
85 ethernet_config = config_read(
"contiki.cfg");
88 static struct ethernet_config config = {0xDE08,
"cs8900a.eth"};
103 ethernet_config = &config;
107 #if (WITH_GUI && WITH_MOUSE)
109 static const uint8_t mouse_sprite[64] = {
110 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
111 0x00, 0x0F, 0xE0, 0x00, 0x0F, 0xC0, 0x00, 0x0F,
112 0x80, 0x00, 0x0F, 0xC0, 0x00, 0x0D, 0xE0, 0x00,
113 0x08, 0xF0, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C,
114 0x00, 0x00, 0x1E, 0x00, 0x00, 0x0F, 0x00, 0x00,
115 0x07, 0x80, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00,
116 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
117 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
119 memcpy((
void*)0x0340, mouse_sprite,
sizeof(mouse_sprite));
120 *(uint8_t*)0x07F8 = 0x0340 / 64;
121 VIC.spr0_color = COLOR_WHITE;
127 process_start((
struct process *)ðernet_process, (
void *)ethernet_config);
129 autostart_start(autostart_processes);
131 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.