1
0
forked from fsfw/fsfw

using newer bin semaph create call.

architecture dependant function call is external now and shall
be implemented by developer
This commit is contained in:
2020-04-23 17:54:41 +02:00
parent 44d4678089
commit 1415cd2339
4 changed files with 32 additions and 23 deletions

View File

@ -18,6 +18,10 @@ extern "C" {
* @brief OS Tool to achieve synchronization of between tasks or between task and ISR
* @details
* Documentation: https://www.freertos.org/Embedded-RTOS-Binary-Semaphores.html
*
* SHOULDDO: check freeRTOS version and use new task notifications,
* if non-ancient freeRTOS version is used.
*
* @ingroup osal
*/
class BinarySemaphore: public HasReturnvaluesIF {
@ -68,8 +72,8 @@ public:
/**
* Take the binary semaphore.
* If the semaphore has already been taken, the task will be blocked for a maximum
* of #timeoutMs or until the semaphore is given back,
* If the semaphore has already been taken, the task will be blocked
* for a maximum of #timeoutMs or until the semaphore is given back,
* for example by an ISR or another task.
* @param timeoutMs
* @return -@c RETURN_OK on success