Mutex support

Discussions and support about ChibiOS/NIL, the almost nil RTOS.
User avatar
tfAteba
Posts: 422
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 55 times
Been thanked: 29 times

Mutex support

Postby tfAteba » Sat Nov 04, 2017 12:07 am

Hello All,

Giovanni, for my selfbalancing robot, I want to use ChibiOS/NIL just for test purpose and see how it react and compare it to the ChibiOS/RT.

For that, I need to build the ADC low level driver. Normally this is not used, it is just use in configuration part, for tuning my PID :) . But to use the ADC, I need mutex.
But when I build the ADC, I have an error, that said that mutex are not yet supported in NIL.

Note: I based my work on an old version of trunk, so maybe the support is now part of the NIL? Or if it is not the case, do you plan to add it?

Thanks.
regards,

Theo.

User avatar
Giovanni
Site Admin
Posts: 10341
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 231 times
Been thanked: 205 times
Contact:

Re: Mutex support

Postby Giovanni » Sat Nov 04, 2017 12:37 pm

Hi,

There is no need of mutex, semaphores can be used in the same way. Look at chheap.c, the allocator uses mutexes or semaphores without problems, you could do it in the same way.

Giovanni

User avatar
tfAteba
Posts: 422
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 55 times
Been thanked: 29 times

Re: Mutex support

Postby tfAteba » Sat Nov 04, 2017 1:22 pm

Hi,

Thanks for the hint, I will then do so and report if there is any problem. Otherwise, consider this as resolve.

Thanks.
regards,

Theo.


Return to “ChibiOS/NIL”

Who is online

Users browsing this forum: No registered users and 1 guest