mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: add HAL_HAVE_BOARD_VOLTAGE
This commit is contained in:
parent
37a050eed9
commit
c7fc3ffbc4
|
@ -9,3 +9,4 @@
|
|||
#define HAL_COMPASS_DEFAULT HAL_COMPASS_HIL
|
||||
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
|
|
|
@ -349,3 +349,4 @@
|
|||
#define HAL_OPTFLOW_PX4FLOW_I2C_BUS 1
|
||||
#endif
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||
#define HAL_BARO_MS5611_I2C_ADDR 0x76
|
||||
#define HAL_BARO_MS5611_I2C_BUS 0
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 0
|
||||
#endif
|
||||
|
||||
/* aerofc-v1 */
|
||||
|
@ -83,9 +84,14 @@
|
|||
#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
|
||||
#endif
|
||||
|
||||
/* default values */
|
||||
#ifndef HAL_SERIAL0_BAUD_DEFAULT
|
||||
#define HAL_SERIAL0_BAUD_DEFAULT 115200
|
||||
#endif
|
||||
|
||||
#ifndef HAL_HAVE_BOARD_VOLTAGE
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
#endif
|
||||
|
|
|
@ -13,3 +13,4 @@
|
|||
#define HAL_OS_POSIX_IO 1
|
||||
#define HAL_SERIAL0_BAUD_DEFAULT 115200
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
#define HAL_GPIO_LED_ON LOW
|
||||
#define HAL_GPIO_LED_OFF HIGH
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 1
|
||||
|
|
|
@ -44,3 +44,4 @@
|
|||
#define EXTERNAL_LED_MOTOR1 30 // Motor1 LED - AN8
|
||||
#define EXTERNAL_LED_MOTOR2 31 // Motor2 LED - AN12
|
||||
|
||||
#define HAL_HAVE_BOARD_VOLTAGE 0
|
||||
|
|
Loading…
Reference in New Issue