AP_HAL: add HAL_PX4_HAVE_PWM_INPUT

This commit is contained in:
Lucas De Marchi 2017-03-20 12:32:49 -07:00 committed by Andrew Tridgell
parent 7c246847de
commit f91d23daab
2 changed files with 7 additions and 0 deletions

View File

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

View File

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