fsfw/osal/rtems/Mutex.h
2021-01-27 18:15:54 +01:00

19 lines
385 B
C++

#ifndef FSFW_OSAL_RTEMS_MUTEX_H_
#define FSFW_OSAL_RTEMS_MUTEX_H_
#include "../../ipc/MutexIF.h"
#include "RtemsBasic.h"
class Mutex : public MutexIF {
public:
Mutex();
~Mutex();
ReturnValue_t lockMutex(TimeoutType timeoutType, uint32_t timeoutMs = 0);
ReturnValue_t unlockMutex();
private:
rtems_id mutexId = 0;
static uint8_t count;
};
#endif /* FSFW_OSAL_RTEMS_MUTEX_H_ */