Update framework #6

Merged
meierj merged 67 commits from mueller/master into eive/develop 2021-07-23 18:26:40 +02:00
2 changed files with 24 additions and 2 deletions
Showing only changes of commit ab6c616cdb - Show all commits

View File

@ -1,4 +1,4 @@
#include "fsfw/osal/rtems/BinarySemaphore.h"
#include "BinarySemaphore.h"
#include <rtems/rtems/sem.h>
@ -9,7 +9,6 @@ BinarySemaphore::~BinarySemaphore() {
}
// Interface implementation
ReturnValue_t BinarySemaphore::acquire(TimeoutType timeoutType, uint32_t timeoutMs) {
return HasReturnvaluesIF::RETURN_OK;
}

View File

@ -0,0 +1,23 @@
#ifndef FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
#define FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
#include "fsfw/tasks/SemaphoreIF.h"
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:
};
#endif /* FSFW_SRC_FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_ */