mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_HAL: make all semaphores recursive
the cost is very similar and this prevents an easy coding error which can occur on less used code paths
This commit is contained in:
parent
982cff0695
commit
f683741a9c
@ -59,7 +59,6 @@
|
||||
// allow for static semaphores
|
||||
#include <AP_HAL_ChibiOS/Semaphores.h>
|
||||
#define HAL_Semaphore ChibiOS::Semaphore
|
||||
#define HAL_Semaphore_Recursive ChibiOS::Semaphore_Recursive
|
||||
|
||||
/* string names for well known SPI devices */
|
||||
#define HAL_BARO_MS5611_NAME "ms5611"
|
||||
|
@ -347,4 +347,4 @@
|
||||
|
||||
#include <AP_HAL_Linux/Semaphores.h>
|
||||
#define HAL_Semaphore Linux::Semaphore
|
||||
#define HAL_Semaphore_Recursive Linux::Semaphore_Recursive
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
// allow for static semaphores
|
||||
#include <AP_HAL_SITL/Semaphores.h>
|
||||
#define HAL_Semaphore HALSITL::Semaphore
|
||||
#define HAL_Semaphore_Recursive HALSITL::Semaphore_Recursive
|
||||
|
||||
#ifndef HAL_BOARD_STORAGE_DIRECTORY
|
||||
#define HAL_BOARD_STORAGE_DIRECTORY "."
|
||||
|
Loading…
Reference in New Issue
Block a user