Tool/software: Code Composer Studio
Hi,
Is UART_RETURN_NEWLINE issue resolved in SDK 3.10?
I think still its not resolved. Please suggest me an alternative for reading variable no of characters in UART read operation.
Regards,
Pandurang
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
Is UART_RETURN_NEWLINE issue resolved in SDK 3.10?
I think still its not resolved. Please suggest me an alternative for reading variable no of characters in UART read operation.
Regards,
Pandurang
Pandurang,
If you want to read a variable number of characters in the UART_read() operation, you can use the "Return Partial" mode. In this mode, UART_read() will return whatever data it has received after a hardware read timeout has occurred. Note: the hardware read timeout is not the read timeout passed in the UART_Params to UART_open(). To use this mode, you can enable it with a control call:
#include <ti/drivers/uart/UARTCC26XX.h> uart = UART_open(Board_UART0, &uartParams); UART_control(uart, UARTCC26XX_CMD_RETURN_PARTIAL_ENABLE, 0);
BR,
Seong