/* * @Description: * @Version: 1.0 * @Autor: lzc * @Date: 2022-11-02 08:47:08 * @LastEditors: lzc * @LastEditTime: 2024-02-27 09:43:21 */ #ifndef __COM_H #define __COM_H #include "main.h" #ifndef NULL #define NULL 0 #endif #define CFG_CBSIZE 256 /* Console I/O Buffer Size */ #define CFG_MAXARGS 16 /* max number of command args */ #define MAX_COMMAND_LEN 30 /* command length */ /* * Monitor Command Table */ struct cmd_tbl_s { char *name; /* Command Name */ int maxargs; /* maximum number of arguments */ /* Implementation function */ int (*cmd)(struct cmd_tbl_s *, int, char *[]); char *usage; /* Usage message (short) */ }; extern unsigned char version[]; extern unsigned char network[]; extern unsigned char SC_Cmd[]; extern unsigned char Start_Cmd[]; extern unsigned char myReset[5]; extern unsigned char myScan[5]; extern char version_get[]; typedef struct cmd_tbl_s cmd_tbl_t; #endif