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:
Giovanni Di Sirio 2019-08-11 07:08:25 +00:00
parent c05c319615
commit 0fd433eda0
3 changed files with 12 additions and 0 deletions

View File

@ -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 = {

View File

@ -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. */
/*===========================================================================*/

View File

@ -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.