fsfw/osal/FreeRTOS/Mutex.h
Robin.Mueller bfc7a768ce message queue adaptions for calls from ISR
functions moved to top
binary sempahore file init
mutex return values
2020-02-25 12:54:28 +01:00

25 lines
368 B
C++

#ifndef OS_RTEMS_MUTEX_H_
#define OS_RTEMS_MUTEX_H_
#include <framework/ipc/MutexIF.h>
#include <FreeRTOS.h>
#include "semphr.h"
/**
*
* @ingroup osal
*/
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_ */