Mutex support Topic is solved

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

Mutex support  Topic is solved

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 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: 547
Joined: Fri Oct 16, 2015 11:03 pm
Location: Strasbourg, France
Has thanked: 91 times
Been thanked: 48 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 5 guests