mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -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
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
#include "AP_HAL_PX4.h"
|
||||
#include <stdint.h>
|
||||
#include <AP_HAL/AP_HAL_Macros.h>
|
||||
#include <AP_HAL/Semaphores.h>
|
||||
#include "AP_HAL_PX4_Namespace.h"
|
||||
#include <pthread.h>
|
||||
|
||||
class PX4::Semaphore : public AP_HAL::Semaphore {
|
||||
@ -17,4 +18,4 @@ public:
|
||||
private:
|
||||
pthread_mutex_t _lock;
|
||||
};
|
||||
#endif // CONFIG_HAL_BOARD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user