Events implementation

Posted by jiri on August 24, 2005
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?

RE: Events implementation

Posted by Nobody/Anonymous on August 24, 2005
What type of 'event'?

You can use queues and semaphores for intertask, and ISR to task communication.

RE: Events implementation

Posted by jiri on August 24, 2005
I mean binary flag - "something hapened in task A" so tasks B,C and D should do some actions.

RE: Events implementation

Posted by Jeff Smith on September 13, 2005
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.