Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Binary Semaphore in FreeRTOS

Status
Not open for further replies.

amraldo

Advanced Member level 4
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top