Browse Source

AP_HAL: add HAL_HAVE_SAFETY_SWITCH

mission-4.1.18
Lucas De Marchi 8 years ago committed by Andrew Tridgell
parent
commit
7ca9c7a443
  1. 1
      libraries/AP_HAL/board/empty.h
  2. 1
      libraries/AP_HAL/board/linux.h
  3. 6
      libraries/AP_HAL/board/px4.h
  4. 1
      libraries/AP_HAL/board/qurt.h
  5. 1
      libraries/AP_HAL/board/sitl.h
  6. 1
      libraries/AP_HAL/board/vrbrain.h

1
libraries/AP_HAL/board/empty.h

@ -10,3 +10,4 @@ @@ -10,3 +10,4 @@
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1

1
libraries/AP_HAL/board/linux.h

@ -350,3 +350,4 @@ @@ -350,3 +350,4 @@
#endif
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1

6
libraries/AP_HAL/board/px4.h

@ -89,7 +89,9 @@ @@ -89,7 +89,9 @@
#define HAL_COMPASS_IST8310_I2C_ADDR 0x0E
#define HAL_COMPASS_IST8310_I2C_BUS 1
#define HAL_SERIAL0_BAUD_DEFAULT 460800
#define HAL_HAVE_BOARD_VOLTAGE 0
#define HAL_HAVE_SAFETY_SWITCH 0
#define HAL_PX4_HAVE_MTD_SUPPORT 0
#define HAL_PX4_HAVE_PX4IO 0
#endif
@ -110,3 +112,7 @@ @@ -110,3 +112,7 @@
#ifndef HAL_PX4_HAVE_PX4IO
#define HAL_PX4_HAVE_PX4IO 1
#endif
#ifndef HAL_HAVE_SAFETY_SWITCH
#define HAL_HAVE_SAFETY_SWITCH 1
#endif

1
libraries/AP_HAL/board/qurt.h

@ -14,3 +14,4 @@ @@ -14,3 +14,4 @@
#define HAL_SERIAL0_BAUD_DEFAULT 115200
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1

1
libraries/AP_HAL/board/sitl.h

@ -19,3 +19,4 @@ @@ -19,3 +19,4 @@
#define HAL_GPIO_LED_OFF HIGH
#define HAL_HAVE_BOARD_VOLTAGE 1
#define HAL_HAVE_SAFETY_SWITCH 1

1
libraries/AP_HAL/board/vrbrain.h

@ -45,4 +45,5 @@ @@ -45,4 +45,5 @@
#define EXTERNAL_LED_MOTOR2 31 // Motor2 LED - AN12
#define HAL_HAVE_BOARD_VOLTAGE 0
#define HAL_HAVE_SAFETY_SWITCH 1
#define HAL_PX4_HAVE_MTD_SUPPORT 1

Loading…
Cancel
Save