41#include "dev/watchdog.h"
46#include "node-id-z1.h"
52PROCESS(burn_process,
"Burn node id");
53AUTOSTART_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);
PROCESS_THREAD(cc2538_rf_process, ev, data)
Implementation of the cc2538 RF driver process.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
void watchdog_stop(void)
Stops the WDT such that it won't timeout and cause MCU reset.
#define CLOCK_SECOND
A second, measured in system clock time.
int etimer_expired(struct etimer *et)
Check if an event timer has expired.
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
void leds_on(leds_mask_t leds)
Turn on multiple LEDs.
void leds_off(leds_mask_t leds)
Turn off multiple LEDs.
#define PROCESS_WAIT_UNTIL(c)
Wait for a condition to occur.
#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.
Header file for the LED HAL.
Node-id (simple 16-bit identifiers) handling.