收到广播命令时重新初始化定时器,can总线添加发送时长超时判断

This commit is contained in:
ranchuan
2024-01-06 09:54:54 +08:00
parent 78e0ebd0c2
commit b9224f2293
11 changed files with 70 additions and 49 deletions

View File

@@ -22,7 +22,7 @@ typedef struct __uart_def{
int (*set_end_irq)(struct __uart_def *u,uint8_t *rx_buff,int rx_buff_size,
void (*irq)(void *t,uint32_t len),void *t);
int (*read)(struct __uart_def *u,uint8_t *b,int len);
int (*write)(struct __uart_def *u,const uint8_t *b,int len);
int (*write)(struct __uart_def *u,const uint8_t *b,int len,int timeout_ms);
void *private_data;
}uart_def;