NIL with events

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
Post Reply
M1Sports20
Posts: 20
Joined: Tue May 28, 2013 2:58 pm

NIL with events

Post by M1Sports20 »

I haven't really deep a deep dive in the code yet, but I was looking into NIL.

Does NIL support registering a thread with an event and then having a thread wait until an event was posted. For example, could I use the sdu driver with NIL.
I noticed events are a little bit different betwen NIL and RT.

Thanks
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: NIL with events

Post by Giovanni »

Hi,

In the NIL OSAL, event sources are implemented with callbacks, from callbacks it is possible to chEvtSignalI() specific threads. There is no registration, it is the callbacks code deciding which threads should be notified, the result is the same.

Giovanni
M1Sports20
Posts: 20
Joined: Tue May 28, 2013 2:58 pm

Re: NIL with events

Post by M1Sports20 »

Thanks for you description.

It works perfectly.
Post Reply