mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL: support HAL_Semaphore type
This commit is contained in:
parent
4d662a913a
commit
0a73c3492d
@ -38,6 +38,10 @@
|
||||
#define HAL_WITH_RAMTRON 0
|
||||
#endif
|
||||
|
||||
// allow for static semaphores
|
||||
#include <AP_HAL_ChibiOS/Semaphores.h>
|
||||
#define HAL_Semaphore ChibiOS::Semaphore
|
||||
|
||||
/* string names for well known SPI devices */
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
#ifndef HAL_BARO_MS5611_SPI_INT_NAME
|
||||
|
@ -11,3 +11,5 @@
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
#define HAL_HAVE_SAFETY_SWITCH 1
|
||||
|
||||
#define HAL_Semaphore Empty::Semaphore
|
||||
|
@ -83,3 +83,7 @@
|
||||
|
||||
|
||||
#define STATS_ENABLED DISABLED // to reduce flash degradation
|
||||
|
||||
#include <AP_HAL_F4Light/Semaphores.h>
|
||||
#define HAL_Semaphore F4Light::Semaphore
|
||||
|
||||
|
@ -395,3 +395,6 @@
|
||||
#ifndef HAL_LINUX_I2C_EXTERNAL_BUS_MASK
|
||||
#define HAL_LINUX_I2C_EXTERNAL_BUS_MASK 0xFFFF
|
||||
#endif
|
||||
|
||||
#include <AP_HAL_Linux/Semaphores.h>
|
||||
#define HAL_Semaphore Linux::Semaphore
|
||||
|
@ -140,3 +140,6 @@
|
||||
#ifndef AP_FEATURE_SBUS_OUT
|
||||
#define AP_FEATURE_SBUS_OUT 1
|
||||
#endif
|
||||
|
||||
#include <AP_HAL_PX4/Semaphores.h>
|
||||
#define HAL_Semaphore PX4::Semaphore
|
||||
|
@ -20,3 +20,7 @@
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
#define HAL_HAVE_SAFETY_SWITCH 0
|
||||
|
||||
// allow for static semaphores
|
||||
#include <AP_HAL_SITL/Semaphores.h>
|
||||
#define HAL_Semaphore HALSITL::Semaphore
|
||||
|
@ -94,3 +94,7 @@
|
||||
#ifndef HAL_HAVE_SAFETY_SWITCH
|
||||
#define HAL_HAVE_SAFETY_SWITCH 1
|
||||
#endif
|
||||
|
||||
#include <AP_HAL_VRBRAIN/Semaphores.h>
|
||||
#define HAL_Semaphore VRBRAIN::Semaphore
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user