I want to transmit some messages, which takes time (USART …). I post one message after the other using a queue and after the first post I tell the hardware to start transmitting. After the hardware has sent the first message, the next message is taken and so on, in the meantime more messages will be created and put in the queue.
After creating all messages, I know the number, I have to wait for the end of transmission of the last message. Not the end of any message or the beginning of the transmission of the last message or whatever.
So, waiting until the queue runs dry isn’t the correct way.
Has anybody some idea to manage this situation in some elegant way with FreeRTOS?
With best regards