1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00
Letter 1624e4835c 新增 支持在程序中调用接口直接运行命令
新增 支持在程序中调用接口直接运行命令
修复 直接运行未导出命令时,参数错误时的错误处理
2020-07-14 22:15:03 +08:00

26 lines
473 B
C

/**
* @file main.c
* @author Letter (NevermindZZT@gmail.com)
* @brief
* @version 0.1
* @date 2020-07-12
*
* @copyright (c) 2019 Letter
*
*/
#include "shell_port.h"
#include <stdlib.h>
int main(void)
{
userShellInit();
shellTask(&shell);
return 0;
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0)|SHELL_CMD_TYPE(SHELL_TYPE_CMD_FUNC)|SHELL_CMD_PARAM_NUM(1),
exit, exit, exit);
SHELL_EXPORT_KEY_AGENCY(SHELL_CMD_PERMISSION(0),
0x03000000, exit, exit, 0);