Explanation for Events needed
Posted: Tue Jul 26, 2011 8:12 am
Hello
i am just trying to get, how the Eventsystem in ChibiOS is working. From what i found is, there are:
1. Eventsources
2. Eventlistener
3. Threads
The connection between a Eventsource and a Eventlistender is done by chEvtRegisterMask(...); wich will connect a Eventlistener with the specified Bitmask to a Eventsources.
If the Eventsources fires, the Eventlistener will be notified and set his Bistmask.
But here my problem starts: How is the Eventlistener connected to a specific Thread? Thats something i havent't find out yet. A Bit of explanation would be hellpfull, or a smal snippet of Code
Mfg
ClaM
i am just trying to get, how the Eventsystem in ChibiOS is working. From what i found is, there are:
1. Eventsources
2. Eventlistener
3. Threads
The connection between a Eventsource and a Eventlistender is done by chEvtRegisterMask(...); wich will connect a Eventlistener with the specified Bitmask to a Eventsources.
If the Eventsources fires, the Eventlistener will be notified and set his Bistmask.
But here my problem starts: How is the Eventlistener connected to a specific Thread? Thats something i havent't find out yet. A Bit of explanation would be hellpfull, or a smal snippet of Code
Mfg
ClaM