HAL_ChibiOS: moved compass support for f103-GPS

not needed for other builds
This commit is contained in:
Andrew Tridgell 2019-11-01 07:57:14 +11:00
parent 9e9be95943
commit 207dffba88
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,13 @@ define HAL_CAN_DEFAULT_NODE_ID 117
define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_gps" define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_gps"
# added rm3100 mag on SPI
SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ
COMPASS RM3100 SPI:rm3100 false ROTATION_NONE
# and support all external compass types
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
# GPS+MAG # GPS+MAG
define HAL_PERIPH_ENABLE_GPS define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG define HAL_PERIPH_ENABLE_MAG

View File

@ -124,7 +124,6 @@ define HAL_DEVICE_THREAD_STACK 256
define AP_PARAM_MAX_EMBEDDED_PARAM 0 define AP_PARAM_MAX_EMBEDDED_PARAM 0
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
define HAL_I2C_INTERNAL_MASK 0 define HAL_I2C_INTERNAL_MASK 0
# disable dual GPS and GPS blending to save flash space # disable dual GPS and GPS blending to save flash space