From 8f3f907100909218f78648e4ad9dc3a2916777c3 Mon Sep 17 00:00:00 2001 From: Jonathan Struebel Date: Sun, 17 Apr 2016 15:51:44 -0700 Subject: [KINETIS] Added shell demo for FRDM-KL25Z --- demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h | 139 +++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h (limited to 'demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h') diff --git a/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h b/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h new file mode 100644 index 0000000..3568e3a --- /dev/null +++ b/demos/KINETIS/RT-FREEDOM-KL25Z-SHELL/shellconf.h @@ -0,0 +1,139 @@ +/* + ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +/** + * @file shell.h + * @brief Simple CLI shell header. + * + * @addtogroup SHELL + * @{ + */ + +#ifndef SHELLCONF_H +#define SHELLCONF_H + +/** + * @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. + */ +#if !defined(SHELL_MAX_ARGUMENTS) || defined(__DOXYGEN__) +#define SHELL_MAX_ARGUMENTS 4 +#endif + +/** + * @brief Shell maximum command history. + */ +#if !defined(SHELL_MAX_HIST_BUFF) || defined(__DOXYGEN__) +#define SHELL_MAX_HIST_BUFF 8 * SHELL_MAX_LINE_LENGTH +#endif + +/** + * @brief Enable shell command history + */ +#if !defined(SHELL_USE_HISTORY) || defined(__DOXYGEN__) +#define SHELL_USE_HISTORY TRUE +#endif + +/** + * @brief Enable shell command completion + */ +#if !defined(SHELL_USE_COMPLETION) || defined(__DOXYGEN__) +#define SHELL_USE_COMPLETION TRUE +#endif + +/** + * @brief Shell Maximum Completions (Set to max commands with common prefix) + */ +#if !defined(SHELL_MAX_COMPLETIONS) || defined(__DOXYGEN__) +#define SHELL_MAX_COMPLETIONS 8 +#endif + +/** + * @brief Enable shell escape sequence processing + */ +#if !defined(SHELL_USE_ESC_SEQ) || defined(__DOXYGEN__) +#define SHELL_USE_ESC_SEQ TRUE +#endif + +/*===========================================================================*/ +/* Shell command settings */ +/*===========================================================================*/ + +/** + * @brief Enable shell exit command + */ +#if !defined(SHELL_CMD_EXIT_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_EXIT_ENABLED TRUE +#endif + +/** + * @brief Enable shell info command + */ +#if !defined(SHELL_CMD_INFO_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_INFO_ENABLED TRUE +#endif + +/** + * @brief Enable shell echo command + */ +#if !defined(SHELL_CMD_ECHO_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_ECHO_ENABLED TRUE +#endif + +/** + * @brief Enable shell systime command + */ +#if !defined(SHELL_CMD_SYSTIME_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_SYSTIME_ENABLED TRUE +#endif + +/** + * @brief Enable shell mem command + */ +#if !defined(SHELL_CMD_MEM_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_MEM_ENABLED TRUE +#endif + +/** + * @brief Enable shell threads command + */ +#if !defined(SHELL_CMD_THREADS_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_THREADS_ENABLED TRUE +#endif + +/** + * @brief Enable shell test command + */ +#if !defined(SHELL_CMD_TEST_ENABLED) || defined(__DOXYGEN__) +#define SHELL_CMD_TEST_ENABLED TRUE +#endif + +/** + * @brief Define test thread working area + */ +#if !defined(SHELL_CMD_TEST_WA_SIZE) || defined(__DOXYGEN__) +#define SHELL_CMD_TEST_WA_SIZE THD_WORKING_AREA_SIZE(256) +#endif + +#endif /* SHELLCONF_H */ + +/** @} */ -- cgit v1.2.3