system
(system)
August 24, 2005, 10:23am
1
desin wrote on Wednesday, 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?
system
(system)
August 24, 2005, 11:44am
2
nobody wrote on Wednesday, August 24, 2005 :
What type of ‘event’?
You can use queues and semaphores for intertask, and ISR to task communication.
system
(system)
August 24, 2005, 2:59pm
3
desin wrote on Wednesday, August 24, 2005 :
I mean binary flag - "something hapened in task A" so tasks B,C and D should do some actions.
system
(system)
September 13, 2005, 3:51pm
4
imajeff wrote on Tuesday, 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.