aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/shell.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-23 15:48:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-09-23 15:48:55 +0000
commitc39d08fc2ae9c43f73114e24292520306bddde19 (patch)
tree7bae8c26f8e20566aba8755f0cd3bb34d2ac4f87 /os/various/shell.h
parentd2721c36a6d74fd18de7e4de95fdd166083e343e (diff)
downloadChibiOS-c39d08fc2ae9c43f73114e24292520306bddde19.tar.gz
ChibiOS-c39d08fc2ae9c43f73114e24292520306bddde19.tar.bz2
ChibiOS-c39d08fc2ae9c43f73114e24292520306bddde19.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3384 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/shell.h')
-rw-r--r--os/various/shell.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/os/various/shell.h b/os/various/shell.h
index 2946df947..53ddd48e3 100644
--- a/os/various/shell.h
+++ b/os/various/shell.h
@@ -30,33 +30,26 @@
#define _SHELL_H_
/**
- * @brief Shell maximum input line length.
+ * @brief Shell maximum input line length.
*/
#if !defined(SHELL_MAX_LINE_LENGTH) || defined(__DOXYGEN__)
#define SHELL_MAX_LINE_LENGTH 64
#endif
/**
- * @brief Shell maximum arguments per command.
+ * @brief Shell maximum arguments per command.
*/
#if !defined(SHELL_MAX_ARGUMENTS) || defined(__DOXYGEN__)
#define SHELL_MAX_ARGUMENTS 4
#endif
/**
- * @brief Enforces the use of iprintf() on newlib.
- */
-#if !defined(SHELL_USE_IPRINTF) || defined(__DOXYGEN__)
-#define SHELL_USE_IPRINTF TRUE
-#endif
-
-/**
- * @brief Command handler function type.
+ * @brief Command handler function type.
*/
typedef void (*shellcmd_t)(BaseChannel *chp, int argc, char *argv[]);
/**
- * @brief Custom command entry type.
+ * @brief Custom command entry type.
*/
typedef struct {
const char *sc_name; /**< @brief Command name. */
@@ -64,7 +57,7 @@ typedef struct {
} ShellCommand;
/**
- * @brief Shell descriptor type.
+ * @brief Shell descriptor type.
*/
typedef struct {
BaseChannel *sc_channel; /**< @brief I/O channel associated
@@ -73,7 +66,9 @@ typedef struct {
table. */
} ShellConfig;
+#if !defined(__DOXYGEN__)
extern EventSource shell_terminated;
+#endif
#ifdef __cplusplus
extern "C" {