NIL with events

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

NIL with events

Postby M1Sports20 » Sat Apr 18, 2015 6:21 am

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: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 times
Contact:

Re: NIL with events

Postby Giovanni » Sat Apr 18, 2015 6:41 am

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

Postby M1Sports20 » Tue Apr 21, 2015 3:37 am

Thanks for you description.

It works perfectly.


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 2 guests