19#define SHELL_MAX_PROGRAMS 10
20#define SHELL_PROGRAM_NAME_LENGTH 20
22#define CMD_CLEAR "clear"
24extern uint32_t __shell_vector_start;
25extern uint32_t __shell_vector_end;
30 char name[SHELL_PROGRAM_NAME_LENGTH];
37 void (*help)(
struct Shell *);
38 void (*run)(
struct Shell *, uint8_t *);
39 void (*runTask)(
struct Shell *, uint8_t *);
40 bool (*clear)(
struct Shell *);
41 TaskHandle_t taskHandle;
Struct definition for UART interface.
int Shell_init(Shell *)
Initializes the shell, registering programs from shell vector.
void Shell_help(Shell *)
Displays available shell commands.
bool Shell_clear(Shell *)
Send clear sequence to host terminal.
void Shell_runTask(Shell *, uint8_t *)
Creates a task to run a shell program.
void Shell_run(Shell *, uint8_t *)
Executes a shell program by name.