added informative comment for counting semaphore
This commit is contained in:
parent
7afaa752f3
commit
9b53e2b64f
@ -1,6 +1,8 @@
|
|||||||
#include <framework/osal/FreeRTOS/CountingSemaphore.h>
|
#include <framework/osal/FreeRTOS/CountingSemaphore.h>
|
||||||
#include <framework/serviceinterface/ServiceInterfaceStream.h>
|
#include <framework/serviceinterface/ServiceInterfaceStream.h>
|
||||||
|
|
||||||
|
// Make sure #define configUSE_COUNTING_SEMAPHORES 1 is set in
|
||||||
|
// free FreeRTOSConfig.h file.
|
||||||
CountingSemaphore::CountingSemaphore(uint8_t count, uint8_t initCount):
|
CountingSemaphore::CountingSemaphore(uint8_t count, uint8_t initCount):
|
||||||
count(count), initCount(initCount) {
|
count(count), initCount(initCount) {
|
||||||
handle = xSemaphoreCreateCounting(count, initCount);
|
handle = xSemaphoreCreateCounting(count, initCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user