添加参数设置和自检命令
This commit is contained in:
@@ -233,7 +233,11 @@ protu_def *protu_creat(uart_def *uart)
|
||||
sprintf(name,"protu_t#%d",count);
|
||||
rt_thread_t rt_t=rt_thread_create(name,protu_run,p,2048,5,20);
|
||||
rt_thread_startup(rt_t);
|
||||
p->uart->init(p->uart);
|
||||
int bsp=sys_param()->uartbsp;
|
||||
if(bsp==9600)
|
||||
p->uart->init(p->uart,9600);
|
||||
else
|
||||
p->uart->init(p->uart,0);
|
||||
//p->uart->set_irq(p->uart,recv_irq,p);
|
||||
p->uart->set_end_irq(p->uart,p->buff,RECV_BUFF_SIZE,recv_end_irq,p);
|
||||
|
||||
|
Reference in New Issue
Block a user