synchronous calls in FreeRTOS between tasks

bodev wrote on Friday, January 16, 2009:

Hi all,

bodev wrote on Friday, January 16, 2009:

Hi all,
    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
Bo

woops_ wrote on Friday, January 16, 2009:

like a remote procedure call?

bodev wrote on Friday, January 16, 2009:

yes, exactly…

Thanks
Bo