AP_HAL: support HAL_Semaphore type

This commit is contained in:
Andrew Tridgell 2018-08-07 16:37:37 +10:00
parent 4d662a913a
commit 0a73c3492d
7 changed files with 24 additions and 0 deletions

View File

@ -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

View File

@ -11,3 +11,5 @@
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1
#define HAL_Semaphore Empty::Semaphore

View File

@ -83,3 +83,7 @@
#define STATS_ENABLED DISABLED // to reduce flash degradation
#include <AP_HAL_F4Light/Semaphores.h>
#define HAL_Semaphore F4Light::Semaphore

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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