From f91d23daab08d1085745de64f43c53b31ec8c14d Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 20 Mar 2017 12:32:49 -0700 Subject: [PATCH] AP_HAL: add HAL_PX4_HAVE_PWM_INPUT --- libraries/AP_HAL/board/px4.h | 6 ++++++ libraries/AP_HAL/board/vrbrain.h | 1 + 2 files changed, 7 insertions(+) diff --git a/libraries/AP_HAL/board/px4.h b/libraries/AP_HAL/board/px4.h index 49b29e1b47..86dbecf4d7 100644 --- a/libraries/AP_HAL/board/px4.h +++ b/libraries/AP_HAL/board/px4.h @@ -75,6 +75,7 @@ #define HAL_BARO_MS5611_I2C_ADDR 0x76 #define HAL_BARO_MS5611_I2C_BUS 0 #define HAL_HAVE_BOARD_VOLTAGE 0 +#define HAL_PX4_HAVE_PWM_INPUT 0 #endif /* px4fmu-v4 */ @@ -94,6 +95,7 @@ #define HAL_HAVE_SAFETY_SWITCH 0 #define HAL_PX4_HAVE_MTD_SUPPORT 0 #define HAL_PX4_HAVE_PX4IO 0 +#define HAL_PX4_HAVE_PWM_INPUT 0 #endif /* default values */ @@ -113,6 +115,10 @@ #define HAL_PX4_HAVE_PX4IO 1 #endif +#ifndef HAL_PX4_HAVE_PWM_INPUT +#define HAL_PX4_HAVE_PWM_INPUT 1 +#endif + #ifndef HAL_HAVE_SAFETY_SWITCH #define HAL_HAVE_SAFETY_SWITCH 1 #endif diff --git a/libraries/AP_HAL/board/vrbrain.h b/libraries/AP_HAL/board/vrbrain.h index 1ad7d91a9b..8b0cb035b0 100644 --- a/libraries/AP_HAL/board/vrbrain.h +++ b/libraries/AP_HAL/board/vrbrain.h @@ -47,3 +47,4 @@ #define HAL_HAVE_BOARD_VOLTAGE 0 #define HAL_HAVE_SAFETY_SWITCH 1 #define HAL_PX4_HAVE_MTD_SUPPORT 1 +#define HAL_PX4_HAVE_PWM_INPUT 1