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

1
libraries/AP_HAL/board/vrbrain.h

@ -47,3 +47,4 @@ @@ -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

Loading…
Cancel
Save