17extern Topic *shellTopic;
18void Shell_setUart(
UART_t *uart);
19void pubShellRxInterrupt();
25#define DEFINE_PROGRAM_HANDLE(progName, execFunction, helpFunction) \
26static ShellProgramHandle_t __attribute__((section(".shell_" progName), unused)) \
27*progHandle = &(ShellProgramHandle_t){ \
29 .exec = execFunction, \
30 .help = helpFunction \
34#define SHELL_PROGRAM_NAME_LENGTH 20
37#define SHELL_MSG_LENGTH 255
40#define CMD_CLEAR "\033[3J\033[H\033[2J"
61 char name[SHELL_PROGRAM_NAME_LENGTH];
char name[SHELL_PROGRAM_NAME_LENGTH]
Program name as referenced by the shell.
void(* help)(UART_t *)
Program help-string print function.
void(* exec)(UART_t *, char *)
Program entry point function pointer.
void vShellProcess(void *argument)
bool Shell_run(char *programName)
Executes a shell program by name.
bool Shell_sigint()
Exit any running task and clear to new line.
Struct definition for shell program handle.
Struct definition for UART interface.
Public representation of a Topic.