fsfw/src/fsfw/osal/rtems/Mutex.h

20 lines
394 B
C
Raw 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 {
2022-02-02 10:29:30 +01:00
public:
Mutex();
~Mutex();
ReturnValue_t lockMutex(TimeoutType timeoutType, uint32_t timeoutMs = 0);
ReturnValue_t unlockMutex();
private:
rtems_id mutexId = 0;
static uint8_t count;
};
2020-11-17 19:35:37 +01:00
#endif /* FSFW_OSAL_RTEMS_MUTEX_H_ */