WIP: somethings wrong.. #19

Closed
muellerr wants to merge 808 commits from source/master into master
3 changed files with 10 additions and 3 deletions
Showing only changes of commit 9f7f8073f1 - Show all commits

View File

@ -7,8 +7,11 @@
#include <framework/osal/FreeRTOS/TaskManagement.h>
#include <framework/serviceinterface/ServiceInterfaceStream.h>
extern "C" {
#include "portmacro.h"
#include "task.h"
}
BinarySemaphore::BinarySemaphore() {
xSemaphoreCreateBinary(handle);

View File

@ -7,8 +7,12 @@
#define FRAMEWORK_OSAL_FREERTOS_BINARYSEMPAHORE_H_
#include <framework/returnvalues/HasReturnvaluesIF.h>
#include <FreeRTOS.h>
extern "C" {
#include "FreeRTOS.h"
#include "semphr.h"
}
/**
* @brief OS Tool to achieve synchronization of between tasks or between task and ISR

View File

@ -19,8 +19,8 @@ class Mutex : public MutexIF {
public:
Mutex();
~Mutex();
ReturnValue_t lockMutex(uint32_t timeoutMs);
ReturnValue_t unlockMutex();
ReturnValue_t lockMutex(uint32_t timeoutMs) override;
ReturnValue_t unlockMutex() override;
private:
SemaphoreHandle_t handle;
};