45 PROCESS(shell_powertrace_process,
"powertrace");
48 "powertrace [interval]: turn powertracing on or off, with reporting interval <interval>",
49 &shell_powertrace_process);
60 if(data ==
NULL || interval == 0) {
65 sprintf(buf,
"%d", interval);
66 shell_output_str(&powertrace_command,
"Starting powertrace with interval ", buf);
72 shell_powertrace_init(
void)
75 powertrace_sniff(POWERTRACE_ON);
Header file for the powertrace application
void shell_output_str(struct shell_command *c, char *text1, const char *text2)
Output strings from a shell command.
#define PROCESS_BEGIN()
Define the beginning of a process.
Main header file for the Contiki shell
#define NULL
The null pointer.
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
unsigned long shell_strtolong(const char *str, const char **retstr)
Convert a string to a number.
void shell_register_command(struct shell_command *c)
Register a command with the shell.
#define PROCESS(name, strname)
Declare a process.
#define SHELL_COMMAND(name, command, description, process)
Define a shell command.
#define CLOCK_SECOND
A second, measured in system clock time.