更新模板到最新状态
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "driver/uart.h"
|
||||
#include "console.h"
|
||||
#include "shell/sh.h"
|
||||
#include "shell/sh_vset.h"
|
||||
#include "os/os.h"
|
||||
#include "drivers/chip/uart.h"
|
||||
#include "config/board_config.h"
|
||||
@@ -83,7 +84,7 @@ static int _port_sh_vprint_fn(const char *format, va_list va)
|
||||
* 1. 执行对应的初始化
|
||||
* 2. 自动默认工作队列中创建一个解析数据的后台
|
||||
*/
|
||||
void shell_start(void)
|
||||
void shell_start(void *arg)
|
||||
{
|
||||
static uint8_t start_flag = 0;
|
||||
|
||||
@@ -94,6 +95,7 @@ void shell_start(void)
|
||||
|
||||
/* 执行 shell 内部的初始化 */
|
||||
sh_register_external(_port_sh_vprint_fn);
|
||||
vset_init(&g_uart_handle_vt100, arg);
|
||||
|
||||
/* 注册系统命令 */
|
||||
extern void soc_shell_register(void);
|
||||
|
||||
Reference in New Issue
Block a user