2021-07-19 18:40:35 +02:00
|
|
|
#ifndef FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
|
|
|
|
#define FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
|
|
|
|
|
|
|
|
#include "fsfw/tasks/SemaphoreIF.h"
|
|
|
|
|
2022-02-02 10:29:30 +01:00
|
|
|
class BinarySemaphore : public SemaphoreIF {
|
|
|
|
public:
|
|
|
|
BinarySemaphore();
|
|
|
|
virtual ~BinarySemaphore();
|
|
|
|
|
|
|
|
// Semaphore IF implementations
|
|
|
|
ReturnValue_t acquire(TimeoutType timeoutType = TimeoutType::BLOCKING,
|
|
|
|
uint32_t timeoutMs = 0) override;
|
|
|
|
ReturnValue_t release() override;
|
|
|
|
uint8_t getSemaphoreCounter() const override;
|
|
|
|
|
|
|
|
private:
|
2021-07-19 18:40:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_SRC_FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_ */
|