diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-23 09:25:29 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-23 09:25:29 +0000 |
commit | d5f3e4668feb46d05fdf1719b84cd02f64d7deed (patch) | |
tree | 36056eab856882bf8a6c6d2b01a5c621fd242d45 | |
parent | 6de99ec69c1ea92dba73e22d561b2847f8faf7f8 (diff) | |
download | ChibiOS-d5f3e4668feb46d05fdf1719b84cd02f64d7deed.tar.gz ChibiOS-d5f3e4668feb46d05fdf1719b84cd02f64d7deed.tar.bz2 ChibiOS-d5f3e4668feb46d05fdf1719b84cd02f64d7deed.zip |
Shell improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9870 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/various/shell/shell.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/os/various/shell/shell.h b/os/various/shell/shell.h index b155ec99b..241cbb278 100644 --- a/os/various/shell/shell.h +++ b/os/various/shell/shell.h @@ -34,16 +34,6 @@ /*===========================================================================*/
/**
- * @brief Prompt string
- */
-#define SHELL_PROMPT_STR "ch> "
-
-/**
- * @brief Newline string
- */
-#define SHELL_NEWLINE_STR "\r\n"
-
-/**
* @brief Shell History Constants
*/
#define SHELL_HIST_DIR_BK 0
@@ -102,6 +92,20 @@ #define SHELL_USE_ESC_SEQ FALSE
#endif
+/**
+ * @brief Prompt string
+ */
+#if !defined(SHELL_PROMPT_STR) || defined(__DOXYGEN__)
+#define SHELL_PROMPT_STR "ch> "
+#endif
+
+/**
+ * @brief Newline string
+ */
+#if !defined(SHELL_NEWLINE_STR) || defined(__DOXYGEN__)
+#define SHELL_NEWLINE_STR "\r\n"
+#endif
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
|