/*! * \file shell.h * * \brief The head file of shell.c * * \copyright Revised BSD License, see section \ref LICENSE. * * \code * * _ __ _ ________ _ * | |/ /(_)___ / ____/ /_ (_)___ * | // / __ \/ / / __ \/ / __ \ * / |/ / / / / /___/ / / / / /_/ / * /_/|_/_/_/ /_/\____/_/ /_/_/ .___/ * /_/ * (C) 2022-2025 XinChip * * \endcode * * \author ( XinChip ) Alex-J * * \author ( XinChip ) */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __SHELL_H__ #define __SHELL_H__ /*----------------------------------------------------------------------------------- INCLUDE HEADE FILES ------------------------------------------------------------------------------------*/ #include #include #include #include "xc6xxx.h" #include "shell_handler.h" /*------------------------------------------------------------------------------------ Macros -------------------------------------------------------------------------------------*/ #define XC_DATA_LEN 64U /*------------------------------------------------------------------------------------ TypeDef -------------------------------------------------------------------------------------*/ typedef enum { XC_SHELL_CMD_RECV = 0, XC_SHELL_CMD_PROC } eXC_Shell_Proc_state; typedef struct { char *cmd; eXC_Cmd_State (*fn)(eCMD_Type opt, int srgc, char *srgv[]); } XC_Cmd_Table_t; /*------------------------------------------------------------------------------------ Global Variables -------------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------------ Exported Functions -------------------------------------------------------------------------------------*/ void xc_shell_test_case(void); #ifdef __cplusplus } #endif #endif /* __SHELL_H__ */