Part Number:CC1310
1.初始化时定义
myuartParams.writeMode = UART_MODE_CALLBACK;
myuartParams.writeCallback = hal_uart_Callback_Write;
2.调用TX发送任务函数如下:
{
UART_readCancel(myuart);
UART_writeCancel(myuart);
ReadWriteflag=UART_WRITESTATE;
UART_write(myuart, head, len);
}
3.数据一直发送,一直在串口回调函数里。(
hal_uart_Callback_Write
)
Alex Zhang:
您好!这边给您提供UART的驱动手册指南,您可以看一下demo,并且进行引荐。
dev.ti.com/…/_u_a_r_t_8h.html