shell.h File Reference

Shell interface definition. More...

#include <stdint.h>
#include "kernel_defines.h"
+ Include dependency graph for shell.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  shell_command_t
 A single command in the list of the supported commands. More...
 

Macros

#define SHELL_DEFAULT_BUFSIZE   (128)
 Default shell buffer size (maximum line length shell can handle)
 

Typedefs

typedef int(* shell_command_handler_t) (int argc, char **argv)
 Protype of a shell callback handler. More...
 
typedef struct shell_command_t shell_command_t
 A single command in the list of the supported commands. More...
 

Functions

void shell_run (const shell_command_t *commands, char *line_buf, int len) NORETURN
 Start a shell. More...