mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-08 17:03:57 -04:00
AP_HAL: add comments and allow for board overrides
This commit is contained in:
parent
2e4e4365d0
commit
37a050eed9
@ -9,7 +9,6 @@
|
|||||||
#define HAL_INS_DEFAULT HAL_INS_PX4
|
#define HAL_INS_DEFAULT HAL_INS_PX4
|
||||||
#define HAL_BARO_DEFAULT HAL_BARO_PX4
|
#define HAL_BARO_DEFAULT HAL_BARO_PX4
|
||||||
#define HAL_COMPASS_DEFAULT HAL_COMPASS_PX4
|
#define HAL_COMPASS_DEFAULT HAL_COMPASS_PX4
|
||||||
#define HAL_SERIAL0_BAUD_DEFAULT 115200
|
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||||
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V1
|
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V1
|
||||||
@ -71,18 +70,22 @@
|
|||||||
|
|
||||||
#define HAL_COMPASS_HMC5843_NAME "hmc5843"
|
#define HAL_COMPASS_HMC5843_NAME "hmc5843"
|
||||||
|
|
||||||
|
/* px4fmu-v1 */
|
||||||
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
#ifdef CONFIG_ARCH_BOARD_PX4FMU_V1
|
||||||
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* aerofc-v1 */
|
||||||
#ifdef CONFIG_ARCH_BOARD_AEROFC_V1
|
#ifdef CONFIG_ARCH_BOARD_AEROFC_V1
|
||||||
#define HAL_BARO_MS5607_I2C_ADDR 0x77
|
#define HAL_BARO_MS5607_I2C_ADDR 0x77
|
||||||
#define HAL_BARO_MS5607_I2C_BUS 0
|
#define HAL_BARO_MS5607_I2C_BUS 0
|
||||||
|
|
||||||
#define HAL_COMPASS_IST8310_I2C_ADDR 0x0E
|
#define HAL_COMPASS_IST8310_I2C_ADDR 0x0E
|
||||||
#define HAL_COMPASS_IST8310_I2C_BUS 1
|
#define HAL_COMPASS_IST8310_I2C_BUS 1
|
||||||
|
|
||||||
#undef HAL_SERIAL0_BAUD_DEFAULT
|
|
||||||
#define HAL_SERIAL0_BAUD_DEFAULT 460800
|
#define HAL_SERIAL0_BAUD_DEFAULT 460800
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* default values */
|
||||||
|
#ifndef HAL_SERIAL0_BAUD_DEFAULT
|
||||||
|
#define HAL_SERIAL0_BAUD_DEFAULT 115200
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user