41 #include "dev/watchdog.h"
42 #include "sys/node-id.h"
50 PROCESS(burn_process,
"Burn node id");
51 AUTOSTART_PROCESSES(&burn_process);
63 #warning "***** BURNING NODE ID"
64 printf(
"Burning node id %d\n", NODEID);
68 printf(
"Restored node id %d\n", node_id);
70 #error "burn-nodeid must be compiled with nodeid=<the ID of the node>"
72 printf(
"Restored node id %d\n", node_id);
int etimer_expired(struct etimer *et)
Check if an event timer has expired.
#define PROCESS_WAIT_UNTIL(c)
Wait for a condition to occur.
#define LEDS_RED
LED1 (Red) -> PC0.
#define PROCESS_BEGIN()
Define the beginning of a process.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
void watchdog_stop(void)
In watchdog mode, the WDT can not be stopped.
#define PROCESS_WAIT_EVENT()
Wait for an event to be posted to the process.
#define PROCESS(name, strname)
Declare a process.
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
#define CLOCK_SECOND
A second, measured in system clock time.