Jun 18, 2010 #1 A 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
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