43 #include "dev/watchdog.h"
49 PROCESS(shell_reboot_process,
"reboot");
52 "reboot: reboot the system",
53 &shell_reboot_process);
64 "Rebooting the node in four seconds...",
"");
84 shell_reboot_init(
void)
int etimer_expired(struct etimer *et)
Check if an event timer has expired.
#define PROCESS_WAIT_UNTIL(c)
Wait for a condition to occur.
void shell_output_str(struct shell_command *c, char *text1, const char *text2)
Output strings from a shell command.
#define LEDS_RED
LED1 (Red) -> PC0.
#define PROCESS_BEGIN()
Define the beginning of a process.
Main header file for the Contiki shell
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
#define LEDS_GREEN
LED3 (Green) -> PC2.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
#define PROCESS_EXITHANDLER(handler)
Specify an action when a process exits.
void shell_register_command(struct shell_command *c)
Register a command with the shell.
#define PROCESS(name, strname)
Declare a process.
void etimer_reset(struct etimer *et)
Reset an event timer with the same interval as was previously set.
void etimer_set(struct etimer *et, clock_time_t interval)
Set an event timer.
#define SHELL_COMMAND(name, command, description, process)
Define a shell command.
#define CLOCK_SECOND
A second, measured in system clock time.