AP_HAL: add HAL_HAVE_SAFETY_SWITCH

This commit is contained in:
Lucas De Marchi 2017-03-20 11:58:26 -07:00 committed by Andrew Tridgell
parent ef1672befc
commit 7ca9c7a443
6 changed files with 11 additions and 0 deletions

View File

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

View File

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

View File

@ -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 @@
#ifndef HAL_PX4_HAVE_PX4IO
#define HAL_PX4_HAVE_PX4IO 1
#endif
#ifndef HAL_HAVE_SAFETY_SWITCH
#define HAL_HAVE_SAFETY_SWITCH 1
#endif

View File

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

View File

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

View File

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