Added an option to change the shell thread name.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12948 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
c05c319615
commit
0fd433eda0
|
@ -340,6 +340,10 @@ THD_FUNCTION(shellThread, p) {
|
||||||
char *lp, *cmd, *tokp, line[SHELL_MAX_LINE_LENGTH];
|
char *lp, *cmd, *tokp, line[SHELL_MAX_LINE_LENGTH];
|
||||||
char *args[SHELL_MAX_ARGUMENTS + 1];
|
char *args[SHELL_MAX_ARGUMENTS + 1];
|
||||||
|
|
||||||
|
#if !defined(_CHIBIOS_NIL_)
|
||||||
|
chRegSetThreadName(SHELL_THREAD_NAME);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if SHELL_USE_HISTORY == TRUE
|
#if SHELL_USE_HISTORY == TRUE
|
||||||
*(scfg->sc_histbuf) = 0;
|
*(scfg->sc_histbuf) = 0;
|
||||||
ShellHistory hist = {
|
ShellHistory hist = {
|
||||||
|
|
|
@ -106,6 +106,13 @@
|
||||||
#define SHELL_NEWLINE_STR "\r\n"
|
#define SHELL_NEWLINE_STR "\r\n"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Default shell thread name.
|
||||||
|
*/
|
||||||
|
#if !defined(SHELL_THREAD_NAME) || defined(__DOXYGEN__)
|
||||||
|
#define SHELL_THREAD_NAME "shell"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Derived constants and error checks. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** Next ***
|
*** Next ***
|
||||||
|
- NEW: Added an option to change the shell thread name.
|
||||||
- NEW: Made bus acquire/release functions in SNOR driver public.
|
- NEW: Made bus acquire/release functions in SNOR driver public.
|
||||||
- NEW: Added mcuconf.h generator for STM32L052/L053/L062/L063.
|
- NEW: Added mcuconf.h generator for STM32L052/L053/L062/L063.
|
||||||
- NEW: Added mcuconf.h generator for STM32L072/L073.
|
- NEW: Added mcuconf.h generator for STM32L072/L073.
|
||||||
|
|
Loading…
Reference in New Issue