Australis shell interface for user interaction with the system via terminal command line. More...
Data Structures | |
struct | ShellProgramHandle_t |
Struct definition for shell program handle. More... | |
Functions | |
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. | |
Australis shell interface for user interaction with the system via terminal command line.
struct ShellProgramHandle_t |
Struct definition for shell program handle.
Provides the interface for shell programs.
All handles must have a name (case-sensitive) that represents the program as it will be called from the shell interface.
Additionally, the handle must initialise the exec function pointer. This defines the program's entry point and is called by the shell.
Data Fields | ||
---|---|---|
char | name[SHELL_PROGRAM_NAME_LENGTH] | Program name as referenced by the shell. |
void(*)(UART_t *, char *) | exec | Program entry point function pointer. |
void(*)(UART_t *) | help | Program help-string print function. |
void vShellProcess | ( | void * | argument | ) |
bool Shell_run | ( | char * | programName | ) |
Executes a shell program by name.
Parses the program name and flags, then finds and runs the corresponding shell program.
shell | Pointer to the Shell structure containing registered programs. |
programName | Name of the program to execute, with optional flags. |