WIP: somethings wrong.. #19
@ -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,
|
ReturnValue_t BinarySemaphore::giveBinarySemaphoreFromISR(SemaphoreHandle_t semaphore,
|
||||||
BaseType_t * higherPriorityTaskWoken) {
|
BaseType_t * higherPriorityTaskWoken) {
|
||||||
if (semaphore == NULL) {
|
if (semaphore == NULL) {
|
||||||
|
@ -69,6 +69,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
SemaphoreHandle_t getSemaphore();
|
SemaphoreHandle_t getSemaphore();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset the semaphore.
|
||||||
|
*/
|
||||||
|
void resetSemaphore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper function to give back semaphore from handle
|
* Wrapper function to give back semaphore from handle
|
||||||
* @param semaphore
|
* @param semaphore
|
||||||
|
Loading…
Reference in New Issue
Block a user