Binary Semaphore in FreeRTOS

Status
Not open for further replies.

amraldo

Advanced Member level 4
Joined
Aug 29, 2004
Messages
1,183
Helped
145
Reputation
290
Reaction score
37
Trophy points
1,328
Location
Egypt
Activity points
5,880
Hi,
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 );															\
														}																							\
													}
Does this mean that its initial count is 1?
--
Amr
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…