55 PROCESS(serial_shell_process,
"Contiki serial shell");
72 for(i = 0; i < len1; i++) {
73 printf(
"%c", text1[i]);
75 for(i = 0; i < len2; i++) {
76 printf(
"%c", text2[i]);
108 serial_shell_init(
void)
void shell_prompt(char *str)
Print a prompt.
linkaddr_t linkaddr_node_addr
The Rime address of the node.
void shell_init(void)
Initialize the shell.
#define PROCESS_BEGIN()
Define the beginning of a process.
Main header file for the Contiki shell
#define NULL
The null pointer.
void shell_input(char *commandline, int commandline_len)
Send a line of input to the shell.
Header file for the Rime stack
#define PROCESS_THREAD(name, ev, data)
Define the body of a process.
#define PROCESS_END()
Define the end of a process.
Generic serial I/O process header filer.
#define PROCESS_WAIT_EVENT_UNTIL(c)
Wait for an event to be posted to the process, with an extra condition.
process_event_t serial_line_event_message
Event posted when a line of input has been received.
#define PROCESS(name, strname)
Declare a process.
void process_start(struct process *p, process_data_t data)
Start a process.
void shell_default_output(const char *text1, int len1, const char *text2, int len2)
Print a line of output from the shell.
void shell_exit(void)
Request shell exit.