freertos includes in extern "C"
This commit is contained in:
parent
fb9a5678fc
commit
9f7f8073f1
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user