|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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);
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
void shellInit(void)
Shell manager initialization.
void modeAlternate(void(*funcp)(uint8_t c, uint32_t mode), uint32_t mode)
thread_t * shellCreateStatic(const ShellConfig *scp, void *wsp, size_t size, tprio_t prio)
Spawns a new shell.
void() shellcmd_f(BaseSequentialStream *chp, int argc, const char *const argv[])
Command handler function type.
const ShellCommand * sc_commands
Shell extra commands table.
Custom command entry type.
event_source_t shell_terminated
Shell termination event source.
shellcmd_f * sc_function
Command function.
BaseSequentialStream * sc_channel
I/O channel associated to the shell.
const char * sc_name
Command name.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
bool shellGetLine(BaseSequentialStream *chp, char *line, unsigned size)