not an ideal solution but works for now
This commit is contained in:
@ -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;
|
||||
|
21
inc/fsfw/osal/rtems/BinarySemaphore.h
Normal file
21
inc/fsfw/osal/rtems/BinarySemaphore.h
Normal 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_ */
|
@ -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"
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user