fsfw/osal/rtems/Mutex.h

19 lines
385 B
C
Raw Permalink Normal View History

2020-11-17 19:35:37 +01:00
#ifndef FSFW_OSAL_RTEMS_MUTEX_H_
#define FSFW_OSAL_RTEMS_MUTEX_H_
2020-08-13 20:53:35 +02:00
#include "../../ipc/MutexIF.h"
#include "RtemsBasic.h"
class Mutex : public MutexIF {
public:
Mutex();
~Mutex();
2020-08-25 12:08:12 +02:00
ReturnValue_t lockMutex(TimeoutType timeoutType, uint32_t timeoutMs = 0);
ReturnValue_t unlockMutex();
private:
2021-01-28 11:28:28 +01:00
rtems_id mutexId = 0;
static uint8_t count;
};
2020-11-17 19:35:37 +01:00
#endif /* FSFW_OSAL_RTEMS_MUTEX_H_ */