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 *args[SHELL_MAX_ARGUMENTS + 1];
|
||||
|
||||
#if !defined(_CHIBIOS_NIL_)
|
||||
chRegSetThreadName(SHELL_THREAD_NAME);
|
||||
#endif
|
||||
|
||||
#if SHELL_USE_HISTORY == TRUE
|
||||
*(scfg->sc_histbuf) = 0;
|
||||
ShellHistory hist = {
|
||||
|
|
|
@ -106,6 +106,13 @@
|
|||
#define SHELL_NEWLINE_STR "\r\n"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Default shell thread name.
|
||||
*/
|
||||
#if !defined(SHELL_THREAD_NAME) || defined(__DOXYGEN__)
|
||||
#define SHELL_THREAD_NAME "shell"
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Derived constants and error checks. */
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** Next ***
|
||||
- NEW: Added an option to change the shell thread name.
|
||||
- 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 STM32L072/L073.
|
||||
|
|
Loading…
Reference in New Issue