HAL_ChibiOS: enable sensors in peripheral firmwares

This commit is contained in:
Andrew Tridgell 2019-07-26 16:57:26 +10:00
parent fa76d1fbe6
commit 64921b64f5
2 changed files with 9 additions and 3 deletions

View File

@ -78,10 +78,12 @@ define HAL_I2C_INTERNAL_MASK 0
I2C_ORDER I2C3
# IST compass
COMPASS IST8310 I2C:0:0x0C false ROTATION_NONE
COMPASS IST8310 I2C:0:0x0D false ROTATION_NONE
COMPASS IST8310 I2C:0:0x0E false ROTATION_NONE
COMPASS IST8310 I2C:0:0x0F false ROTATION_NONE
# BMP388 baro
BARO BMP388 I2C:0:0x76
define HAL_BARO_ALLOW_INIT_NO_BARO
define HAL_USE_ADC FALSE
define STM32_ADC_USE_ADC1 FALSE

View File

@ -141,3 +141,7 @@ define HAL_I2C_INTERNAL_MASK 0
# disable dual GPS and GPS blending to save flash space
define GPS_MAX_RECEIVERS 1
define GPS_MAX_INSTANCES 1
# GPS+MAG
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG