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:
Andrew Tridgell 2020-01-19 08:57:24 +11:00
parent 982cff0695
commit f683741a9c
3 changed files with 1 additions and 3 deletions

View File

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

View File

@ -347,4 +347,4 @@
#include <AP_HAL_Linux/Semaphores.h>
#define HAL_Semaphore Linux::Semaphore
#define HAL_Semaphore_Recursive Linux::Semaphore_Recursive

View File

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