i am developing a system based on STM32 CortexM3 and FreeRTOS. in this system there are several components (screen, buttons, etc…) and some application tasks.
Each component is driven by a Task that can take messages (requests) from a queue and execute it on the hardware. i believe this is a common practice.
However, in this case, how the caller (i.e. the main application task) can retrieve a result value?
and what if several tasks can post messages to the same request queue?
Is there any best known method to implement synchrounous calls between tasks?
I hope the question is clear…
thanks a lot