include ../MatekL431/hwdef.inc define HAL_PERIPH_ENABLE_MAG SPIDEV rm3100 SPI1 DEVID1 MAG_CS MODE0 1*MHZ 1*MHZ COMPASS RM3100 SPI:rm3100 false ROTATION_PITCH_180 define HAL_COMPASS_MAX_SENSORS 1 # provide HiRes mag data for magnetic surveying define AP_PERIPH_MAG_HIRES 1 define AP_PERIPH_MAG_MAX_RATE 0 define HAL_USE_ADC FALSE