Part Number: AM5728
Tool/software: TI-RTOS
Hi
I am using UART_readPolling function while reading uart data. But UART_readPolling will not return until size data was read to the UART so i need to use UART_CMD_GETRXCOUNT in the UART_control function before UART_readPolling. However in this case this function always return 0.
I am currently running on sdk-rtos-am57xx-evm-02.00.02.11. And this is the default code in the uart driver.
static int32_t UART_control_v0 (UART_Handle handle, uint32_t cmd, void *arg) /*for misra warnings*/
{
return(0);
}
Also sdk-rtos-am57xx-evm-04.01.00.06 have same dafult code. As a solution of this problem UARTTiva.c is used. (https://e2e.ti.com/support/embedded/tirtos/f/355/t/422623) Can I use this function in same manner in my own SDK. If not what should i do? I asked these questions because in the case of cutting the uart connection as a result of any problem, task is stop the running and it could not pass the other task.
Regards.
