TI中文支持网
TI专业的中文技术问题搜集分享网站

CC1310: 关闭串口的注意事项

Part Number:CC1310

调用UART_readCancel接口后,是否需要延时一段时间后,再调用UART_close接口去关闭串口?

如果需要延时,那么延时多久合理?

Kevin Qiu1:

我没有看到延时的要求,应该直接就可以关闭

void UART_readCancel	(	UART_Handlehandle	)Function that cancels a UART_read() function call.This function cancels an asynchronous UART_read() operation and is only applicable in UART_MODE_CALLBACK. UART_readCancel() calls the registered RX callback function no matter how many bytes were received. It is the application's responsibility to check the count argument in the callback function and handle cases where only a subset of the bytes were received.Parameters
handle	A UART_Handle returned by UART_open()

赞(0)
未经允许不得转载:TI中文支持网 » CC1310: 关闭串口的注意事项
分享到: 更多 (0)