使用赋码仪主板 app升级,方案升级验证通过

This commit is contained in:
ranchuan
2023-10-11 18:10:06 +08:00
parent ed9e4c0c3e
commit f0f36cf79a
25 changed files with 324 additions and 207 deletions

View File

@@ -369,6 +369,8 @@ static int h_init(uart_def *u,int bsp)
{
h_self_def *h=&g_hself;
if(h->inited) return 0;
// 设置主机接口 int类型0uart1can
app_variable("host_if",&h->dev_index,0);
h->dev[0]=dev_get("uart1");
h->dev[1]=dev_get("can");
h->dev[0]->init(h->dev[0],0);

View File

@@ -386,6 +386,9 @@ static int write_block(uart_def *u,const uint8_t *b,int len)
param_check(u->private_data);
self_data *self=u->private_data;
USART_TypeDef *uart=self->dtb->uart;
if(self->in_send){
return 0;
}
self->in_send=1;
if(1){
dma_tx_init(self,b,len);