Page 1 of 1

Mutex support  Topic is solved

Posted: Sat Nov 04, 2017 12:07 am
by tfAteba
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.

Re: Mutex support

Posted: Sat Nov 04, 2017 12:37 pm
by Giovanni
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

Re: Mutex support

Posted: Sat Nov 04, 2017 1:22 pm
by tfAteba
Hi,

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

Thanks.