41 #include "dev/watchdog.h" 46 #include "node-id-z1.h" 52 PROCESS(burn_process,
"Burn node id");
53 AUTOSTART_PROCESSES(&burn_process);
65 #warning "***** BURNING NODE ID" 66 printf(
"Burning node id %d\n", NODEID);
70 printf(
"Restored node id %d\n", node_id);
72 #error "burn-nodeid must be compiled with nodeid=<the ID of the node>" 74 printf(
"Restored node id %d\n", node_id);
#define PROCESS(name, strname)
Declare a process.
#define PROCESS_WAIT_EVENT()
Wait for an event to be posted to the process.
#define PROCESS_BEGIN()
Define the beginning of a process.
#define PROCESS_END()
Define the end of a process.
Node-id (simple 16-bit identifiers) handling.
void leds_on(unsigned char leds)
Turn on multiple LEDs.
void leds_off(unsigned char leds)
Turn off multiple LEDs.
#define CLOCK_SECOND
A second, measured in system clock time.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
int etimer_expired(struct etimer *et)
Check if an event timer has expired.
PROCESS_THREAD(cc2538_rf_process, ev, data)
Implementation of the cc2538 RF driver process.
Header file for the LED HAL.
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
#define PROCESS_WAIT_UNTIL(c)
Wait for a condition to occur.
void watchdog_stop(void)
Stops the WDT such that it won't timeout and cause MCU reset.