hwdef: RM3100 reversal mask

This commit is contained in:
MallikarjunSE 2022-03-22 14:08:10 +05:30 committed by Andrew Tridgell
parent 0a38fa7172
commit 771a7d8c9a
2 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,7 @@ define HAL_PERIPH_ENABLE_MAG
SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ
COMPASS RM3100 SPI:rm3100 false ROTATION_PITCH_180 COMPASS RM3100 SPI:rm3100 false ROTATION_PITCH_180
define AP_RM3100_REVERSAL_MASK 7
define HAL_COMPASS_MAX_SENSORS 1 define HAL_COMPASS_MAX_SENSORS 1
# --------------------- DPS310 --------------------------- # --------------------- DPS310 ---------------------------

View File

@ -69,6 +69,7 @@ BARO DPS310 SPI:dps310
# Mag probe # Mag probe
SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ
COMPASS RM3100 SPI:rm3100 false ROTATION_PITCH_180 COMPASS RM3100 SPI:rm3100 false ROTATION_PITCH_180
define AP_RM3100_REVERSAL_MASK 7
# PWM, WS2812 LED # PWM, WS2812 LED
PB8 TIM4_CH3 TIM4 PWM(1) GPIO(50) PB8 TIM4_CH3 TIM4 PWM(1) GPIO(50)