44 #include <avr/pgmspace.h>
53 #include "loader/symbols-def.h"
54 #include "loader/symtab.h"
55 #include "../apps/codeprop/codeprop.h"
64 PROCINIT(&etimer_process, &tcpip_process);
66 PROCINIT(&etimer_process, &tcpip_process, &uip_fw_process);
70 static struct mt_thread threads[3];
73 void thread_handler1 (
void* data) {
75 rs232_print_p (RS232_PORT_1, PSTR (
"Thread 1. Data: ") );
76 rs232_printf (RS232_PORT_1,
"0x%x, %d\n", data, *(uint8_t*)data );
82 void thread_handler2 (
void* data) {
84 rs232_print_p (RS232_PORT_1, PSTR (
"Thread 2. Data: "));
85 rs232_printf (RS232_PORT_1,
"0x%x, %d\n", data, *(uint8_t*)data );
91 PROCESS(contiki_stk501_main_init_process,
"Contiki STK501 init process");
115 static uint8_t d1=1, d2=2, d3=3;
124 asm volatile (
"clr r1");
141 rs232_print_p (RS232_PORT_1, PSTR (
"Initialized.\n"));
144 mt_start (&threads[0], thread_handler1, &d1);
145 mt_start (&threads[1], thread_handler2, &d2);
146 mt_start (&threads[2], thread_handler2, &d3);
157 for (i=0; i<3; ++i) {