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
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 #if NETSTACK_CONF_WITH_IPV6 || NETSTACK_CONF_WITH_IPV4
78 PROCINIT(&etimer_process, &tcpip_process, &rcb_leds);
80 PROCINIT(&etimer_process, &rcb_leds);
83 #if NETSTACK_CONF_WITH_IPV6 || NETSTACK_CONF_WITH_IPV4
84 PROCINIT(&etimer_process, &mac_process, &tcpip_process, &rcb_leds);
86 PROCINIT(&etimer_process, &mac_process, &rcb_leds);
91 uint8_t mac_address[8] EEMEM = {0x02, 0x11, 0x22, 0xff, 0xfe, 0x33, 0x44, 0x55};
97 #define LEDOff(x) (PORTE |= (x))
98 #define LEDOn(x) (PORTE &= ~(x))
106 USART_PARITY_NONE | USART_STOP_BITS_1 | USART_DATA_BITS_8);
109 rs232_redirect_stdout(RS232_PORT_1);
111 DDRE |= LED1 | LED2 | LED3;
127 #if NETSTACK_CONF_WITH_IPV6
163 NETSTACK_RADIO.init();
168 NETSTACK_NETWORK.init();
171 autostart_start(autostart_processes);
173 printf_P(PSTR(
"\n********BOOTING CONTIKI*********\n"));
174 printf_P(PSTR(
"System online.\n"));
#define ICMP6_ECHO_REQUEST
Echo request.
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
#define PROCESS_END()
Define the end of a process.
#define PROCESS(name, strname)
Declare a process.
Header file for the managed memory allocator
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
static struct etimer et
NIC receiver thread.
This file contains radio driver code.
void clock_init(void)
Initialize the clock library.
Example glue code between the existing MAC code and the Contiki mac interface.
int process_run(void)
Run the system once - call poll handlers and process one event.
802.15.4 frame creation and parsing functions
#define PROCESS_YIELD()
Yield the currently running process.
void rs232_init(void)
Initialize the RS232 module.
#define CLOCK_SECOND
A second, measured in system clock time.
int main(void)
This is main...
Generic serial I/O process header filer.
void process_init(void)
Initialize the process module.
void ctimer_init(void)
Initialize the callback timer library.
Header file for the 6lowpan implementation (RFC4944 and draft-hui-6lowpan-hc-01) ...
#define PROCESS_BEGIN()
Define the beginning of a process.
A MAC framer for IEEE 802.15.4