Part Number: MSP432P401R
Hi,
I use back channel UART for terminal communication in simple command interpreter.
Using SimpleLink SDK (3.30.0.13) , POSIX with TI-RTOS.
My basic routine looks like:
char cmd;
int status;
status = UART_read( h_uart, &cmd, sizeof(cmd)); // blocks and returns only when char has arrived!!
Problem:
UART_read(..) blocks and only return, when a character has arrived!
In am looking for a function that gives me information, if a new character in UART has still arrived.
Otherwise I can perform something else.
So I am looking for something like this dummy code
if (UART_IsNewChar() == true)
status = UART_read( h_uart, &cmd, sizeof(cmd));
else
DoSomethingElse();
Any idea how to solve this issue?