amraldo
Advanced Member level 4
Hi,
I am studying FreeRTOS.
I cam across the API
.
It is a macro defined as follows:
Does this mean that its initial count is 1?
--
Amr
I am studying FreeRTOS.
I cam across the API
Code:
vSemaphoreCreateBinary
It is a macro defined as follows:
Code:
#define vSemaphoreCreateBinary( xSemaphore ) { \
xSemaphore = xQueueCreate( ( unsigned portBASE_TYPE ) 1, semSEMAPHORE_QUEUE_ITEM_LENGTH ); \
if( xSemaphore != NULL ) \
{ \
xSemaphoreGive( xSemaphore ); \
} \
}
--
Amr