added informative comment for counting semaphore

This commit is contained in:
Robin Müller 2020-05-19 22:45:48 +02:00
parent 7afaa752f3
commit 9b53e2b64f
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include <framework/osal/FreeRTOS/CountingSemaphore.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):
count(count), initCount(initCount) {
handle = xSemaphoreCreateCounting(count, initCount);