123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #ifndef SHELLCMD_H
- #define SHELLCMD_H
- #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
- #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
- #if !defined(__DOXYGEN__)
- extern const ShellCommand shell_local_commands[];
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* SHELLCMD_H */
|