AnsweredAssumed Answered

FreeRTOS: Delaying task while USART_RTOS_Receive gets to required count

Question asked by Marc Bressler on Jul 24, 2018
Latest reply on Jul 25, 2018 by Marc Bressler

So I'm looking to delay a task that calls the asynchronous int USART_RTOS_Receive(usart_rtos_handle_t *handle, uint8_t *buffer, uint32_t length, size_t *received) method until the received count equals the desired length.

 

The function returns immediately and received tells you how many characters were read but I need a blocking version or a version that delays the task until the read is complete because the next part of the task depend on the data being read.

 

Is there a built in way to do this or what would the best way to go about implementing this be?

Outcomes