编译app自动生成boot.bin文件

This commit is contained in:
ranchuan
2023-06-16 18:07:44 +08:00
parent c59f1738a2
commit a9db668162
11 changed files with 247 additions and 88 deletions

View File

@@ -199,7 +199,10 @@ static void protu_set_endecode_fun(protu_def *u)
static int protu_init(void)
{
const sys_param_def *par=sys_param();
protu_def *protu=protu_creat(dev_get(par->host_if));
const char *name="uart4";
if(strcmp((par->host_if),"utcp")==0)
name="utcp";
protu_def *protu=protu_creat(dev_get(name));
app_variable("protu",protu,0);
// 如果通信接口不是用的串口,则增加一个串口的通信