vSemaphoreCreateBinary
has been replaced by xSemaphoreCreateBinary
now and won’t ‘give’ the semaphore after created it, but I still want to know why vSemaphoreCreateBinary
does this.
~~~~
define vSemaphoreCreateBinary( xSemaphore )
{
( xSemaphore ) = xQueueGenericCreate( ( unsigned portBASE_TYPE ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_BINARY_SEMAPHORE );
if( ( xSemaphore ) != NULL )
{
( void ) xSemaphoreGive( ( xSemaphore ) );
}
}
~~~~
Thanks!