添加参数设置和自检命令

This commit is contained in:
andy
2023-06-14 22:15:00 +08:00
parent 2e705692b7
commit d3c3f120e7
14 changed files with 353 additions and 56 deletions

View File

@@ -16,7 +16,7 @@ struct dev_struct{
typedef struct __uart_def{
const char *name;
int (*init)(struct __uart_def *u);
int (*init)(struct __uart_def *u,int bsp);
int (*deinit)(struct __uart_def *u);
int (*set_irq)(struct __uart_def *u,void (*irq)(void *t,uint8_t d),void *t);
int (*set_end_irq)(struct __uart_def *u,uint8_t *rx_buff,int rx_buff_size,