123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- /*
- ChibiOS - Copyright (C) 2006..2018 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_cmd.h
- * @brief Simple CLI shell common commands header.
- *
- * @addtogroup SHELL
- * @{
- */
- #ifndef SHELLCMD_H
- #define SHELLCMD_H
- /*===========================================================================*/
- /* Module constants. */
- /*===========================================================================*/
- /*===========================================================================*/
- /* Module pre-compile time settings. */
- /*===========================================================================*/
- #if !defined(SHELL_CMD_EXIT_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_EXIT_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_INFO_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_INFO_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_ECHO_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_ECHO_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_SYSTIME_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_SYSTIME_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_MEM_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_MEM_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_THREADS_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_THREADS_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_TEST_ENABLED) || defined(__DOXYGEN__)
- #define SHELL_CMD_TEST_ENABLED TRUE
- #endif
- #if !defined(SHELL_CMD_TEST_WA_SIZE) || defined(__DOXYGEN__)
- #define SHELL_CMD_TEST_WA_SIZE THD_WORKING_AREA_SIZE(256)
- #endif
- /*===========================================================================*/
- /* Derived constants and error checks. */
- /*===========================================================================*/
- #if (SHELL_CMD_MEM_ENABLED == TRUE) && (CH_CFG_USE_MEMCORE == FALSE)
- #error "SHELL_CMD_MEM_ENABLED requires CH_CFG_USE_MEMCORE"
- #endif
- #if (SHELL_CMD_MEM_ENABLED == TRUE) && (CH_CFG_USE_HEAP == FALSE)
- #error "SHELL_CMD_MEM_ENABLED requires CH_CFG_USE_HEAP"
- #endif
- #if (SHELL_CMD_THREADS_ENABLED == TRUE) && (CH_CFG_USE_REGISTRY == FALSE)
- #error "SHELL_CMD_THREADS_ENABLED requires CH_CFG_USE_REGISTRY"
- #endif
- /*===========================================================================*/
- /* Module data structures and types. */
- /*===========================================================================*/
- /*===========================================================================*/
- /* Module macros. */
- /*===========================================================================*/
- /*===========================================================================*/
- /* External declarations. */
- /*===========================================================================*/
- #if !defined(__DOXYGEN__)
- extern const ShellCommand shell_local_commands[];
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef __cplusplus
- }
- #endif
- /*===========================================================================*/
- /* Module inline functions. */
- /*===========================================================================*/
- #endif /* SHELLCMD_H */
- /** @} */
|