HAL_VRBRAIN: added support for HAL_Semaphore type

This commit is contained in:
Andrew Tridgell 2018-08-07 16:39:42 +10:00
parent 5d3b17db6b
commit b2b56c3e46

View File

@ -1,9 +1,10 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN
#include "AP_HAL_VRBRAIN.h"
#include <stdint.h>
#include <AP_HAL/AP_HAL_Macros.h>
#include <AP_HAL/Semaphores.h>
#include "AP_HAL_VRBRAIN_Namespace.h"
#include <pthread.h>
class VRBRAIN::Semaphore : public AP_HAL::Semaphore {
@ -17,4 +18,4 @@ public:
private:
pthread_mutex_t _lock;
};
#endif // CONFIG_HAL_BOARD