Browse Source

AP_HAL: add HAL_PX4_HAVE_PWM_INPUT

mission-4.1.18
Lucas De Marchi 8 years ago committed by Andrew Tridgell
parent
commit
f91d23daab
  1. 6
      libraries/AP_HAL/board/px4.h
  2. 1
      libraries/AP_HAL/board/vrbrain.h

6
libraries/AP_HAL/board/px4.h

@ -75,6 +75,7 @@
#define HAL_BARO_MS5611_I2C_ADDR 0x76 #define HAL_BARO_MS5611_I2C_ADDR 0x76
#define HAL_BARO_MS5611_I2C_BUS 0 #define HAL_BARO_MS5611_I2C_BUS 0
#define HAL_HAVE_BOARD_VOLTAGE 0 #define HAL_HAVE_BOARD_VOLTAGE 0
#define HAL_PX4_HAVE_PWM_INPUT 0
#endif #endif
/* px4fmu-v4 */ /* px4fmu-v4 */
@ -94,6 +95,7 @@
#define HAL_HAVE_SAFETY_SWITCH 0 #define HAL_HAVE_SAFETY_SWITCH 0
#define HAL_PX4_HAVE_MTD_SUPPORT 0 #define HAL_PX4_HAVE_MTD_SUPPORT 0
#define HAL_PX4_HAVE_PX4IO 0 #define HAL_PX4_HAVE_PX4IO 0
#define HAL_PX4_HAVE_PWM_INPUT 0
#endif #endif
/* default values */ /* default values */
@ -113,6 +115,10 @@
#define HAL_PX4_HAVE_PX4IO 1 #define HAL_PX4_HAVE_PX4IO 1
#endif #endif
#ifndef HAL_PX4_HAVE_PWM_INPUT
#define HAL_PX4_HAVE_PWM_INPUT 1
#endif
#ifndef HAL_HAVE_SAFETY_SWITCH #ifndef HAL_HAVE_SAFETY_SWITCH
#define HAL_HAVE_SAFETY_SWITCH 1 #define HAL_HAVE_SAFETY_SWITCH 1
#endif #endif

1
libraries/AP_HAL/board/vrbrain.h

@ -47,3 +47,4 @@
#define HAL_HAVE_BOARD_VOLTAGE 0 #define HAL_HAVE_BOARD_VOLTAGE 0
#define HAL_HAVE_SAFETY_SWITCH 1 #define HAL_HAVE_SAFETY_SWITCH 1
#define HAL_PX4_HAVE_MTD_SUPPORT 1 #define HAL_PX4_HAVE_MTD_SUPPORT 1
#define HAL_PX4_HAVE_PWM_INPUT 1

Loading…
Cancel
Save