The above lines generate the following errors: (…can’t see anything to configure in FreeRTOSConfig.h
i.e configSUPPORT_DYNAMIC_ALLOCATION is not defined)
============================================================================
nbproject/Makefile-impl.mk:39: recipe for target ‘.build-impl’ failed
build/default/production/_ext/1472/main_Interrupt_BinSema_Tut.o(.text+0x8c): In function .L0': : undefined reference to _xQueueCreateCountingSemaphore’
build/default/production/_ext/1472/main_Interrupt_BinSema_Tut.o(.text+0x8e): In function .L0': : undefined reference to _xQueueCreateCountingSemaphore’
make[2]: *** [dist/default/production/FreeRTOS_Tutorial.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
configSUPPORT_DYNAMIC_ALLOCATION is set to 1 in FreeRTOSConfig.h
…and i think that is all that is needed in semphr.h
Cheers
=======================================
nbproject/Makefile-impl.mk:39: recipe for target ‘.build-impl’ failed
build/default/production/_ext/1472/main_Mutex1_Tut.o(.text+0x50): In function .L0': : undefined reference to _xQueueCreateMutex’
build/default/production/_ext/1472/main_Mutex1_Tut.o(.text+0x52): In function .L0': : undefined reference to _xQueueCreateMutex’
Either search for the word “Mutex” on the configuration options web page
(http://www.freertos.org/a00110.html), or search for xQueueCreateMutex
in the source code (the “queue” in the function name tells you it is
implemented in queue.c) - then you will be able to answer your own question.