From 3534186510da5040065f8530325da7dbc317cab8 Mon Sep 17 00:00:00 2001 From: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Tue, 21 Nov 2023 11:10:32 -0500 Subject: [PATCH] Remove unneeded MAG_I2C_INSTANCE defines (#204) * Add FrSky OSD to MatekF722HD target This FC does not have a MAX7456 OSD, but it has a FrSky OSD on UART6. Should USE_OSD_SD be undefined in this case? Should UART6 be set to FrSky OSD by default? * Add missing defines to NEUTRONRCF411AIO target Adds missing defines for BMI270, DPS310, and W25Q128FV flash * Remove MAG_I2C_INSTANCE when USE_MAG not defined --- configs/AG3XF4/config.h | 1 - configs/AG3XF7/config.h | 1 - configs/AIRBOTF4/config.h | 1 - configs/AIRBOTF4SD/config.h | 1 - configs/ANYFCF7/config.h | 1 - configs/AOCODAF405/config.h | 1 - configs/AOCODAF405V2MPU6000/config.h | 1 - configs/AOCODAF405V2MPU6500/config.h | 1 - configs/AOCODAF722MINI/config.h | 1 - configs/AOCODAF722MINIV2/config.h | 1 - configs/AOCODARCF405_AIO/config.h | 1 - configs/AOCODARCF411_AIO/config.h | 1 - configs/AOCODARCF722_AIO/config.h | 1 - configs/AOCODARCF7DUAL/config.h | 1 - configs/AOCODARCH7DUAL/config.h | 1 - configs/AXISFLYINGF7PRO/config.h | 1 - configs/BAYCK_DOLPHIN/config.h | 1 - configs/BETAFLIGHTF4/config.h | 1 - configs/BETAFPVF405/config.h | 1 - configs/BETAFPVF405_ELRS/config.h | 1 - configs/BETAFPVH743/config.h | 1 - configs/BLUEJAYF4/config.h | 1 - configs/CLRACINGF7/config.h | 2 -- configs/COLIBRI/config.h | 1 - configs/CRAZYBEEF405/config.h | 1 - configs/CYCLONEF405_PRO/config.h | 2 -- configs/CYCLONEF722_PRO/config.h | 1 - configs/DALRCF405/config.h | 1 - configs/DALRCF722DUAL/config.h | 1 - configs/DARWINF411/config.h | 1 - configs/DARWINF722HD/config.h | 1 - configs/DARWINF722HDV2/config.h | 1 - configs/DFR_F722_DUAL_HD/config.h | 1 - configs/DRONIUSF7/config.h | 2 -- configs/DYSF4PRO/config.h | 1 - configs/EACHINEF722/config.h | 1 - configs/EACHINEF722_AIO/config.h | 1 - configs/EXF722DUAL/config.h | 1 - configs/EXUAVF4PRO/config.h | 1 - configs/F4BY/config.h | 1 - configs/FLASHHOBBYF405/config.h | 1 - configs/FLASHHOBBYF722/config.h | 1 - configs/FLYCOLORF7/config.h | 1 - configs/FLYCOLORF7_AIO/config.h | 1 - configs/FLYWOOF405/config.h | 1 - configs/FLYWOOF405NANO/config.h | 1 - configs/FLYWOOF405PRO/config.h | 1 - configs/FLYWOOF405S_AIO/config.h | 1 - configs/FLYWOOF411/config.h | 1 - configs/FLYWOOF411EVO_HD/config.h | 1 - configs/FLYWOOF411HEX/config.h | 2 -- configs/FLYWOOF411V2/config.h | 1 - configs/FLYWOOF411_5IN1_AIO/config.h | 1 - configs/FLYWOOF745/config.h | 1 - configs/FLYWOOF745AIO/config.h | 1 - configs/FLYWOOF745NANO/config.h | 1 - configs/FLYWOOF7DUAL/config.h | 1 - configs/FOXEERF722DUAL/config.h | 1 - configs/FOXEERF722V2/config.h | 1 - configs/FOXEERF722V3/config.h | 1 - configs/FOXEERF722V4/config.h | 1 - configs/FOXEERF745V2_AIO/config.h | 4 ---- configs/FOXEERF745V3_AIO/config.h | 4 ---- configs/FOXEERF745V4_AIO/config.h | 3 --- configs/FOXEERF745_AIO/config.h | 4 ---- configs/FOXEERH743/config.h | 3 --- configs/FPVM_BETAFLIGHTF7/config.h | 1 - configs/FREEAXISF4/config.h | 1 - configs/FURYF4/config.h | 1 - configs/FURYF4OSD/config.h | 1 - configs/GEELANGF411/config.h | 2 -- configs/GEMEF411/config.h | 1 - configs/GEPRCF405/config.h | 1 - configs/GEPRCF411/config.h | 1 - configs/GEPRCF411_AIO/config.h | 1 - configs/GEPRCF722/config.h | 1 - configs/GEPRCF722BT/config.h | 1 - configs/GEPRCF722_BT_HD/config.h | 1 - configs/GEPRCF745_BT_HD/config.h | 1 - configs/GEPRC_F722_AIO/config.h | 1 - configs/GRAVITYF7/config.h | 1 - configs/HAKRCF405V2/config.h | 1 - configs/HAKRCF411D/config.h | 1 - configs/HAKRCF722D/config.h | 1 - configs/HAKRCF722MINI/config.h | 1 - configs/HAKRCF722V2/config.h | 1 - configs/HAKRCF7230D/config.h | 1 - configs/HGLRCF405/config.h | 2 -- configs/HGLRCF405AS/config.h | 1 - configs/HGLRCF405V2/config.h | 1 - configs/HGLRCF722/config.h | 1 - configs/HGLRCF722AIO/config.h | 1 - configs/HGLRCF722E/config.h | 1 - configs/HGLRCF722MINI/config.h | 1 - configs/HOBBYWING_XROTORF4G3/config.h | 1 - configs/HOBBYWING_XROTORF7CONV/config.h | 1 - configs/IFLIGHT_BLITZ_F722/config.h | 1 - configs/IFLIGHT_BLITZ_F722_X1/config.h | 1 - configs/IFLIGHT_BLITZ_F7_AIO/config.h | 1 - configs/IFLIGHT_BLITZ_F7_PRO/config.h | 1 - configs/IFLIGHT_F405_TWING/config.h | 1 - configs/IFLIGHT_F411_AIO32/config.h | 1 - configs/IFLIGHT_F722_TWING/config.h | 1 - configs/IFLIGHT_F745_AIO/config.h | 1 - configs/IFLIGHT_F745_AIO_V2/config.h | 3 --- configs/IFLIGHT_H743_AIO_V2/config.h | 1 - configs/IFLIGHT_H7_TWING/config.h | 1 - configs/IFLIGHT_SUCCEX_E_F4/config.h | 1 - configs/IFLIGHT_SUCCEX_E_F7/config.h | 1 - configs/JBF7/config.h | 1 - configs/JBF7_DJI/config.h | 1 - configs/JBF7_V2/config.h | 1 - configs/JHEF405/config.h | 1 - configs/JHEF405PRO/config.h | 1 - configs/JHEF411/config.h | 1 - configs/JHEF745/config.h | 1 - configs/JHEH743_AIO/config.h | 1 - configs/KAKUTEF4V2/config.h | 1 - configs/KAKUTEF7/config.h | 1 - configs/KAKUTEF7HDV/config.h | 1 - configs/KAKUTEF7MINI/config.h | 2 -- configs/KAKUTEF7MINIV3/config.h | 1 - configs/KAKUTEF7V2/config.h | 1 - configs/KAKUTEH7/config.h | 1 - configs/KAKUTEH7MINI/config.h | 1 - configs/KAKUTEH7V2/config.h | 1 - configs/KD722/config.h | 1 - configs/KROOZX/config.h | 1 - configs/LDARC_F411/config.h | 1 - configs/LUXF4OSD/config.h | 1 - configs/MAMBAF405US/config.h | 1 - configs/MAMBAF405US_I2C/config.h | 1 - configs/MAMBAF405_2022A/config.h | 1 - configs/MAMBAF405_2022B/config.h | 1 - configs/MAMBAF722/config.h | 2 -- configs/MAMBAF722_2022A/config.h | 1 - configs/MAMBAF722_2022B/config.h | 1 - configs/MAMBAF722_I2C/config.h | 1 - configs/MAMBAF722_X8/config.h | 1 - configs/MAMBAH743/config.h | 1 - configs/MAMBAH743_2022B/config.h | 1 - configs/MATEKF405AIO/config.h | 1 - configs/MATEKF405CTR/config.h | 1 - configs/MATEKF405MINI/config.h | 1 - configs/MATEKF405SE/config.h | 1 - configs/MATEKF405STD/config.h | 1 - configs/MATEKF405STD_CLONE/config.h | 1 - configs/MATEKF405TE/config.h | 1 - configs/MATEKF405TE_SD/config.h | 1 - configs/MATEKF411/config.h | 1 - configs/MATEKF411SE/config.h | 1 - configs/MATEKF722/config.h | 1 - configs/MATEKF722HD/config.h | 2 +- configs/MATEKF722MINI/config.h | 1 - configs/MATEKF722SE/config.h | 1 - configs/MATEKH743/config.h | 1 - configs/MERAKRCF405/config.h | 1 - configs/MERAKRCF722/config.h | 1 - configs/MINI_H743_HD/config.h | 1 - configs/NAMIMNOF722/config.h | 1 - configs/NBD_GALAXYAIO255/config.h | 1 - configs/NBD_INFINITYAIOV2/config.h | 1 - configs/NBD_INFINITYAIOV2PRO/config.h | 1 - configs/NEUTRONRCF411AIO/config.h | 1 - configs/NEUTRONRCF722AIO/config.h | 1 - configs/NEUTRONRCF7AIO/config.h | 3 --- configs/NEUTRONRCH743AIO/config.h | 1 - configs/NUCLEOF722/config.h | 1 - configs/OMNIBUSF4/config.h | 1 - configs/OMNIBUSF4FW/config.h | 1 - configs/OMNIBUSF4NANO/config.h | 1 - configs/OMNIBUSF4SD/config.h | 1 - configs/OMNIBUSF4V6/config.h | 1 - configs/OMNIBUSF7/config.h | 1 - configs/OMNIBUSF7V2/config.h | 1 - configs/OMNINXT4/config.h | 1 - configs/OMNINXT7/config.h | 1 - configs/PODIUMF4/config.h | 1 - configs/PYRODRONEF4PDB/config.h | 1 - configs/REVO/config.h | 1 - configs/RUSHCORE7/config.h | 1 - configs/SDMODELH7/config.h | 1 - configs/SKYSTARSF405/config.h | 1 - configs/SKYSTARSF7HD/config.h | 1 - configs/SKYSTARSF7HDPRO/config.h | 1 - configs/SKYSTARSF7RS/config.h | 1 - configs/SKYSTARSH7HD/config.h | 1 - configs/SKYZONEF405/config.h | 1 - configs/SOLOGOODF722/config.h | 1 - configs/SOULF4/config.h | 1 - configs/SPEDIXF4/config.h | 1 - configs/SPEDIXF405/config.h | 1 - configs/SPEDIXF722/config.h | 1 - configs/SPEEDYBEEF4/config.h | 1 - configs/SPEEDYBEEF405MINI/config.h | 1 - configs/SPEEDYBEEF405V3/config.h | 1 - configs/SPEEDYBEEF405V4/config.h | 1 - configs/SPEEDYBEEF7/config.h | 1 - configs/SPEEDYBEEF7MINI/config.h | 1 - configs/SPEEDYBEEF7MINIV2/config.h | 1 - configs/SPEEDYBEEF7V2/config.h | 1 - configs/SPEEDYBEEF7V3/config.h | 1 - configs/SPEEDYBEE_F745_AIO/config.h | 1 - configs/SPRACINGF4EVO/config.h | 1 - configs/SPRACINGF4NEO/config.h | 1 - configs/SPRACINGF7DUAL/config.h | 1 - configs/STELLARF7/config.h | 1 - configs/STM32F411DISCOVERY/config.h | 1 - configs/SUB250REDFOXF722AIO/config.h | 1 - configs/TAKERF722SE/config.h | 1 - configs/TALONF7FUSION/config.h | 1 - configs/TCMMF7/config.h | 1 - configs/TMH7/config.h | 1 - configs/TMOTORF4/config.h | 1 - configs/TMOTORF7/config.h | 1 - configs/TMOTORF722SE/config.h | 1 - configs/TMOTORH743/config.h | 1 - configs/TMOTORVELOXF7V2/config.h | 1 - configs/TMVELOXF411/config.h | 1 - configs/TMVELOXF7/config.h | 1 - configs/UAVPNG030MINI/config.h | 1 - configs/VEKTORF722/config.h | 1 - configs/VGOODF722DUAL/config.h | 1 - configs/VGOODRCF4/config.h | 1 - configs/VIVAF4AIO/config.h | 1 - configs/WIZZF7HD/config.h | 1 - configs/XRACERF4/config.h | 1 - configs/YUPIF7/config.h | 1 - configs/ZEEZF7V2/config.h | 1 - configs/ZEEZF7V3/config.h | 1 - configs/ZEUSF722_AIO/config.h | 1 - 231 files changed, 1 insertion(+), 256 deletions(-) diff --git a/configs/AG3XF4/config.h b/configs/AG3XF4/config.h index 73b9af60..278d0918 100644 --- a/configs/AG3XF4/config.h +++ b/configs/AG3XF4/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AG3XF7/config.h b/configs/AG3XF7/config.h index 736d8785..07bdc7ba 100644 --- a/configs/AG3XF7/config.h +++ b/configs/AG3XF7/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AIRBOTF4/config.h b/configs/AIRBOTF4/config.h index c4e3992b..abb68049 100644 --- a/configs/AIRBOTF4/config.h +++ b/configs/AIRBOTF4/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 #define BEEPER_INVERTED diff --git a/configs/AIRBOTF4SD/config.h b/configs/AIRBOTF4SD/config.h index 289e2670..5a8fc241 100644 --- a/configs/AIRBOTF4SD/config.h +++ b/configs/AIRBOTF4SD/config.h @@ -104,7 +104,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/ANYFCF7/config.h b/configs/ANYFCF7/config.h index 70ccf2e8..5b889c29 100644 --- a/configs/ANYFCF7/config.h +++ b/configs/ANYFCF7/config.h @@ -115,7 +115,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/AOCODAF405/config.h b/configs/AOCODAF405/config.h index 040b67e1..7f8a6e3d 100644 --- a/configs/AOCODAF405/config.h +++ b/configs/AOCODAF405/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/AOCODAF405V2MPU6000/config.h b/configs/AOCODAF405V2MPU6000/config.h index 090ee2f8..d1682b48 100644 --- a/configs/AOCODAF405V2MPU6000/config.h +++ b/configs/AOCODAF405V2MPU6000/config.h @@ -95,7 +95,6 @@ #define ADC_INSTANCE ADC3 #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AOCODAF405V2MPU6500/config.h b/configs/AOCODAF405V2MPU6500/config.h index 8f981aea..45e4d584 100644 --- a/configs/AOCODAF405V2MPU6500/config.h +++ b/configs/AOCODAF405V2MPU6500/config.h @@ -95,7 +95,6 @@ #define ADC_INSTANCE ADC3 #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AOCODAF722MINI/config.h b/configs/AOCODAF722MINI/config.h index 7ad948a4..48f9320a 100644 --- a/configs/AOCODAF722MINI/config.h +++ b/configs/AOCODAF722MINI/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/AOCODAF722MINIV2/config.h b/configs/AOCODAF722MINIV2/config.h index b2e19a0c..a023a0cd 100644 --- a/configs/AOCODAF722MINIV2/config.h +++ b/configs/AOCODAF722MINIV2/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AOCODARCF405_AIO/config.h b/configs/AOCODARCF405_AIO/config.h index 1140ff99..fa428b4e 100644 --- a/configs/AOCODARCF405_AIO/config.h +++ b/configs/AOCODARCF405_AIO/config.h @@ -89,7 +89,6 @@ #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/AOCODARCF411_AIO/config.h b/configs/AOCODARCF411_AIO/config.h index 579cbaae..c1af7d3c 100644 --- a/configs/AOCODARCF411_AIO/config.h +++ b/configs/AOCODARCF411_AIO/config.h @@ -83,7 +83,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define FLASH_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/AOCODARCF722_AIO/config.h b/configs/AOCODARCF722_AIO/config.h index 838f9ceb..7ec4e411 100644 --- a/configs/AOCODARCF722_AIO/config.h +++ b/configs/AOCODARCF722_AIO/config.h @@ -123,7 +123,6 @@ #define BARO_I2C_INSTANCE (I2CDEV_1) #define FLASH_SPI_INSTANCE SPI3 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define MAX7456_SPI_INSTANCE SPI2 #define SERIALRX_UART SERIAL_PORT_USART2 diff --git a/configs/AOCODARCF7DUAL/config.h b/configs/AOCODARCF7DUAL/config.h index e9f34941..49d998c8 100644 --- a/configs/AOCODARCF7DUAL/config.h +++ b/configs/AOCODARCF7DUAL/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/AOCODARCH7DUAL/config.h b/configs/AOCODARCH7DUAL/config.h index 9211b877..ea824d18 100644 --- a/configs/AOCODARCH7DUAL/config.h +++ b/configs/AOCODARCH7DUAL/config.h @@ -127,7 +127,6 @@ #define TIMUP5_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/AXISFLYINGF7PRO/config.h b/configs/AXISFLYINGF7PRO/config.h index e358f1b8..fb16bad7 100644 --- a/configs/AXISFLYINGF7PRO/config.h +++ b/configs/AXISFLYINGF7PRO/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/BAYCK_DOLPHIN/config.h b/configs/BAYCK_DOLPHIN/config.h index a832310b..ea6f2a98 100644 --- a/configs/BAYCK_DOLPHIN/config.h +++ b/configs/BAYCK_DOLPHIN/config.h @@ -104,7 +104,6 @@ #define ADC_INSTANCE ADC1 #define ADC1_DMA_OPT 11 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/BETAFLIGHTF4/config.h b/configs/BETAFLIGHTF4/config.h index f9d06cf3..453d3e3d 100644 --- a/configs/BETAFLIGHTF4/config.h +++ b/configs/BETAFLIGHTF4/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define BEEPER_INVERTED diff --git a/configs/BETAFPVF405/config.h b/configs/BETAFPVF405/config.h index 93ce84b6..0242ac4e 100644 --- a/configs/BETAFPVF405/config.h +++ b/configs/BETAFPVF405/config.h @@ -101,7 +101,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/configs/BETAFPVF405_ELRS/config.h b/configs/BETAFPVF405_ELRS/config.h index 603ffaf7..8e3efc28 100644 --- a/configs/BETAFPVF405_ELRS/config.h +++ b/configs/BETAFPVF405_ELRS/config.h @@ -101,7 +101,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/configs/BETAFPVH743/config.h b/configs/BETAFPVH743/config.h index dacf4411..0aac565d 100644 --- a/configs/BETAFPVH743/config.h +++ b/configs/BETAFPVH743/config.h @@ -118,7 +118,6 @@ #define TIMUP8_DMA_OPT 0 #define TIMUP0_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/BLUEJAYF4/config.h b/configs/BLUEJAYF4/config.h index 68036af4..59d98212 100644 --- a/configs/BLUEJAYF4/config.h +++ b/configs/BLUEJAYF4/config.h @@ -85,7 +85,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED diff --git a/configs/CLRACINGF7/config.h b/configs/CLRACINGF7/config.h index 738277cc..4b47cbef 100644 --- a/configs/CLRACINGF7/config.h +++ b/configs/CLRACINGF7/config.h @@ -106,8 +106,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/COLIBRI/config.h b/configs/COLIBRI/config.h index 35a80ad6..69b0a9c7 100644 --- a/configs/COLIBRI/config.h +++ b/configs/COLIBRI/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_3) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/CRAZYBEEF405/config.h b/configs/CRAZYBEEF405/config.h index b1911677..ba7466e8 100644 --- a/configs/CRAZYBEEF405/config.h +++ b/configs/CRAZYBEEF405/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define BEEPER_INVERTED diff --git a/configs/CYCLONEF405_PRO/config.h b/configs/CYCLONEF405_PRO/config.h index 3c83e20a..d8a3e8d3 100644 --- a/configs/CYCLONEF405_PRO/config.h +++ b/configs/CYCLONEF405_PRO/config.h @@ -87,8 +87,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/CYCLONEF722_PRO/config.h b/configs/CYCLONEF722_PRO/config.h index 1837ee60..7761efa9 100644 --- a/configs/CYCLONEF722_PRO/config.h +++ b/configs/CYCLONEF722_PRO/config.h @@ -96,7 +96,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/DALRCF405/config.h b/configs/DALRCF405/config.h index 5cd7583b..4bd00028 100644 --- a/configs/DALRCF405/config.h +++ b/configs/DALRCF405/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/DALRCF722DUAL/config.h b/configs/DALRCF722DUAL/config.h index 84b56d01..c1f16a13 100644 --- a/configs/DALRCF722DUAL/config.h +++ b/configs/DALRCF722DUAL/config.h @@ -94,7 +94,6 @@ #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/DARWINF411/config.h b/configs/DARWINF411/config.h index ad360c56..298167d8 100644 --- a/configs/DARWINF411/config.h +++ b/configs/DARWINF411/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define I2C1_CLOCKSPEED 400 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/DARWINF722HD/config.h b/configs/DARWINF722HD/config.h index b63e1dd6..6b44ad41 100644 --- a/configs/DARWINF722HD/config.h +++ b/configs/DARWINF722HD/config.h @@ -105,7 +105,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/DARWINF722HDV2/config.h b/configs/DARWINF722HDV2/config.h index a8d9b1a7..120af552 100644 --- a/configs/DARWINF722HDV2/config.h +++ b/configs/DARWINF722HDV2/config.h @@ -110,7 +110,6 @@ dma SPI_MOSI 3 0 # SPI_MOSI 3: DMA1 Stream 5 Channel 0 */ -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/DFR_F722_DUAL_HD/config.h b/configs/DFR_F722_DUAL_HD/config.h index 1a7d09d7..bb71318e 100644 --- a/configs/DFR_F722_DUAL_HD/config.h +++ b/configs/DFR_F722_DUAL_HD/config.h @@ -102,7 +102,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC3 diff --git a/configs/DRONIUSF7/config.h b/configs/DRONIUSF7/config.h index a93f28e2..445e0b1d 100644 --- a/configs/DRONIUSF7/config.h +++ b/configs/DRONIUSF7/config.h @@ -78,8 +78,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/DYSF4PRO/config.h b/configs/DYSF4PRO/config.h index 120ef68c..02516ff3 100644 --- a/configs/DYSF4PRO/config.h +++ b/configs/DYSF4PRO/config.h @@ -97,7 +97,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/EACHINEF722/config.h b/configs/EACHINEF722/config.h index d99ca6d0..29c08055 100644 --- a/configs/EACHINEF722/config.h +++ b/configs/EACHINEF722/config.h @@ -105,7 +105,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/EACHINEF722_AIO/config.h b/configs/EACHINEF722_AIO/config.h index acca2704..f724acdf 100644 --- a/configs/EACHINEF722_AIO/config.h +++ b/configs/EACHINEF722_AIO/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/EXF722DUAL/config.h b/configs/EXF722DUAL/config.h index 6ad81625..357ac9a7 100644 --- a/configs/EXF722DUAL/config.h +++ b/configs/EXF722DUAL/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/configs/EXUAVF4PRO/config.h b/configs/EXUAVF4PRO/config.h index b55eb375..8c930eb8 100644 --- a/configs/EXUAVF4PRO/config.h +++ b/configs/EXUAVF4PRO/config.h @@ -98,7 +98,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/F4BY/config.h b/configs/F4BY/config.h index b644eb20..dd4bddde 100644 --- a/configs/F4BY/config.h +++ b/configs/F4BY/config.h @@ -108,7 +108,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/FLASHHOBBYF405/config.h b/configs/FLASHHOBBYF405/config.h index aa6c5dc7..35050064 100644 --- a/configs/FLASHHOBBYF405/config.h +++ b/configs/FLASHHOBBYF405/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 0 #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/FLASHHOBBYF722/config.h b/configs/FLASHHOBBYF722/config.h index a372d373..8bcb8a72 100644 --- a/configs/FLASHHOBBYF722/config.h +++ b/configs/FLASHHOBBYF722/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 0 #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/FLYCOLORF7/config.h b/configs/FLYCOLORF7/config.h index 6acb5fb8..c2251211 100644 --- a/configs/FLYCOLORF7/config.h +++ b/configs/FLYCOLORF7/config.h @@ -98,7 +98,6 @@ #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYCOLORF7_AIO/config.h b/configs/FLYCOLORF7_AIO/config.h index 1f093a0c..6a127603 100644 --- a/configs/FLYCOLORF7_AIO/config.h +++ b/configs/FLYCOLORF7_AIO/config.h @@ -90,7 +90,6 @@ #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF405/config.h b/configs/FLYWOOF405/config.h index 9dab70b6..e56102a4 100644 --- a/configs/FLYWOOF405/config.h +++ b/configs/FLYWOOF405/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF diff --git a/configs/FLYWOOF405NANO/config.h b/configs/FLYWOOF405NANO/config.h index 8ce94963..95cfe6d5 100644 --- a/configs/FLYWOOF405NANO/config.h +++ b/configs/FLYWOOF405NANO/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF405PRO/config.h b/configs/FLYWOOF405PRO/config.h index 8d3f7b46..cf190123 100644 --- a/configs/FLYWOOF405PRO/config.h +++ b/configs/FLYWOOF405PRO/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF405S_AIO/config.h b/configs/FLYWOOF405S_AIO/config.h index 1e13f43a..d5874809 100644 --- a/configs/FLYWOOF405S_AIO/config.h +++ b/configs/FLYWOOF405S_AIO/config.h @@ -95,7 +95,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/FLYWOOF411/config.h b/configs/FLYWOOF411/config.h index 5f27c71c..5d124f99 100644 --- a/configs/FLYWOOF411/config.h +++ b/configs/FLYWOOF411/config.h @@ -88,7 +88,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/FLYWOOF411EVO_HD/config.h b/configs/FLYWOOF411EVO_HD/config.h index 0fcb5e88..c5554b30 100644 --- a/configs/FLYWOOF411EVO_HD/config.h +++ b/configs/FLYWOOF411EVO_HD/config.h @@ -80,7 +80,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define USE_ADC diff --git a/configs/FLYWOOF411HEX/config.h b/configs/FLYWOOF411HEX/config.h index 90e29827..89c93b99 100644 --- a/configs/FLYWOOF411HEX/config.h +++ b/configs/FLYWOOF411HEX/config.h @@ -80,8 +80,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/FLYWOOF411V2/config.h b/configs/FLYWOOF411V2/config.h index 0787ac02..3065cdb6 100644 --- a/configs/FLYWOOF411V2/config.h +++ b/configs/FLYWOOF411V2/config.h @@ -83,7 +83,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF411_5IN1_AIO/config.h b/configs/FLYWOOF411_5IN1_AIO/config.h index ac1a7891..05139d47 100644 --- a/configs/FLYWOOF411_5IN1_AIO/config.h +++ b/configs/FLYWOOF411_5IN1_AIO/config.h @@ -84,7 +84,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_FRSKY_D #define RX_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF745/config.h b/configs/FLYWOOF745/config.h index a5ace73f..239e7bf9 100644 --- a/configs/FLYWOOF745/config.h +++ b/configs/FLYWOOF745/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF745AIO/config.h b/configs/FLYWOOF745AIO/config.h index 5e02532e..4b24d07a 100644 --- a/configs/FLYWOOF745AIO/config.h +++ b/configs/FLYWOOF745AIO/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FLYWOOF745NANO/config.h b/configs/FLYWOOF745NANO/config.h index 142ae0c3..b77905fa 100644 --- a/configs/FLYWOOF745NANO/config.h +++ b/configs/FLYWOOF745NANO/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/configs/FLYWOOF7DUAL/config.h b/configs/FLYWOOF7DUAL/config.h index d6c151c3..44327d03 100644 --- a/configs/FLYWOOF7DUAL/config.h +++ b/configs/FLYWOOF7DUAL/config.h @@ -107,7 +107,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/FOXEERF722DUAL/config.h b/configs/FOXEERF722DUAL/config.h index fafacceb..336a9294 100644 --- a/configs/FOXEERF722DUAL/config.h +++ b/configs/FOXEERF722DUAL/config.h @@ -93,7 +93,6 @@ #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FOXEERF722V2/config.h b/configs/FOXEERF722V2/config.h index 53ef0288..70456067 100644 --- a/configs/FOXEERF722V2/config.h +++ b/configs/FOXEERF722V2/config.h @@ -90,7 +90,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FOXEERF722V3/config.h b/configs/FOXEERF722V3/config.h index 2fe9edef..d4e7bd54 100644 --- a/configs/FOXEERF722V3/config.h +++ b/configs/FOXEERF722V3/config.h @@ -91,7 +91,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FOXEERF722V4/config.h b/configs/FOXEERF722V4/config.h index 6a1a2321..05b465b7 100644 --- a/configs/FOXEERF722V4/config.h +++ b/configs/FOXEERF722V4/config.h @@ -94,7 +94,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 diff --git a/configs/FOXEERF745V2_AIO/config.h b/configs/FOXEERF745V2_AIO/config.h index f889a106..43c46617 100644 --- a/configs/FOXEERF745V2_AIO/config.h +++ b/configs/FOXEERF745V2_AIO/config.h @@ -86,10 +86,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/FOXEERF745V3_AIO/config.h b/configs/FOXEERF745V3_AIO/config.h index 8502ad32..6b743d7f 100644 --- a/configs/FOXEERF745V3_AIO/config.h +++ b/configs/FOXEERF745V3_AIO/config.h @@ -87,10 +87,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/FOXEERF745V4_AIO/config.h b/configs/FOXEERF745V4_AIO/config.h index 83c7d06d..74ae434e 100644 --- a/configs/FOXEERF745V4_AIO/config.h +++ b/configs/FOXEERF745V4_AIO/config.h @@ -89,9 +89,6 @@ #define ADC1_DMA_OPT 1 #define ADC_INSTANCE ADC1 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/FOXEERF745_AIO/config.h b/configs/FOXEERF745_AIO/config.h index 72a79a56..40702e66 100644 --- a/configs/FOXEERF745_AIO/config.h +++ b/configs/FOXEERF745_AIO/config.h @@ -87,10 +87,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/FOXEERH743/config.h b/configs/FOXEERH743/config.h index 8680fdb6..95ed2a35 100644 --- a/configs/FOXEERH743/config.h +++ b/configs/FOXEERH743/config.h @@ -108,9 +108,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/FPVM_BETAFLIGHTF7/config.h b/configs/FPVM_BETAFLIGHTF7/config.h index 2b8d8604..fa0cfcdb 100644 --- a/configs/FPVM_BETAFLIGHTF7/config.h +++ b/configs/FPVM_BETAFLIGHTF7/config.h @@ -95,7 +95,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/FREEAXISF4/config.h b/configs/FREEAXISF4/config.h index c072e0fb..5583748c 100644 --- a/configs/FREEAXISF4/config.h +++ b/configs/FREEAXISF4/config.h @@ -82,7 +82,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/FURYF4/config.h b/configs/FURYF4/config.h index 2125b594..aad8feb1 100644 --- a/configs/FURYF4/config.h +++ b/configs/FURYF4/config.h @@ -89,7 +89,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED diff --git a/configs/FURYF4OSD/config.h b/configs/FURYF4OSD/config.h index 94a5d3aa..e5d856a9 100644 --- a/configs/FURYF4OSD/config.h +++ b/configs/FURYF4OSD/config.h @@ -96,7 +96,6 @@ #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_ADDRESS 1 #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 #define DASHBOARD_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/GEELANGF411/config.h b/configs/GEELANGF411/config.h index 2340f462..7907644a 100644 --- a/configs/GEELANGF411/config.h +++ b/configs/GEELANGF411/config.h @@ -77,8 +77,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF diff --git a/configs/GEMEF411/config.h b/configs/GEMEF411/config.h index 6ed85b83..a8d20a25 100644 --- a/configs/GEMEF411/config.h +++ b/configs/GEMEF411/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/GEPRCF405/config.h b/configs/GEPRCF405/config.h index eb2edef1..37ed7610 100644 --- a/configs/GEPRCF405/config.h +++ b/configs/GEPRCF405/config.h @@ -103,7 +103,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/GEPRCF411/config.h b/configs/GEPRCF411/config.h index 59ec60cf..c7e15c32 100644 --- a/configs/GEPRCF411/config.h +++ b/configs/GEPRCF411/config.h @@ -85,7 +85,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/GEPRCF411_AIO/config.h b/configs/GEPRCF411_AIO/config.h index e6a7b572..5f0812c8 100644 --- a/configs/GEPRCF411_AIO/config.h +++ b/configs/GEPRCF411_AIO/config.h @@ -89,7 +89,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 100 diff --git a/configs/GEPRCF722/config.h b/configs/GEPRCF722/config.h index e8c1545c..6d4a88de 100644 --- a/configs/GEPRCF722/config.h +++ b/configs/GEPRCF722/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/GEPRCF722BT/config.h b/configs/GEPRCF722BT/config.h index e51ad55c..c6eae797 100644 --- a/configs/GEPRCF722BT/config.h +++ b/configs/GEPRCF722BT/config.h @@ -89,7 +89,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/GEPRCF722_BT_HD/config.h b/configs/GEPRCF722_BT_HD/config.h index a4f148e1..46a1c2cd 100644 --- a/configs/GEPRCF722_BT_HD/config.h +++ b/configs/GEPRCF722_BT_HD/config.h @@ -103,7 +103,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/GEPRCF745_BT_HD/config.h b/configs/GEPRCF745_BT_HD/config.h index cbbfc67f..3928101e 100644 --- a/configs/GEPRCF745_BT_HD/config.h +++ b/configs/GEPRCF745_BT_HD/config.h @@ -103,7 +103,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) //TODO #define BLACKBOX_SAMPLE_RATE 1/1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/GEPRC_F722_AIO/config.h b/configs/GEPRC_F722_AIO/config.h index ec9704e5..ef76f3bf 100644 --- a/configs/GEPRC_F722_AIO/config.h +++ b/configs/GEPRC_F722_AIO/config.h @@ -94,7 +94,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_2) #define USE_ADC diff --git a/configs/GRAVITYF7/config.h b/configs/GRAVITYF7/config.h index fda9e973..dfd0626e 100644 --- a/configs/GRAVITYF7/config.h +++ b/configs/GRAVITYF7/config.h @@ -89,7 +89,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_I2C_ADDRESS 119 diff --git a/configs/HAKRCF405V2/config.h b/configs/HAKRCF405V2/config.h index 8f17dd28..c81aff6d 100644 --- a/configs/HAKRCF405V2/config.h +++ b/configs/HAKRCF405V2/config.h @@ -102,7 +102,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define BEEPER_INVERTED diff --git a/configs/HAKRCF411D/config.h b/configs/HAKRCF411D/config.h index d3a2aab1..a5a7c545 100644 --- a/configs/HAKRCF411D/config.h +++ b/configs/HAKRCF411D/config.h @@ -96,7 +96,6 @@ #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED -#define MAG_I2C_INSTANCE (I2CDEV_1) #define MAX7456_SPI_INSTANCE SPI2 #define PINIO1_BOX 40 #define PINIO2_BOX 41 diff --git a/configs/HAKRCF722D/config.h b/configs/HAKRCF722D/config.h index 14ec132a..dad50572 100644 --- a/configs/HAKRCF722D/config.h +++ b/configs/HAKRCF722D/config.h @@ -111,7 +111,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/HAKRCF722MINI/config.h b/configs/HAKRCF722MINI/config.h index 6e1ce13f..364902ab 100644 --- a/configs/HAKRCF722MINI/config.h +++ b/configs/HAKRCF722MINI/config.h @@ -106,7 +106,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/HAKRCF722V2/config.h b/configs/HAKRCF722V2/config.h index 96135ce6..dc8b2948 100644 --- a/configs/HAKRCF722V2/config.h +++ b/configs/HAKRCF722V2/config.h @@ -99,7 +99,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/HAKRCF7230D/config.h b/configs/HAKRCF7230D/config.h index ae4f8b8b..67f8c8dd 100644 --- a/configs/HAKRCF7230D/config.h +++ b/configs/HAKRCF7230D/config.h @@ -106,7 +106,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/HGLRCF405/config.h b/configs/HGLRCF405/config.h index 769ac6d3..1df83151 100644 --- a/configs/HGLRCF405/config.h +++ b/configs/HGLRCF405/config.h @@ -93,8 +93,6 @@ #define ADC2_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1 -#define MAG_ALIGN DEFAULT -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 diff --git a/configs/HGLRCF405AS/config.h b/configs/HGLRCF405AS/config.h index 2644d6b9..889e718e 100644 --- a/configs/HGLRCF405AS/config.h +++ b/configs/HGLRCF405AS/config.h @@ -96,7 +96,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define RX_SPI_INSTANCE SPI3 diff --git a/configs/HGLRCF405V2/config.h b/configs/HGLRCF405V2/config.h index 3fe9f3a3..06134b4c 100644 --- a/configs/HGLRCF405V2/config.h +++ b/configs/HGLRCF405V2/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define ADC_INSTANCE ADC1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/HGLRCF722/config.h b/configs/HGLRCF722/config.h index 81e8aa3d..42a500c4 100644 --- a/configs/HGLRCF722/config.h +++ b/configs/HGLRCF722/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/HGLRCF722AIO/config.h b/configs/HGLRCF722AIO/config.h index 739c3b9d..3a85decc 100644 --- a/configs/HGLRCF722AIO/config.h +++ b/configs/HGLRCF722AIO/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 diff --git a/configs/HGLRCF722E/config.h b/configs/HGLRCF722E/config.h index fbe4401c..1843ff39 100644 --- a/configs/HGLRCF722E/config.h +++ b/configs/HGLRCF722E/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/configs/HGLRCF722MINI/config.h b/configs/HGLRCF722MINI/config.h index baa874fc..2b17fa21 100644 --- a/configs/HGLRCF722MINI/config.h +++ b/configs/HGLRCF722MINI/config.h @@ -97,7 +97,6 @@ #define ADC_INSTANCE ADC3 #define MSP_UART SERIAL_PORT_UART5 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/HOBBYWING_XROTORF4G3/config.h b/configs/HOBBYWING_XROTORF4G3/config.h index e716c865..907a01e7 100644 --- a/configs/HOBBYWING_XROTORF4G3/config.h +++ b/configs/HOBBYWING_XROTORF4G3/config.h @@ -100,7 +100,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/HOBBYWING_XROTORF7CONV/config.h b/configs/HOBBYWING_XROTORF7CONV/config.h index 506f13d3..13bb26de 100644 --- a/configs/HOBBYWING_XROTORF7CONV/config.h +++ b/configs/HOBBYWING_XROTORF7CONV/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/IFLIGHT_BLITZ_F722/config.h b/configs/IFLIGHT_BLITZ_F722/config.h index e70d80c3..84b8e319 100644 --- a/configs/IFLIGHT_BLITZ_F722/config.h +++ b/configs/IFLIGHT_BLITZ_F722/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/IFLIGHT_BLITZ_F722_X1/config.h b/configs/IFLIGHT_BLITZ_F722_X1/config.h index ba7cc9a8..c72fb46f 100644 --- a/configs/IFLIGHT_BLITZ_F722_X1/config.h +++ b/configs/IFLIGHT_BLITZ_F722_X1/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/IFLIGHT_BLITZ_F7_AIO/config.h b/configs/IFLIGHT_BLITZ_F7_AIO/config.h index d53cd37a..d8d93cc2 100644 --- a/configs/IFLIGHT_BLITZ_F7_AIO/config.h +++ b/configs/IFLIGHT_BLITZ_F7_AIO/config.h @@ -109,7 +109,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_4) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/IFLIGHT_BLITZ_F7_PRO/config.h b/configs/IFLIGHT_BLITZ_F7_PRO/config.h index 3c66fd05..fce5ce84 100644 --- a/configs/IFLIGHT_BLITZ_F7_PRO/config.h +++ b/configs/IFLIGHT_BLITZ_F7_PRO/config.h @@ -93,7 +93,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/IFLIGHT_F405_TWING/config.h b/configs/IFLIGHT_F405_TWING/config.h index 40a1f7b8..2cc84206 100644 --- a/configs/IFLIGHT_F405_TWING/config.h +++ b/configs/IFLIGHT_F405_TWING/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/IFLIGHT_F411_AIO32/config.h b/configs/IFLIGHT_F411_AIO32/config.h index abff28b5..75cc9e12 100644 --- a/configs/IFLIGHT_F411_AIO32/config.h +++ b/configs/IFLIGHT_F411_AIO32/config.h @@ -86,7 +86,6 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/IFLIGHT_F722_TWING/config.h b/configs/IFLIGHT_F722_TWING/config.h index 011d9a1f..1c92ad49 100644 --- a/configs/IFLIGHT_F722_TWING/config.h +++ b/configs/IFLIGHT_F722_TWING/config.h @@ -104,7 +104,6 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC3 diff --git a/configs/IFLIGHT_F745_AIO/config.h b/configs/IFLIGHT_F745_AIO/config.h index f6b550ba..2b277703 100644 --- a/configs/IFLIGHT_F745_AIO/config.h +++ b/configs/IFLIGHT_F745_AIO/config.h @@ -105,7 +105,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/IFLIGHT_F745_AIO_V2/config.h b/configs/IFLIGHT_F745_AIO_V2/config.h index 121619cf..301d83de 100644 --- a/configs/IFLIGHT_F745_AIO_V2/config.h +++ b/configs/IFLIGHT_F745_AIO_V2/config.h @@ -104,9 +104,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/IFLIGHT_H743_AIO_V2/config.h b/configs/IFLIGHT_H743_AIO_V2/config.h index 38bdfec6..ad505098 100644 --- a/configs/IFLIGHT_H743_AIO_V2/config.h +++ b/configs/IFLIGHT_H743_AIO_V2/config.h @@ -113,7 +113,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/IFLIGHT_H7_TWING/config.h b/configs/IFLIGHT_H7_TWING/config.h index 2cc83e36..5c2d7bb3 100644 --- a/configs/IFLIGHT_H7_TWING/config.h +++ b/configs/IFLIGHT_H7_TWING/config.h @@ -110,7 +110,6 @@ #define TIMUP8_DMA_OPT 4 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/IFLIGHT_SUCCEX_E_F4/config.h b/configs/IFLIGHT_SUCCEX_E_F4/config.h index 4f8e7e8e..16e3bfef 100644 --- a/configs/IFLIGHT_SUCCEX_E_F4/config.h +++ b/configs/IFLIGHT_SUCCEX_E_F4/config.h @@ -86,7 +86,6 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/IFLIGHT_SUCCEX_E_F7/config.h b/configs/IFLIGHT_SUCCEX_E_F7/config.h index 9f7160f3..d0e3425c 100644 --- a/configs/IFLIGHT_SUCCEX_E_F7/config.h +++ b/configs/IFLIGHT_SUCCEX_E_F7/config.h @@ -98,7 +98,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC3 diff --git a/configs/JBF7/config.h b/configs/JBF7/config.h index b12d9327..03a514f7 100644 --- a/configs/JBF7/config.h +++ b/configs/JBF7/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/configs/JBF7_DJI/config.h b/configs/JBF7_DJI/config.h index 2c08fec5..4a8b9b0a 100644 --- a/configs/JBF7_DJI/config.h +++ b/configs/JBF7_DJI/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/configs/JBF7_V2/config.h b/configs/JBF7_V2/config.h index 6dec79ec..bf6d95a5 100644 --- a/configs/JBF7_V2/config.h +++ b/configs/JBF7_V2/config.h @@ -95,7 +95,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/JHEF405/config.h b/configs/JHEF405/config.h index fa34dea0..58cc216c 100644 --- a/configs/JHEF405/config.h +++ b/configs/JHEF405/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/JHEF405PRO/config.h b/configs/JHEF405PRO/config.h index a7accbd6..f1e9609d 100644 --- a/configs/JHEF405PRO/config.h +++ b/configs/JHEF405PRO/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/JHEF411/config.h b/configs/JHEF411/config.h index c631b546..bdfee55b 100644 --- a/configs/JHEF411/config.h +++ b/configs/JHEF411/config.h @@ -88,7 +88,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/JHEF745/config.h b/configs/JHEF745/config.h index 08467b02..c7e59092 100644 --- a/configs/JHEF745/config.h +++ b/configs/JHEF745/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/JHEH743_AIO/config.h b/configs/JHEH743_AIO/config.h index 2732a72f..a089672c 100644 --- a/configs/JHEH743_AIO/config.h +++ b/configs/JHEH743_AIO/config.h @@ -112,7 +112,6 @@ #define TIMUP4_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/KAKUTEF4V2/config.h b/configs/KAKUTEF4V2/config.h index b186c635..1f5e49d1 100644 --- a/configs/KAKUTEF4V2/config.h +++ b/configs/KAKUTEF4V2/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/KAKUTEF7/config.h b/configs/KAKUTEF7/config.h index d4b9ecd3..622e968d 100644 --- a/configs/KAKUTEF7/config.h +++ b/configs/KAKUTEF7/config.h @@ -92,7 +92,6 @@ #define SPI1_TX_DMA_OPT 1 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/configs/KAKUTEF7HDV/config.h b/configs/KAKUTEF7HDV/config.h index a2408e71..6874df97 100644 --- a/configs/KAKUTEF7HDV/config.h +++ b/configs/KAKUTEF7HDV/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/configs/KAKUTEF7MINI/config.h b/configs/KAKUTEF7MINI/config.h index 37632693..19bf0875 100644 --- a/configs/KAKUTEF7MINI/config.h +++ b/configs/KAKUTEF7MINI/config.h @@ -93,8 +93,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) -#define MAG_HARDWARE NONE #define BARO_I2C_INSTANCE (I2CDEV_1) #define BARO_HARDWARE BMP280 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/KAKUTEF7MINIV3/config.h b/configs/KAKUTEF7MINIV3/config.h index a6582e92..784fd2ed 100644 --- a/configs/KAKUTEF7MINIV3/config.h +++ b/configs/KAKUTEF7MINIV3/config.h @@ -91,7 +91,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/configs/KAKUTEF7V2/config.h b/configs/KAKUTEF7V2/config.h index ec790cb5..69e4fb18 100644 --- a/configs/KAKUTEF7V2/config.h +++ b/configs/KAKUTEF7V2/config.h @@ -93,7 +93,6 @@ #define SPI1_TX_DMA_OPT 1 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/KAKUTEH7/config.h b/configs/KAKUTEH7/config.h index 18e74c6c..e12dc025 100644 --- a/configs/KAKUTEH7/config.h +++ b/configs/KAKUTEH7/config.h @@ -102,7 +102,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/KAKUTEH7MINI/config.h b/configs/KAKUTEH7MINI/config.h index 145ddae0..cafd20a3 100644 --- a/configs/KAKUTEH7MINI/config.h +++ b/configs/KAKUTEH7MINI/config.h @@ -104,7 +104,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/KAKUTEH7V2/config.h b/configs/KAKUTEH7V2/config.h index 0da84079..32ff6c96 100644 --- a/configs/KAKUTEH7V2/config.h +++ b/configs/KAKUTEH7V2/config.h @@ -102,7 +102,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/KD722/config.h b/configs/KD722/config.h index 2a513cc9..193b1d57 100644 --- a/configs/KD722/config.h +++ b/configs/KD722/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/KROOZX/config.h b/configs/KROOZX/config.h index 38461276..449bae06 100644 --- a/configs/KROOZX/config.h +++ b/configs/KROOZX/config.h @@ -94,7 +94,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/LDARC_F411/config.h b/configs/LDARC_F411/config.h index 0583f234..76b16c88 100644 --- a/configs/LDARC_F411/config.h +++ b/configs/LDARC_F411/config.h @@ -81,7 +81,6 @@ #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC //TODO #define VBAT_DETECT_CELL_VOLTAGE 300 diff --git a/configs/LUXF4OSD/config.h b/configs/LUXF4OSD/config.h index 6c864b4c..6d3fecd2 100644 --- a/configs/LUXF4OSD/config.h +++ b/configs/LUXF4OSD/config.h @@ -99,7 +99,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/MAMBAF405US/config.h b/configs/MAMBAF405US/config.h index e5fed4f4..1ad1550d 100644 --- a/configs/MAMBAF405US/config.h +++ b/configs/MAMBAF405US/config.h @@ -112,7 +112,6 @@ #define ESCSERIAL_PIN PB9 #define PINIO1_PIN PB0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/MAMBAF405US_I2C/config.h b/configs/MAMBAF405US_I2C/config.h index 077e45db..f6420895 100644 --- a/configs/MAMBAF405US_I2C/config.h +++ b/configs/MAMBAF405US_I2C/config.h @@ -116,7 +116,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/MAMBAF405_2022A/config.h b/configs/MAMBAF405_2022A/config.h index 8ba81535..3f1bb218 100644 --- a/configs/MAMBAF405_2022A/config.h +++ b/configs/MAMBAF405_2022A/config.h @@ -97,7 +97,6 @@ #define PINIO1_PIN PC2 #define PINIO2_PIN PC5 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 diff --git a/configs/MAMBAF405_2022B/config.h b/configs/MAMBAF405_2022B/config.h index 8c5401ef..095461c2 100644 --- a/configs/MAMBAF405_2022B/config.h +++ b/configs/MAMBAF405_2022B/config.h @@ -96,7 +96,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/MAMBAF722/config.h b/configs/MAMBAF722/config.h index db452c33..f1d9a49e 100644 --- a/configs/MAMBAF722/config.h +++ b/configs/MAMBAF722/config.h @@ -108,8 +108,6 @@ #define PINIO1_PIN PB0 -#define MAG_I2C_INSTANCE (I2CDEV_1) - #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define PINIO1_BOX 0 diff --git a/configs/MAMBAF722_2022A/config.h b/configs/MAMBAF722_2022A/config.h index dcbba3ef..54fc8519 100644 --- a/configs/MAMBAF722_2022A/config.h +++ b/configs/MAMBAF722_2022A/config.h @@ -97,7 +97,6 @@ #define PINIO1_PIN PC2 #define PINIO2_PIN PC0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/MAMBAF722_2022B/config.h b/configs/MAMBAF722_2022B/config.h index ea0e251f..24f9fa8a 100644 --- a/configs/MAMBAF722_2022B/config.h +++ b/configs/MAMBAF722_2022B/config.h @@ -98,7 +98,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/MAMBAF722_I2C/config.h b/configs/MAMBAF722_I2C/config.h index d4aa674f..5ee0ce7a 100644 --- a/configs/MAMBAF722_I2C/config.h +++ b/configs/MAMBAF722_I2C/config.h @@ -114,7 +114,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/MAMBAF722_X8/config.h b/configs/MAMBAF722_X8/config.h index b7d87fd7..837e57a5 100644 --- a/configs/MAMBAF722_X8/config.h +++ b/configs/MAMBAF722_X8/config.h @@ -95,7 +95,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/MAMBAH743/config.h b/configs/MAMBAH743/config.h index 9cf6cc7b..d93094fb 100644 --- a/configs/MAMBAH743/config.h +++ b/configs/MAMBAH743/config.h @@ -120,7 +120,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) //TODO #define SDCARD_MODE OFF #define FLASH_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/MAMBAH743_2022B/config.h b/configs/MAMBAH743_2022B/config.h index 8e8f4947..b7470f72 100644 --- a/configs/MAMBAH743_2022B/config.h +++ b/configs/MAMBAH743_2022B/config.h @@ -120,7 +120,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -#define MAG_I2C_INSTANCE (I2CDEV_1) //TODO #define SDCARD_MODE OFF #define FLASH_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/MATEKF405AIO/config.h b/configs/MATEKF405AIO/config.h index 7e8fb802..265d5f94 100644 --- a/configs/MATEKF405AIO/config.h +++ b/configs/MATEKF405AIO/config.h @@ -98,7 +98,6 @@ #define SPI3_TX_DMA_OPT 1 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/MATEKF405CTR/config.h b/configs/MATEKF405CTR/config.h index fcbd9207..ec1ec3c8 100644 --- a/configs/MATEKF405CTR/config.h +++ b/configs/MATEKF405CTR/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/MATEKF405MINI/config.h b/configs/MATEKF405MINI/config.h index a73ac6e1..45ebc559 100644 --- a/configs/MATEKF405MINI/config.h +++ b/configs/MATEKF405MINI/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MATEKF405SE/config.h b/configs/MATEKF405SE/config.h index 8548da2f..8f289b45 100644 --- a/configs/MATEKF405SE/config.h +++ b/configs/MATEKF405SE/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_I2C_ADDRESS 118 diff --git a/configs/MATEKF405STD/config.h b/configs/MATEKF405STD/config.h index c26319c3..87b60d31 100644 --- a/configs/MATEKF405STD/config.h +++ b/configs/MATEKF405STD/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/MATEKF405STD_CLONE/config.h b/configs/MATEKF405STD_CLONE/config.h index d48c8335..1c9b73b8 100644 --- a/configs/MATEKF405STD_CLONE/config.h +++ b/configs/MATEKF405STD_CLONE/config.h @@ -106,7 +106,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/MATEKF405TE/config.h b/configs/MATEKF405TE/config.h index b5d54244..e3e43e42 100644 --- a/configs/MATEKF405TE/config.h +++ b/configs/MATEKF405TE/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MATEKF405TE_SD/config.h b/configs/MATEKF405TE_SD/config.h index 0eaf1f5d..11cf0d9b 100644 --- a/configs/MATEKF405TE_SD/config.h +++ b/configs/MATEKF405TE_SD/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MATEKF411/config.h b/configs/MATEKF411/config.h index 422a35e3..f40943e2 100644 --- a/configs/MATEKF411/config.h +++ b/configs/MATEKF411/config.h @@ -82,7 +82,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/configs/MATEKF411SE/config.h b/configs/MATEKF411SE/config.h index bba6e29e..e6c57260 100644 --- a/configs/MATEKF411SE/config.h +++ b/configs/MATEKF411SE/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MATEKF722/config.h b/configs/MATEKF722/config.h index d22cca6d..c009a167 100644 --- a/configs/MATEKF722/config.h +++ b/configs/MATEKF722/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/MATEKF722HD/config.h b/configs/MATEKF722HD/config.h index e3b2d8bd..07369d26 100644 --- a/configs/MATEKF722HD/config.h +++ b/configs/MATEKF722HD/config.h @@ -34,6 +34,7 @@ #define USE_BARO_DPS310 #define USE_FLASH #define USE_FLASH_W25Q128FV +#define USE_FRSKYOSD #define BEEPER_PIN PC13 #define MOTOR1_PIN PC8 @@ -107,7 +108,6 @@ #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_BUSTYPE I2C #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/MATEKF722MINI/config.h b/configs/MATEKF722MINI/config.h index 9f49d60e..d8f56c5d 100644 --- a/configs/MATEKF722MINI/config.h +++ b/configs/MATEKF722MINI/config.h @@ -107,7 +107,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/configs/MATEKF722SE/config.h b/configs/MATEKF722SE/config.h index 99050b22..4fe27f1a 100644 --- a/configs/MATEKF722SE/config.h +++ b/configs/MATEKF722SE/config.h @@ -108,7 +108,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/MATEKH743/config.h b/configs/MATEKH743/config.h index d4043819..ec334132 100644 --- a/configs/MATEKH743/config.h +++ b/configs/MATEKH743/config.h @@ -145,7 +145,6 @@ #define TIMUP8_DMA_OPT 0 #define BARO_I2C_INSTANCE (I2CDEV_2) -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL #define SERIALRX_UART SERIAL_PORT_USART6 diff --git a/configs/MERAKRCF405/config.h b/configs/MERAKRCF405/config.h index f99ea233..edd3ddf0 100644 --- a/configs/MERAKRCF405/config.h +++ b/configs/MERAKRCF405/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MERAKRCF722/config.h b/configs/MERAKRCF722/config.h index d9719034..6a25d220 100644 --- a/configs/MERAKRCF722/config.h +++ b/configs/MERAKRCF722/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/MINI_H743_HD/config.h b/configs/MINI_H743_HD/config.h index 87d2a5be..54976811 100644 --- a/configs/MINI_H743_HD/config.h +++ b/configs/MINI_H743_HD/config.h @@ -125,7 +125,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 4 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/NAMIMNOF722/config.h b/configs/NAMIMNOF722/config.h index bc0cfb91..efe0c0f5 100644 --- a/configs/NAMIMNOF722/config.h +++ b/configs/NAMIMNOF722/config.h @@ -96,7 +96,6 @@ #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define FLASH_SPI_INSTANCE SPI3 diff --git a/configs/NBD_GALAXYAIO255/config.h b/configs/NBD_GALAXYAIO255/config.h index 97ea2318..1fc83732 100644 --- a/configs/NBD_GALAXYAIO255/config.h +++ b/configs/NBD_GALAXYAIO255/config.h @@ -99,7 +99,6 @@ #define TIMUP5_DMA_OPT 4 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/NBD_INFINITYAIOV2/config.h b/configs/NBD_INFINITYAIOV2/config.h index 82630916..8e6288d5 100644 --- a/configs/NBD_INFINITYAIOV2/config.h +++ b/configs/NBD_INFINITYAIOV2/config.h @@ -77,7 +77,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON //TODO #define DSHOT_BIDIR ON #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/NBD_INFINITYAIOV2PRO/config.h b/configs/NBD_INFINITYAIOV2PRO/config.h index 107dda52..f36de27a 100644 --- a/configs/NBD_INFINITYAIOV2PRO/config.h +++ b/configs/NBD_INFINITYAIOV2PRO/config.h @@ -84,7 +84,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/NEUTRONRCF411AIO/config.h b/configs/NEUTRONRCF411AIO/config.h index 0aeb684a..8955060e 100644 --- a/configs/NEUTRONRCF411AIO/config.h +++ b/configs/NEUTRONRCF411AIO/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/NEUTRONRCF722AIO/config.h b/configs/NEUTRONRCF722AIO/config.h index a3dc8843..90268ede 100644 --- a/configs/NEUTRONRCF722AIO/config.h +++ b/configs/NEUTRONRCF722AIO/config.h @@ -86,7 +86,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define USE_ADC diff --git a/configs/NEUTRONRCF7AIO/config.h b/configs/NEUTRONRCF7AIO/config.h index 60eb2f5d..e827f843 100644 --- a/configs/NEUTRONRCF7AIO/config.h +++ b/configs/NEUTRONRCF7AIO/config.h @@ -109,9 +109,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_ALIGN CW180_DEG -#define MAG_ALIGN_YAW 1800 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/NEUTRONRCH743AIO/config.h b/configs/NEUTRONRCH743AIO/config.h index 907fe13e..aed6f7c8 100644 --- a/configs/NEUTRONRCH743AIO/config.h +++ b/configs/NEUTRONRCH743AIO/config.h @@ -123,7 +123,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/NUCLEOF722/config.h b/configs/NUCLEOF722/config.h index fa2b5b62..56375b03 100644 --- a/configs/NUCLEOF722/config.h +++ b/configs/NUCLEOF722/config.h @@ -77,6 +77,5 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define GYRO_1_ALIGN CW270_DEG #define GYRO_1_ALIGN_YAW 2700 diff --git a/configs/OMNIBUSF4/config.h b/configs/OMNIBUSF4/config.h index 9b072acd..148e0a04 100644 --- a/configs/OMNIBUSF4/config.h +++ b/configs/OMNIBUSF4/config.h @@ -98,7 +98,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define RX_SPI_INSTANCE SPI3 diff --git a/configs/OMNIBUSF4FW/config.h b/configs/OMNIBUSF4FW/config.h index 04fcc827..8c4cb50e 100644 --- a/configs/OMNIBUSF4FW/config.h +++ b/configs/OMNIBUSF4FW/config.h @@ -93,7 +93,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 #define USE_ADC diff --git a/configs/OMNIBUSF4NANO/config.h b/configs/OMNIBUSF4NANO/config.h index 0a44879f..bceee4ab 100644 --- a/configs/OMNIBUSF4NANO/config.h +++ b/configs/OMNIBUSF4NANO/config.h @@ -108,7 +108,6 @@ #define BEEPER_INVERTED #define DASHBOARD_I2C_INSTANCE (I2CDEV_2) -#define MAG_I2C_INSTANCE (I2CDEV_2) #define GYRO_1_SPI_INSTANCE SPI1 #define FLASH_SPI_INSTANCE SPI2 diff --git a/configs/OMNIBUSF4SD/config.h b/configs/OMNIBUSF4SD/config.h index 1da6e4a2..a7a4314b 100644 --- a/configs/OMNIBUSF4SD/config.h +++ b/configs/OMNIBUSF4SD/config.h @@ -104,7 +104,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 #define USE_ADC diff --git a/configs/OMNIBUSF4V6/config.h b/configs/OMNIBUSF4V6/config.h index c0255fcf..2a560412 100644 --- a/configs/OMNIBUSF4V6/config.h +++ b/configs/OMNIBUSF4V6/config.h @@ -94,7 +94,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 #define USE_ADC diff --git a/configs/OMNIBUSF7/config.h b/configs/OMNIBUSF7/config.h index 53f0f4ec..dab7fb09 100644 --- a/configs/OMNIBUSF7/config.h +++ b/configs/OMNIBUSF7/config.h @@ -96,7 +96,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/OMNIBUSF7V2/config.h b/configs/OMNIBUSF7V2/config.h index 2d286f1f..369995ee 100644 --- a/configs/OMNIBUSF7V2/config.h +++ b/configs/OMNIBUSF7V2/config.h @@ -97,7 +97,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/OMNINXT4/config.h b/configs/OMNINXT4/config.h index 23e67e27..bfb50b2d 100644 --- a/configs/OMNINXT4/config.h +++ b/configs/OMNINXT4/config.h @@ -106,7 +106,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/OMNINXT7/config.h b/configs/OMNINXT7/config.h index 9a63f4cf..397b3217 100644 --- a/configs/OMNINXT7/config.h +++ b/configs/OMNINXT7/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/PODIUMF4/config.h b/configs/PODIUMF4/config.h index 14358108..9f5eb4f2 100644 --- a/configs/PODIUMF4/config.h +++ b/configs/PODIUMF4/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define SYSTEM_HSE_MHZ 8 #define DASHBOARD_I2C_INSTANCE (I2CDEV_1) #define FLASH_SPI_INSTANCE SPI3 diff --git a/configs/PYRODRONEF4PDB/config.h b/configs/PYRODRONEF4PDB/config.h index 78ed4d10..defd0d05 100644 --- a/configs/PYRODRONEF4PDB/config.h +++ b/configs/PYRODRONEF4PDB/config.h @@ -84,7 +84,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define FLASH_SPI_INSTANCE SPI2 #define MAX7456_SPI_INSTANCE SPI2 diff --git a/configs/REVO/config.h b/configs/REVO/config.h index 0af2551f..9f6b4fd4 100644 --- a/configs/REVO/config.h +++ b/configs/REVO/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define SYSTEM_HSE_MHZ 8 #define DASHBOARD_I2C_INSTANCE (I2CDEV_1) #define FLASH_SPI_INSTANCE SPI3 diff --git a/configs/RUSHCORE7/config.h b/configs/RUSHCORE7/config.h index 56f262c6..37d00691 100644 --- a/configs/RUSHCORE7/config.h +++ b/configs/RUSHCORE7/config.h @@ -92,7 +92,6 @@ #define ADC3_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/SDMODELH7/config.h b/configs/SDMODELH7/config.h index 0db09683..af17a23e 100644 --- a/configs/SDMODELH7/config.h +++ b/configs/SDMODELH7/config.h @@ -109,7 +109,6 @@ #define SERIALRX_UART SERIAL_PORT_USART6 #define ESC_SENSOR_UART SERIAL_PORT_USART7 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SKYSTARSF405/config.h b/configs/SKYSTARSF405/config.h index 97a207d9..b2caea60 100644 --- a/configs/SKYSTARSF405/config.h +++ b/configs/SKYSTARSF405/config.h @@ -98,7 +98,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/configs/SKYSTARSF7HD/config.h b/configs/SKYSTARSF7HD/config.h index 2924c8c8..3ddb9c7e 100644 --- a/configs/SKYSTARSF7HD/config.h +++ b/configs/SKYSTARSF7HD/config.h @@ -91,7 +91,6 @@ #define ADC2_DMA_OPT 0 //TODO #define CAMERA_CONTROL_MODE SOFTWARE_PWM -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC2 diff --git a/configs/SKYSTARSF7HDPRO/config.h b/configs/SKYSTARSF7HDPRO/config.h index 9e197d47..81c0ca1b 100644 --- a/configs/SKYSTARSF7HDPRO/config.h +++ b/configs/SKYSTARSF7HDPRO/config.h @@ -95,7 +95,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/configs/SKYSTARSF7RS/config.h b/configs/SKYSTARSF7RS/config.h index e028b68e..af0a8f32 100644 --- a/configs/SKYSTARSF7RS/config.h +++ b/configs/SKYSTARSF7RS/config.h @@ -99,7 +99,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_SPI_INSTANCE SPI2 #define USE_ADC diff --git a/configs/SKYSTARSH7HD/config.h b/configs/SKYSTARSH7HD/config.h index 7ca4679d..ee783a4b 100644 --- a/configs/SKYSTARSH7HD/config.h +++ b/configs/SKYSTARSH7HD/config.h @@ -128,7 +128,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_SPI_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SKYZONEF405/config.h b/configs/SKYZONEF405/config.h index 542453a3..1339a4a0 100644 --- a/configs/SKYZONEF405/config.h +++ b/configs/SKYZONEF405/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SOLOGOODF722/config.h b/configs/SOLOGOODF722/config.h index 7635b6f3..3dabc1c6 100644 --- a/configs/SOLOGOODF722/config.h +++ b/configs/SOLOGOODF722/config.h @@ -95,7 +95,6 @@ #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define SERIALRX_PROVIDER SERIALRX_CRSF #define ADC_INSTANCE ADC3 diff --git a/configs/SOULF4/config.h b/configs/SOULF4/config.h index ce51b07e..611085a1 100644 --- a/configs/SOULF4/config.h +++ b/configs/SOULF4/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define BEEPER_INVERTED diff --git a/configs/SPEDIXF4/config.h b/configs/SPEDIXF4/config.h index 5df41b92..d6d31be5 100644 --- a/configs/SPEDIXF4/config.h +++ b/configs/SPEDIXF4/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SPEDIXF405/config.h b/configs/SPEDIXF405/config.h index 596e93d6..75a2ded4 100644 --- a/configs/SPEDIXF405/config.h +++ b/configs/SPEDIXF405/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 0 #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/SPEDIXF722/config.h b/configs/SPEDIXF722/config.h index 7d7233ee..7b86a2c9 100644 --- a/configs/SPEDIXF722/config.h +++ b/configs/SPEDIXF722/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 0 #define SERIALRX_UART SERIAL_PORT_USART2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/SPEEDYBEEF4/config.h b/configs/SPEEDYBEEF4/config.h index 193ff5b4..dc0964b0 100644 --- a/configs/SPEEDYBEEF4/config.h +++ b/configs/SPEEDYBEEF4/config.h @@ -91,7 +91,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SPEEDYBEEF405MINI/config.h b/configs/SPEEDYBEEF405MINI/config.h index 4643637e..9fa04e56 100644 --- a/configs/SPEEDYBEEF405MINI/config.h +++ b/configs/SPEEDYBEEF405MINI/config.h @@ -92,7 +92,6 @@ #define MSP_UART SERIAL_PORT_UART4 #define ESC_SENSOR_UART SERIAL_PORT_UART5 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/SPEEDYBEEF405V3/config.h b/configs/SPEEDYBEEF405V3/config.h index 37bea2a9..048d051a 100644 --- a/configs/SPEEDYBEEF405V3/config.h +++ b/configs/SPEEDYBEEF405V3/config.h @@ -94,7 +94,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/configs/SPEEDYBEEF405V4/config.h b/configs/SPEEDYBEEF405V4/config.h index c20dd051..566bee54 100644 --- a/configs/SPEEDYBEEF405V4/config.h +++ b/configs/SPEEDYBEEF405V4/config.h @@ -98,7 +98,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/SPEEDYBEEF7/config.h b/configs/SPEEDYBEEF7/config.h index 73d67e82..9cb8ceb6 100644 --- a/configs/SPEEDYBEEF7/config.h +++ b/configs/SPEEDYBEEF7/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/SPEEDYBEEF7MINI/config.h b/configs/SPEEDYBEEF7MINI/config.h index e7531297..7aef488a 100644 --- a/configs/SPEEDYBEEF7MINI/config.h +++ b/configs/SPEEDYBEEF7MINI/config.h @@ -98,7 +98,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/SPEEDYBEEF7MINIV2/config.h b/configs/SPEEDYBEEF7MINIV2/config.h index 287265b4..8cc5bbf5 100644 --- a/configs/SPEEDYBEEF7MINIV2/config.h +++ b/configs/SPEEDYBEEF7MINIV2/config.h @@ -97,7 +97,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/configs/SPEEDYBEEF7V2/config.h b/configs/SPEEDYBEEF7V2/config.h index baa89039..e06a09b4 100644 --- a/configs/SPEEDYBEEF7V2/config.h +++ b/configs/SPEEDYBEEF7V2/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/SPEEDYBEEF7V3/config.h b/configs/SPEEDYBEEF7V3/config.h index e0063f67..5df6a293 100644 --- a/configs/SPEEDYBEEF7V3/config.h +++ b/configs/SPEEDYBEEF7V3/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/configs/SPEEDYBEE_F745_AIO/config.h b/configs/SPEEDYBEE_F745_AIO/config.h index 51503378..80d553a5 100644 --- a/configs/SPEEDYBEE_F745_AIO/config.h +++ b/configs/SPEEDYBEE_F745_AIO/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/SPRACINGF4EVO/config.h b/configs/SPRACINGF4EVO/config.h index 91dcc538..47c581ca 100644 --- a/configs/SPRACINGF4EVO/config.h +++ b/configs/SPRACINGF4EVO/config.h @@ -105,7 +105,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC3_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/SPRACINGF4NEO/config.h b/configs/SPRACINGF4NEO/config.h index 5d3f7c29..c69510e7 100644 --- a/configs/SPRACINGF4NEO/config.h +++ b/configs/SPRACINGF4NEO/config.h @@ -107,7 +107,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/SPRACINGF7DUAL/config.h b/configs/SPRACINGF7DUAL/config.h index e509e908..409a3b0d 100644 --- a/configs/SPRACINGF7DUAL/config.h +++ b/configs/SPRACINGF7DUAL/config.h @@ -112,7 +112,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/STELLARF7/config.h b/configs/STELLARF7/config.h index 12b24ac5..f8b7472b 100644 --- a/configs/STELLARF7/config.h +++ b/configs/STELLARF7/config.h @@ -97,7 +97,6 @@ //TODO beacon RX_SET #define SERIALRX_PROVIDER SERIALRX_CRSF -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define ADC_INSTANCE ADC1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/STM32F411DISCOVERY/config.h b/configs/STM32F411DISCOVERY/config.h index 037f79b3..a4f63cb1 100644 --- a/configs/STM32F411DISCOVERY/config.h +++ b/configs/STM32F411DISCOVERY/config.h @@ -74,7 +74,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_PWM_HZ 2000 diff --git a/configs/SUB250REDFOXF722AIO/config.h b/configs/SUB250REDFOXF722AIO/config.h index 537e6e96..d843f83a 100644 --- a/configs/SUB250REDFOXF722AIO/config.h +++ b/configs/SUB250REDFOXF722AIO/config.h @@ -99,7 +99,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/configs/TAKERF722SE/config.h b/configs/TAKERF722SE/config.h index 28b30b03..1b5250cb 100644 --- a/configs/TAKERF722SE/config.h +++ b/configs/TAKERF722SE/config.h @@ -104,7 +104,6 @@ // serial 5 1024 115200 57600 0 115200 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/TALONF7FUSION/config.h b/configs/TALONF7FUSION/config.h index c0d26570..ef23975c 100644 --- a/configs/TALONF7FUSION/config.h +++ b/configs/TALONF7FUSION/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/TCMMF7/config.h b/configs/TCMMF7/config.h index 9911ea2d..652e9c23 100644 --- a/configs/TCMMF7/config.h +++ b/configs/TCMMF7/config.h @@ -105,7 +105,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/TMH7/config.h b/configs/TMH7/config.h index 18b2a5da..ca25297e 100644 --- a/configs/TMH7/config.h +++ b/configs/TMH7/config.h @@ -111,7 +111,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/configs/TMOTORF4/config.h b/configs/TMOTORF4/config.h index b1fa6fcb..060037da 100644 --- a/configs/TMOTORF4/config.h +++ b/configs/TMOTORF4/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/TMOTORF7/config.h b/configs/TMOTORF7/config.h index f3746431..26866e1e 100644 --- a/configs/TMOTORF7/config.h +++ b/configs/TMOTORF7/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/TMOTORF722SE/config.h b/configs/TMOTORF722SE/config.h index 06608269..a9da3ca5 100644 --- a/configs/TMOTORF722SE/config.h +++ b/configs/TMOTORF722SE/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/TMOTORH743/config.h b/configs/TMOTORH743/config.h index e18e15c0..17d257ff 100644 --- a/configs/TMOTORH743/config.h +++ b/configs/TMOTORH743/config.h @@ -127,7 +127,6 @@ // #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define MAX7456_SPI_INSTANCE SPI3 diff --git a/configs/TMOTORVELOXF7V2/config.h b/configs/TMOTORVELOXF7V2/config.h index cbf0af1e..d8d3d521 100644 --- a/configs/TMOTORVELOXF7V2/config.h +++ b/configs/TMOTORVELOXF7V2/config.h @@ -91,7 +91,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/TMVELOXF411/config.h b/configs/TMVELOXF411/config.h index eaa9c84e..bd4bde1f 100644 --- a/configs/TMVELOXF411/config.h +++ b/configs/TMVELOXF411/config.h @@ -74,7 +74,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO diff --git a/configs/TMVELOXF7/config.h b/configs/TMVELOXF7/config.h index a5dace38..aba7dd6e 100644 --- a/configs/TMVELOXF7/config.h +++ b/configs/TMVELOXF7/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/UAVPNG030MINI/config.h b/configs/UAVPNG030MINI/config.h index cb0e76a8..b9add006 100644 --- a/configs/UAVPNG030MINI/config.h +++ b/configs/UAVPNG030MINI/config.h @@ -76,7 +76,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 diff --git a/configs/VEKTORF722/config.h b/configs/VEKTORF722/config.h index 4ad0ab38..2c1dfb1b 100644 --- a/configs/VEKTORF722/config.h +++ b/configs/VEKTORF722/config.h @@ -92,7 +92,6 @@ #define ADC3_DMA_OPT 0 #define MSP_UART SERIAL_PORT_UART5 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/VGOODF722DUAL/config.h b/configs/VGOODF722DUAL/config.h index 4d9657c3..ccefb813 100644 --- a/configs/VGOODF722DUAL/config.h +++ b/configs/VGOODF722DUAL/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/VGOODRCF4/config.h b/configs/VGOODRCF4/config.h index 5f839ac5..be02f113 100644 --- a/configs/VGOODRCF4/config.h +++ b/configs/VGOODRCF4/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/VIVAF4AIO/config.h b/configs/VIVAF4AIO/config.h index fb22b57a..b1508258 100644 --- a/configs/VIVAF4AIO/config.h +++ b/configs/VIVAF4AIO/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_ADC #define ADC_INSTANCE ADC1 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/WIZZF7HD/config.h b/configs/WIZZF7HD/config.h index f7641325..37ccf3e2 100644 --- a/configs/WIZZF7HD/config.h +++ b/configs/WIZZF7HD/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/configs/XRACERF4/config.h b/configs/XRACERF4/config.h index e5f66b80..d13c82d8 100644 --- a/configs/XRACERF4/config.h +++ b/configs/XRACERF4/config.h @@ -94,7 +94,6 @@ #define ADC2_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC #define ADC_INSTANCE ADC2 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/YUPIF7/config.h b/configs/YUPIF7/config.h index 089687ce..ebd7214d 100644 --- a/configs/YUPIF7/config.h +++ b/configs/YUPIF7/config.h @@ -88,7 +88,6 @@ #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/ZEEZF7V2/config.h b/configs/ZEEZF7V2/config.h index f061ec43..667192e6 100644 --- a/configs/ZEEZF7V2/config.h +++ b/configs/ZEEZF7V2/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/configs/ZEEZF7V3/config.h b/configs/ZEEZF7V3/config.h index d09d0623..9739e12d 100644 --- a/configs/ZEEZF7V3/config.h +++ b/configs/ZEEZF7V3/config.h @@ -98,7 +98,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -#define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/configs/ZEUSF722_AIO/config.h b/configs/ZEUSF722_AIO/config.h index 557b5d56..b110b274 100644 --- a/configs/ZEUSF722_AIO/config.h +++ b/configs/ZEUSF722_AIO/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -#define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH