14 #ifndef SHELL_DYNAMIC_ENTRIES_NUMBER
15 #define SHELL_DYNAMIC_ENTRIES_NUMBER 0U
19 #define shellCreate(C, S, P) shellCreateFromHeap(C, S, P)
24 typedef void (
shellcmd_f)(BaseSequentialStream *chp,
int argc,
const char *
const argv[]);
45 #if !defined(__DOXYGEN__)
53 #if CH_CFG_USE_HEAP && CH_CFG_USE_DYNAMIC
54 thread_t *shellCreateFromHeap(
const ShellConfig *scp,
size_t size, tprio_t prio);
57 size_t size, tprio_t prio);
58 #if SHELL_DYNAMIC_ENTRIES_NUMBER
61 bool shellGetLine(BaseSequentialStream *chp,
char *line,
unsigned size);
BaseSequentialStream * sc_channel
I/O channel associated to the shell.
const ShellCommand * sc_commands
Shell extra commands table.
shellcmd_f * sc_function
Command function.
const char * sc_name
Command name.
void shellInit(void)
Shell manager initialization.
event_source_t shell_terminated
Shell termination event source.
void() shellcmd_f(BaseSequentialStream *chp, int argc, const char *const argv[])
Command handler function type.
void modeAlternate(void(*funcp)(uint8_t c, uint32_t mode), uint32_t mode)
bool shellGetLine(BaseSequentialStream *chp, char *line, unsigned size)
thread_t * shellCreateStatic(const ShellConfig *scp, void *wsp, size_t size, tprio_t prio)
Spawns a new shell.
Custom command entry type.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.