1
0
forked from fsfw/fsfw

replaced DHB sizes by size_t, rework

Cookie now passed to DHB, rework in progress
This commit is contained in:
2020-03-23 17:58:23 +01:00
parent c50d9d90d6
commit d3e2652078
23 changed files with 186 additions and 187 deletions

View File

@ -11,7 +11,7 @@
#include "task.h"
BinarySemaphore::BinarySemaphore() {
vSemaphoreCreateBinary(handle);
xSemaphoreCreateBinary(handle); // @suppress("Function cannot be resolved")
if(handle == NULL) {
error << "Binary semaphore creation failure" << std::endl;
}
@ -81,7 +81,7 @@ ReturnValue_t BinarySemaphore::giveBinarySemaphore(SemaphoreHandle_t semaphore)
void BinarySemaphore::resetSemaphore() {
vSemaphoreDelete(handle);
vSemaphoreCreateBinary(handle);
xSemaphoreCreateBinary(handle);
}
ReturnValue_t BinarySemaphore::giveBinarySemaphoreFromISR(SemaphoreHandle_t semaphore,