第一作者:姚伟民
根据上一篇添加完成后,下面就是添加一个自己的命令行。其实添加一个命令行格式很简单,就是按照demo中的数据格式添加一个结构体,然后在注册函数中注册就可以使用了。
第一步:添加自己的结构体
/* The structure that defines command line commands. A command line command should be defined by declaring a const structure of this type. */
typedef struct xCOMMAND_LINE_INPUT
{
const char * const pcCommand; /* The command that causes pxCommandInterpreter to be executed. For example "help". Must be all lower case. */
const char * const pcHelpString; /* String that describes how to use the command. Sh