Advertisement

在FreeRTOS-Plus-CLI中创建自定义命令行

阅读量:

第一作者:姚伟民
在完成上一篇内容的添加之后,接下来需要引入一个自定义的命令行功能。实际上,添加命令行的格式操作较为简便,只需依照示例中的数据结构定义新增一个结构体,并在相应的注册函数中进行注册处理,即可实现该命令行功能的调用与使用。

第一步:添加自己的结构体

复制代码
    /* 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.  Should star

全部评论 (0)

还没有任何评论哟~