not an ideal solution but works for now

This commit is contained in:
2021-07-16 12:22:14 +02:00
parent aafccd191e
commit a65a184083
9 changed files with 70 additions and 10 deletions

View File

@ -98,7 +98,7 @@ public:
* already available.
*/
static ReturnValue_t releaseFromISR(SemaphoreHandle_t semaphore,
BaseType_t * higherPriorityTaskWoken);
BaseType_t * higherPriorityTaskWoken) override;
protected:
SemaphoreHandle_t handle;

View File

@ -0,0 +1,21 @@
#ifndef FSFW_INC_FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
#define FSFW_INC_FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_
#include "fsfw/tasks/SemaphoreIF.h"
class BinarySemaphore: public SemaphoreIF {
public:
BinarySemaphore();
virtual ~BinarySemaphore();
// Interface implementation
ReturnValue_t acquire(TimeoutType timeoutType =
TimeoutType::BLOCKING, uint32_t timeoutMs = 0) override;
ReturnValue_t release() override;
uint8_t getSemaphoreCounter() const override;
private:
};
#endif /* FSFW_INC_FSFW_OSAL_RTEMS_BINARYSEMAPHORE_H_ */

View File

@ -1,9 +1,9 @@
#ifndef FSFW_OSAL_RTEMS_MESSAGEQUEUE_H_
#define FSFW_OSAL_RTEMS_MESSAGEQUEUE_H_
#include "../../internalError/InternalErrorReporterIF.h"
#include "../../ipc/MessageQueueIF.h"
#include "../../ipc/MessageQueueMessage.h"
#include "fsfw/internalerror/InternalErrorReporterIF.h"
#include "fsfw/ipc/MessageQueueIF.h"
#include "fsfw/ipc/MessageQueueMessage.h"
#include "RtemsBasic.h"
/**