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)
82 videomode(VIDEOMODE_80COL);
87 ethernet_config = config_read(
"contiki.cfg");
90 static struct ethernet_config config = {0xDE08,
"cs8900a.eth"};
105 ethernet_config = &config;
109 #if (WITH_GUI && WITH_MOUSE)
111 static const uint8_t mouse_sprite[64] = {
112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
113 0x00, 0x0F, 0xE0, 0x00, 0x0F, 0xC0, 0x00, 0x0F,
114 0x80, 0x00, 0x0F, 0xC0, 0x00, 0x0D, 0xE0, 0x00,
115 0x08, 0xF0, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3C,
116 0x00, 0x00, 0x1E, 0x00, 0x00, 0x0F, 0x00, 0x00,
117 0x07, 0x80, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00,
118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
119 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
121 memcpy((
void*)0x0E00, mouse_sprite,
sizeof(mouse_sprite));
122 *(uint8_t*)0x07F8 = 0x0E00 / 64;
123 VIC.spr0_color = COLOR_WHITE;
129 process_start((
struct process *)ðernet_process, (
void *)ethernet_config);
131 autostart_start(autostart_processes);
133 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.