BinSemaphore reset function added
This commit is contained in:
1 parent
43ac0ec04b
commit
22e4dabd1b
2 files changed
+10
No files matched your search
@@ -79,6 +79,11 @@ ReturnValue_t BinarySemaphore::giveBinarySemaphore(SemaphoreHandle_t semaphore)
|
||||
}
|
||||
}
|
||||
|
||||
void BinarySemaphore::resetSemaphore() {
|
||||
vSemaphoreDelete(handle);
|
||||
vSemaphoreCreateBinary(handle);
|
||||
}
|
||||
|
||||
ReturnValue_t BinarySemaphore::giveBinarySemaphoreFromISR(SemaphoreHandle_t semaphore,
|
||||
BaseType_t * higherPriorityTaskWoken) {
|
||||
if (semaphore == NULL) {
|
||||
|
||||
Reference in new issue
Block a user