Skip to content

Commit

Permalink
Merge pull request #9071 from iNavFlight/dzikuvx-target-exti-cleanup
Browse files Browse the repository at this point in the history
Cleanup abandoned EXTI code
  • Loading branch information
DzikuVx committed May 23, 2023
2 parents a095ee9 + 86c27e0 commit 5497e9d
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 58 deletions.
5 changes: 2 additions & 3 deletions src/main/target/AOCODARCF7MINI/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
#include "drivers/pinio.h"
#include "drivers/sensor.h"

BUSDEV_REGISTER_SPI_TAG(busdev_mpu6500, DEVHW_MPU6500, MPU6500_SPI_BUS, MPU6500_CS_PIN, MPU6500_EXTI_PIN, 0, DEVFLAGS_NONE, IMU_MPU6500_ALIGN);
BUSDEV_REGISTER_SPI_TAG(busdev_mpu6000, DEVHW_MPU6000, MPU6000_SPI_BUS, MPU6000_CS_PIN, MPU6000_EXTI_PIN, 0, DEVFLAGS_NONE, IMU_MPU6000_ALIGN);

BUSDEV_REGISTER_SPI_TAG(busdev_mpu6500, DEVHW_MPU6500, MPU6500_SPI_BUS, MPU6500_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU_MPU6500_ALIGN);
BUSDEV_REGISTER_SPI_TAG(busdev_mpu6000, DEVHW_MPU6000, MPU6000_SPI_BUS, MPU6000_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU_MPU6000_ALIGN);

timerHardware_t timerHardware[] = {
DEF_TIM(TIM1, CH3, PA10, TIM_USE_PPM, 0, 0), // PPM, RX1
Expand Down
6 changes: 0 additions & 6 deletions src/main/target/AOCODARCF7MINI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@
#define MPU6000_CS_PIN PB2
#define MPU6000_SPI_BUS BUS_SPI1

#define USE_EXTI
#define MPU6500_EXTI_PIN PC4
#define MPU6000_EXTI_PIN PC4

#define USE_MPU_DATA_READY_SIGNAL

// *************** I2C /Baro/Mag *********************
#define USE_I2C
#define USE_I2C_DEVICE_1
Expand Down
3 changes: 0 additions & 3 deletions src/main/target/AXISFLYINGF7PRO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,16 @@
#define IMU_MPU6000_ALIGN CW0_DEG
#define MPU6000_SPI_BUS BUS_SPI1
#define MPU6000_CS_PIN SPI1_NSS_PIN
#define MPU6000_EXTI_PIN GYRO_INT_EXTI

#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
#define ICM42605_EXTI_PIN GYRO_INT_EXTI

#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN CW0_DEG
#define BMI270_SPI_BUS BUS_SPI1
#define BMI270_CS_PIN SPI1_NSS_PIN
#define BMI270_EXTI_PIN GYRO_INT_EXTI

// *************** SPI2 OSD ***************//
#define USE_MAX7456
Expand Down
4 changes: 0 additions & 4 deletions src/main/target/FOXEERF722V4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@
#define BEEPER_INVERTED

/*** IMU sensors ***/
#define USE_EXTI

#define USE_MPU_DATA_READY_SIGNAL

#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW270_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN PB2
#define ICM42605_EXTI_PIN PC4

#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW270_DEG
Expand Down
5 changes: 0 additions & 5 deletions src/main/target/FOXEERF745AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
#define BEEPER_INVERTED

/*** IMU sensors ***/
#define USE_EXTI


#define USE_MPU_DATA_READY_SIGNAL

#ifdef FOXEERF745AIO_V3

#define USE_IMU_ICM42605
Expand Down
6 changes: 0 additions & 6 deletions src/main/target/GEPRCF722_BT_HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,16 @@
#define IMU_MPU6000_ALIGN CW0_DEG
#define MPU6000_CS_PIN PA15
#define MPU6000_SPI_BUS BUS_SPI1
#define MPU6000_EXTI_PIN PA8

#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN CW0_DEG
#define BMI270_CS_PIN PA15
#define BMI270_SPI_BUS BUS_SPI1
#define BMI270_EXTI_PIN PA8

#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_CS_PIN PA15
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_EXTI_PIN PA8

#define USE_EXTI
#define USE_MPU_DATA_READY_SIGNAL

// *************** I2C/Baro/Mag *********************
#define USE_I2C
Expand Down
6 changes: 0 additions & 6 deletions src/main/target/GEPRC_F722_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,16 @@
#define IMU_MPU6000_ALIGN CW90_DEG
#define MPU6000_CS_PIN PA15
#define MPU6000_SPI_BUS BUS_SPI1
#define MPU6000_EXTI_PIN PA8

#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN CW90_DEG
#define BMI270_CS_PIN PA15
#define BMI270_SPI_BUS BUS_SPI1
#define BMI270_EXTI_PIN PA8

#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW90_DEG
#define ICM42605_CS_PIN PA15
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_EXTI_PIN PA8

#define USE_EXTI
#define USE_MPU_DATA_READY_SIGNAL

// *************** I2C/Baro/Mag *********************
#define USE_I2C
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/HAKRCF722V2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
#define I2C1_SDA PB9

// *** IMU sensors ***
#define USE_MPU_DATA_READY_SIGNAL
#define ENSURE_MPU_DATA_READY_IS_LOW

#define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
#define USE_DUAL_GYRO
Expand Down
5 changes: 0 additions & 5 deletions src/main/target/NEUTRONRCF435MINI/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@
#define SPI1_MOSI_PIN PA7
#define SPI1_NSS_PIN PA4

// #define USE_EXTI
// #define GYRO_INT_EXTI PA15
// #define USE_MPU_DATA_READY_SIGNAL

// MPU6500
#define USE_IMU_MPU6500
#define IMU_MPU6500_ALIGN CW0_DEG
Expand All @@ -71,7 +67,6 @@
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
// #define ICM42605_EXTI_PIN GYRO_INT_EXTI

// BMI270
#define USE_IMU_BMI270
Expand Down
5 changes: 0 additions & 5 deletions src/main/target/NEUTRONRCF435SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
#define SPI1_MOSI_PIN PA7
#define SPI1_NSS_PIN PA15

// #define USE_EXTI
// #define GYRO_INT_EXTI PA8
// #define USE_MPU_DATA_READY_SIGNAL

// MPU6500
#define USE_IMU_MPU6500
#define IMU_MPU6500_ALIGN CW180_DEG
Expand All @@ -69,7 +65,6 @@
#define IMU_ICM42605_ALIGN CW180_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
// #define ICM42605_EXTI_PIN GYRO_INT_EXTI

// BMI270
#define USE_IMU_BMI270
Expand Down
5 changes: 0 additions & 5 deletions src/main/target/NEUTRONRCF435WING/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@
#define SPI1_MOSI_PIN PA7
#define SPI1_NSS_PIN PA4

// #define USE_EXTI
// #define GYRO_INT_EXTI PA15
// #define USE_MPU_DATA_READY_SIGNAL

// MPU6500
#define USE_IMU_MPU6500
#define IMU_MPU6500_ALIGN CW0_DEG
Expand All @@ -71,7 +67,6 @@
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
// #define ICM42605_EXTI_PIN GYRO_INT_EXTI

// BMI270
#define USE_IMU_BMI270
Expand Down
2 changes: 0 additions & 2 deletions src/main/target/RUSH_BLADE_F7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@
#define IMU_MPU6000_ALIGN CW270_DEG
#define MPU6000_SPI_BUS BUS_SPI1
#define MPU6000_CS_PIN SPI1_NSS_PIN
#define MPU6000_EXTI_PIN GYRO_INT_EXTI

#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW270_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
#define ICM42605_EXTI_PIN GYRO_INT_EXTI

// *************** I2C/Baro/Mag *********************
#define USE_I2C
Expand Down
6 changes: 0 additions & 6 deletions src/main/target/SAGEATF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@
#define SPI1_MOSI_PIN PA7
#define SPI1_NSS_PIN PA4

#define USE_EXTI
#define GYRO_INT_EXTI PA15
#define USE_MPU_DATA_READY_SIGNAL

// MPU6000
#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW0_DEG
#define MPU6000_SPI_BUS BUS_SPI1
#define MPU6000_CS_PIN SPI1_NSS_PIN
#define MPU6000_EXTI_PIN GYRO_INT_EXTI
// MPU6500
#define USE_IMU_MPU6500
#define IMU_MPU6500_ALIGN CW0_DEG
Expand All @@ -76,7 +71,6 @@
#define IMU_ICM42605_ALIGN CW0_DEG
#define ICM42605_SPI_BUS BUS_SPI1
#define ICM42605_CS_PIN SPI1_NSS_PIN
#define ICM42605_EXTI_PIN GYRO_INT_EXTI

// MPU9250
#define USE_IMU_MPU9250
Expand Down

0 comments on commit 5497e9d

Please sign in to comment.