56 #include <lib/random.h>
58 #include "dev/button-sensor.h"
59 #include "dev/battery-sensor.h"
60 #include <dev/watchdog.h>
65 #include <debug-uart.h>
75 #define PRINTF(...) printf(__VA_ARGS__)
81 #ifndef UIP_ROUTER_MODULE
82 #ifdef UIP_CONF_ROUTER_MODULE
83 #define UIP_ROUTER_MODULE UIP_CONF_ROUTER_MODULE
85 #define UIP_ROUTER_MODULE rimeroute
88 extern const struct uip_router UIP_ROUTER_MODULE;
95 print_processes(
struct process *
const processes[])
97 PRINTF(
"Starting:\n");
99 while(*processes !=
NULL) {
100 PRINTF(
" '%s'\n", (*processes)->name);
108 main(
int argc,
char **argv)
119 dbg_setup_uart(UART_DEBUG_BAUDRATE);
121 PRINTF(
"Initialising Node: %d\n", SEEDEYE_ID);
134 ENERGEST_ON(ENERGEST_TYPE_CPU);
143 init_net(SEEDEYE_ID);
148 print_processes(autostart_processes);
149 autostart_start(autostart_processes);
151 PRINTF(
"Processes running\n");
168 ENERGEST_OFF(ENERGEST_TYPE_CPU);
169 ENERGEST_ON(ENERGEST_TYPE_LPM);
172 asm volatile(
"wait");
175 ENERGEST_OFF(ENERGEST_TYPE_LPM);
176 ENERGEST_ON(ENERGEST_TYPE_CPU);