1 Star 0 Fork 12

northqd/cmd-parser

forked from 杰杰/cmd-parser 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.c 796 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* @Author: jiejie
* @Github: https://github.com/jiejieTop
* @Date: 2019-12-13 19:15:30
* @LastEditTime: 2019-12-17 13:38:49
* @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
*/
#include "cmd.h"
void test1_cmd(void)
{
printf("test1_cmd\n");
}
void test2_cmd(void)
{
printf("test2_cmd\n");
}
void test3_cmd(void)
{
printf("test3_cmd\n");
}
REGISTER_CMD(test1, test1_cmd);
REGISTER_CMD(test2, test2_cmd);
REGISTER_CMD(test3, test3_cmd);
int main(void)
{
cmd_init();
while (1)
{
cmd_parsing("_list");
cmd_parsing("test1");
cmd_parsing("test2");
cmd_parsing("test3");
delay(1000);
}
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/northqd2018/cmd-parser.git
[email protected]:northqd2018/cmd-parser.git
northqd2018
cmd-parser
cmd-parser
master

搜索帮助