I don't see any examples (or much documentation for that matter) on the FreeRTOS version of the LPUART driver. I've got the driver setup and can transmit and receive data. What I'm not understanding though, is how do I know when there is data to receive, without calling the LPUART_RTOS_Receive function.
The problem is that the LPUART_RTOS_Receive waits/sleeps forever at
ev = xEventGroupWaitBits(handle->rx_event, RTOS_UART_COMPLETE, pdTRUE, pdFALSE, portMAX_DELAY);
until is receives the number of bytes originally requested (which is signaled through the interrupt).
What if I don't want to block forever? Obviously I can modify the driver, but what is the intended use of this driver? An example would be nice.