Skip to content

Commit

Permalink
Merge pull request #9401 from iNavFlight/mmosca-mag-all
Browse files Browse the repository at this point in the history
Make it easier to include all compass drivers to target
  • Loading branch information
DzikuVx authored Oct 24, 2023
2 parents cb229b6 + 2e1f8a7 commit fab4d2b
Show file tree
Hide file tree
Showing 118 changed files with 155 additions and 731 deletions.
9 changes: 1 addition & 8 deletions src/main/target/AIKONF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@

#define USE_MAG
#define MAG_I2C_BUS DEFAULT_I2C_BUS
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define RANGEFINDER_I2C_BUS DEFAULT_I2C_BUS
#define TEMPERATURE_I2C_BUS DEFAULT_I2C_BUS
Expand Down
11 changes: 2 additions & 9 deletions src/main/target/AIRBOTF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_MAG3110
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define USE_BARO
#define BARO_I2C_BUS BUS_I2C2
Expand Down Expand Up @@ -139,4 +132,4 @@
#define TARGET_IO_PORTD 0xffff

#define USE_DSHOT
#define USE_ESC_SENSOR
#define USE_ESC_SENSOR
7 changes: 1 addition & 6 deletions src/main/target/AIRBOTF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1
#define PITOT_I2C_BUS BUS_I2C1
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/ALIENFLIGHTF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_MPU9250
#define USE_MAG_HMC5883
#define USE_MAG_MAG3110
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
9 changes: 1 addition & 8 deletions src/main/target/ALIENFLIGHTNGF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_AK8963
#define USE_MAG_MPU9250
#define USE_MAG_HMC5883
#define USE_MAG_MAG3110
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define AK8963_CS_PIN PC15
#define AK8963_SPI_BUS BUS_SPI3
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/ANYFC/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_MAG3110
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/ANYFCF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/ANYFCM7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
8 changes: 1 addition & 7 deletions src/main/target/AOCODARCF405AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,7 @@
// Mag
#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_MLX90393
#define USE_MAG_ALL

/*** Onboard Flash ***/
#define USE_SPI_DEVICE_3
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/AOCODARCF4V2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,7 @@
//*********** Magnetometer / Compass *************
#define USE_MAG
#define MAG_I2C_BUS DEFAULT_I2C_BUS

#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_ALL

// ******* SERIAL ********
#define USE_VCP
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/AOCODARCF722AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,7 @@
// Mag
#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

/*** Onboard Flash ***/
#define USE_SPI_DEVICE_3
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/AOCODARCF7DUAL/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
8 changes: 1 addition & 7 deletions src/main/target/AOCODARCF7MINI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
8 changes: 1 addition & 7 deletions src/main/target/AOCODARCH7DUAL/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_VCM5883
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1
#define PITOT_I2C_BUS BUS_I2C1
Expand Down
6 changes: 1 addition & 5 deletions src/main/target/ASGARD32F7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/ATOMRCF405NAVI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@
*/
#define USE_MAG
#define MAG_I2C_BUS DEFAULT_I2C_BUS

#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

/*
* Barometer
Expand Down
6 changes: 1 addition & 5 deletions src/main/target/AXISFLYINGF7PRO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define PITOT_I2C_BUS BUS_I2C1

Expand Down
9 changes: 1 addition & 8 deletions src/main/target/BEEROTORF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
9 changes: 1 addition & 8 deletions src/main/target/BETAFLIGHTF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/BETAFPVF722/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2
#define PITOT_I2C_BUS BUS_I2C2
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/BLACKPILL_F411/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_AK8975
#define USE_MAG_ALL

#define PITOT_I2C_BUS BUS_I2C1
#define TEMPERATURE_I2C_BUS BUS_I2C1
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/BLUEJAYF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/COLIBRI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C3
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C3

Expand Down
8 changes: 1 addition & 7 deletions src/main/target/DALRCF405/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@

#define USE_MAG
#define MAG_I2C_BUS DEFAULT_I2C_BUS
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
7 changes: 1 addition & 6 deletions src/main/target/DALRCF722DUAL/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1
#define PITOT_I2C_BUS BUS_I2C1
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/F4BY/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C2
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C2

Expand Down
6 changes: 1 addition & 5 deletions src/main/target/FIREWORKSV2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@
#else
#define MAG_I2C_BUS BUS_I2C2
#endif
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#if defined(OMNIBUSF4V6)
#define TEMPERATURE_I2C_BUS BUS_I2C1
Expand Down
Loading

0 comments on commit fab4d2b

Please sign in to comment.