34 #include <avr/pgmspace.h> 
   36 #include <avr/eeprom.h> 
   40 #include "loader/symbols-def.h" 
   41 #include "loader/symtab.h" 
   43 #if RF230BB           //radio driver using contiki core mac 
   44 #include "radio/rf230bb/rf230bb.h" 
   48 #else                 //radio driver using Atmel/Cisco 802.15.4'ish MAC 
   51 #include "sicslowmac.h" 
   57 #include "contiki-net.h" 
   58 #include "contiki-lib.h" 
   60 #include "dev/rs232.h" 
   65 #include "sicslowmac.h" 
   74 PROCESS(rcb_leds, 
"RCB leds process");
 
   77 PROCINIT(&etimer_process, &tcpip_process, &rcb_leds);
 
   79 PROCINIT(&etimer_process, &mac_process, &tcpip_process, &rcb_leds);
 
   83 uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
 
   89 #define LEDOff(x) (PORTE |= (x)) 
   90 #define LEDOn(x) (PORTE &= ~(x)) 
   98              USART_PARITY_NONE | USART_STOP_BITS_1 | USART_DATA_BITS_8);
 
  101   rs232_redirect_stdout(RS232_PORT_1);
 
  103   DDRE |= LED1 | LED2 | LED3;
 
  114   if((error = icmp6_new(
NULL)) == 0) {
 
  154   autostart_start(autostart_processes);
 
  156   printf_P(PSTR(
"\n********BOOTING CONTIKI*********\n"));
 
  158   printf_P(PSTR(
"System online.\n"));
 
void rs232_init(void)
Initialize the RS232 module. 
    A MAC framer for IEEE 802.15.4  
802.15.4 frame creation and parsing functions 
#define PROCESS_BEGIN()
Define the beginning of a process. 
    Header file for the managed memory allocator  
Example glue code between the existing MAC code and the Contiki mac interface. 
#define NULL
The null pointer. 
void clock_init(void)
Initialize the clock library. 
int main(void)
This is main... 
void process_init(void)
Initialize the process module. 
#define PROCESS_THREAD(name, ev, data)
Define the body of a process. 
#define PROCESS_END()
Define the end of a process. 
    Header file for the 6lowpan implementation     (RFC4944 and draft-hui-6lowpan-hc-01)  ...
Generic serial I/O process header filer. 
#define ICMP6_ECHO_REQUEST
Echo request. 
#define PROCESS(name, strname)
Declare a process. 
#define PROCESS_YIELD()
Yield the currently running process. 
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer. 
int process_run(void)
Run the system once - call poll handlers and process one event. 
#define CLOCK_SECOND
A second, measured in system clock time.