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, (
char *)ethernet_config);
129 autostart_start(autostart_processes);
131 log_message(
"Contiki up and running ...",
"");