• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision12948 (tree)
Time2019-08-11 16:08:25
Authorgdisirio

Log Message

Added an option to change the shell thread name.

Change Summary

Incremental Difference

--- trunk/os/various/shell/shell.c (revision 12947)
+++ trunk/os/various/shell/shell.c (revision 12948)
@@ -340,6 +340,10 @@
340340 char *lp, *cmd, *tokp, line[SHELL_MAX_LINE_LENGTH];
341341 char *args[SHELL_MAX_ARGUMENTS + 1];
342342
343+#if !defined(_CHIBIOS_NIL_)
344+ chRegSetThreadName(SHELL_THREAD_NAME);
345+#endif
346+
343347 #if SHELL_USE_HISTORY == TRUE
344348 *(scfg->sc_histbuf) = 0;
345349 ShellHistory hist = {
--- trunk/os/various/shell/shell.h (revision 12947)
+++ trunk/os/various/shell/shell.h (revision 12948)
@@ -106,6 +106,13 @@
106106 #define SHELL_NEWLINE_STR "\r\n"
107107 #endif
108108
109+/**
110+ * @brief Default shell thread name.
111+ */
112+#if !defined(SHELL_THREAD_NAME) || defined(__DOXYGEN__)
113+#define SHELL_THREAD_NAME "shell"
114+#endif
115+
109116 /*===========================================================================*/
110117 /* Derived constants and error checks. */
111118 /*===========================================================================*/
--- trunk/readme.txt (revision 12947)
+++ trunk/readme.txt (revision 12948)
@@ -74,6 +74,7 @@
7474 *****************************************************************************
7575
7676 *** Next ***
77+- NEW: Added an option to change the shell thread name.
7778 - NEW: Made bus acquire/release functions in SNOR driver public.
7879 - NEW: Added mcuconf.h generator for STM32L052/L053/L062/L063.
7980 - NEW: Added mcuconf.h generator for STM32L072/L073.
Show on old repository browser