From d5f3e4668feb46d05fdf1719b84cd02f64d7deed Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 23 Oct 2016 09:25:29 +0000 Subject: Shell improvements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9870 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell/shell.h | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'os/various/shell/shell.h') 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 @@ -33,16 +33,6 @@ /* Module constants. */ /*===========================================================================*/ -/** - * @brief Prompt string - */ -#define SHELL_PROMPT_STR "ch> " - -/** - * @brief Newline string - */ -#define SHELL_NEWLINE_STR "\r\n" - /** * @brief Shell History Constants */ @@ -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. */ /*===========================================================================*/ -- cgit v1.2.3