Events implementation

Hi everybody, I’m starting to use FreeRTOS.I use ATmega128 port on my own hardware.Everything works perfect. But I would like to use events to inform some tasks it has to do something. Could anyone point me how to implement and use events?

Events implementation

What type of ‘event’? You can use queues and semaphores for intertask, and ISR to task communication. 

Events implementation

I mean binary flag – "something hapened in task A" so tasks B,C and D should do some actions.

Events implementation

The Queue is used for that. I guess I haven’t seen something where multiple tasks could register as listeners, but at least you have the source. A quick solution is that the source task writes to a different event queue for each task that handles an event.