16#define printScreen(...) {chprintf (chpg, __VA_ARGS__); chprintf (chpg, "\r\n");}
24 const char *
const argv[]);
40#if SHELL_DYNAMIC_ENTRIES_NUMBER
63 const char *name =
argv[0];
208 case 0x415 :
mcu_devid_str =
"STM32L475xx/476xx/486xx devices";
222 case 0x411 :
mcu_devid_str =
"STM32F2xx and *EARLY* STM32F40x and 41x";
266 case 0x446 :
mcu_devid_str =
"STM32F303xD/E and STM32F398xE";
279#ifdef CH_COMPILER_NAME
282#ifdef PORT_COMPILER_NAME
286#ifdef CH_ARCHITECTURE_NAME
289#ifdef PORT_ARCHITECTURE_NAME
294#ifdef CH_CORE_VARIANT_NAME
297#ifdef PORT_CORE_VARIANT_NAME
301#pragma GCC diagnostic push
302#pragma GCC diagnostic ignored "-Wdouble-promotion"
304#pragma GCC diagnostic pop
324#if (!defined STM32_USE_REVISION_A_FIX) || (STM32_USE_REVISION_A_FIX == 0)
326 chprintf(
lchp,
"Chip Revision: %s REV '%c' PLEASE define STM32_USE_REVISION_A_FIX in mcuconf.h !!\r\n",
396#if CH_CFG_USE_HEAP && CH_CFG_USE_DYNAMIC
417#if SHELL_DYNAMIC_ENTRIES_NUMBER
433 while ((
lcp->sc_function !=
NULL) &&
442 lcp->sc_function =
sc.sc_function;
static pthread_mutex_t mut
shellcmd_f * sc_function
Command function.
const char * sc_name
Command name.
static AltCbParam altCbParam
void shellInit(void)
Shell manager initialization.
event_source_t shell_terminated
Shell termination event source.
static const ShellCommand localCommands[]
Array of the default and dynamic commands.
void microrlExecute(int argc, const char *const *argv)
const char ** microrlComplet(int argc, const char *const *argv)
static THD_FUNCTION(shell_thread, p)
Shell thread function.
static void cmd_info(BaseSequentialStream *lchp, int argc, const char *const argv[])
#define SHELL_DYNAMIC_ENTRIES_NUMBER
static BaseSequentialStream * chpg
void microrlPrint(const char *str)
static void usage(BaseSequentialStream *lchp, char *p)
void modeAlternate(void(*funcp)(uint8_t c, uint32_t mode), uint32_t mode)
void(* altFunc)(uint8_t c, uint32_t mode)
thread_t * shellCreateStatic(const ShellConfig *scp, void *wsp, size_t size, tprio_t prio)
Spawns a new shell.
static const char * complWorlds[64]
static const ShellCommand * staticCommands
Custom command entry type.
void chprintf(BaseSequentialStream *lchp, const char *fmt,...)
uint8_t msg[10]
Buffer used for general comunication over SPI (out buffer)
void microrl_set_complete_callback(microrl_t *pThis, const char **(*get_completion)(int, const char *const *))
void microrl_init(microrl_t *pThis, void(*print)(const char *))
void microrl_insert_char(microrl_t *pThis, int ch)
void microrl_set_sigint_callback(microrl_t *pThis, void(*sigintf)(void))
void microrl_set_execute_callback(microrl_t *pThis, void(*execute)(int, const char *const *))
Mini printf-like functionality.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.