xSemaphore source code

elri07 wrote on Sunday, October 21, 2012:

Hello everybody,

I’m a new user of FreeRtos and I am trying to undersand how semaphore are managed. My question is quite simple :
There is a semphr.h file, but I can’t find the .c ! Where are xSemaphoreXXXX functions coded ?!
Thanks a lot for your help,

Elri07

rtel wrote on Sunday, October 21, 2012:

Semaphores are, primarily, implemented as an abstraction layer above the queues.  If you look in semphr.h you will see each semaphore macro is #defined to a function, most of which are defined in queue.c.

Regards.

elri07 wrote on Sunday, October 21, 2012:

Thank you for the tip !

Regards,

Elri