mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 17:03:57 -04:00
HAL_PX4: added support for HAL_Semaphore type
This commit is contained in:
parent
f005e60066
commit
fe93113240
@ -1,9 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_HAL/AP_HAL_Boards.h>
|
#include <AP_HAL/AP_HAL_Boards.h>
|
||||||
|
#include <stdint.h>
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
#include <AP_HAL/AP_HAL_Macros.h>
|
||||||
#include "AP_HAL_PX4.h"
|
#include <AP_HAL/Semaphores.h>
|
||||||
|
#include "AP_HAL_PX4_Namespace.h"
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
class PX4::Semaphore : public AP_HAL::Semaphore {
|
class PX4::Semaphore : public AP_HAL::Semaphore {
|
||||||
@ -17,4 +18,4 @@ public:
|
|||||||
private:
|
private:
|
||||||
pthread_mutex_t _lock;
|
pthread_mutex_t _lock;
|
||||||
};
|
};
|
||||||
#endif // CONFIG_HAL_BOARD
|
|
||||||
|
Loading…
Reference in New Issue
Block a user