fsfw/osal/FreeRTOS/Mutex.h

23 lines
338 B
C
Raw Normal View History

2018-07-13 15:56:37 +02:00
#ifndef OS_RTEMS_MUTEX_H_
#define OS_RTEMS_MUTEX_H_
2020-08-13 20:53:35 +02:00
#include "../../ipc/MutexIF.h"
2018-07-13 15:56:37 +02:00
#include <FreeRTOS.h>
#include "semphr.h"
class Mutex : public MutexIF {
public:
Mutex();
~Mutex();
ReturnValue_t lockMutex(uint32_t timeoutMs);
ReturnValue_t unlockMutex();
private:
SemaphoreHandle_t handle;
};
#endif /* OS_RTEMS_MUTEX_H_ */