vSemaphoreCreateBinary compilation error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vSemaphoreCreateBinary compilation error

777 Views
mandarpadwal
Contributor I

We are using freeRTOS & using vSemaphoreCreateBinary

getting error at build as "semphr.h:121:2: error: expected identifier or '(' before '{' token"

please help to resolve this

Tags (1)
0 Kudos
1 Reply

480 Views
converse
Senior Contributor V

According to the FrreRTOS docs, you should not be using vSemaphoreCreateBinary. It says.

NOTE: The vSemaphoreCreateBinary() macro remains in the source code to ensure backward compatibility, but it should not be used in new designs. Use the xSemaphoreCreateBinary() function instead.

Also, in many cases, it is faster and more memory efficient to use a direct to task notification in place of a binary semaphore.

See

FreeRTOS is a truely free and small footprint RTOS for microcontrollers. This page describes the vSe... 

0 Kudos