vSemaphoreCreateBinary compilation error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

vSemaphoreCreateBinary compilation error

1,331件の閲覧回数
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

ラベル(2)
タグ(1)
0 件の賞賛
返信
1 返信

1,034件の閲覧回数
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 件の賞賛
返信