From 86c27e015ae6de136bc08f1f0abb2e004abfb0c0 Mon Sep 17 00:00:00 2001 From: "Pawel Spychalski (DzikuVx)" Date: Tue, 23 May 2023 09:45:23 +0200 Subject: [PATCH] Cleanup abandoned EXTI code --- src/main/target/AOCODARCF7MINI/target.c | 5 ++--- src/main/target/AOCODARCF7MINI/target.h | 6 ------ src/main/target/AXISFLYINGF7PRO/target.h | 3 --- src/main/target/FOXEERF722V4/target.h | 4 ---- src/main/target/FOXEERF745AIO/target.h | 5 ----- src/main/target/GEPRCF722_BT_HD/target.h | 6 ------ src/main/target/GEPRC_F722_AIO/target.h | 6 ------ src/main/target/HAKRCF722V2/target.h | 2 -- src/main/target/NEUTRONRCF435MINI/target.h | 5 ----- src/main/target/NEUTRONRCF435SE/target.h | 5 ----- src/main/target/NEUTRONRCF435WING/target.h | 5 ----- src/main/target/RUSH_BLADE_F7/target.h | 2 -- src/main/target/SAGEATF4/target.h | 6 ------ 13 files changed, 2 insertions(+), 58 deletions(-) diff --git a/src/main/target/AOCODARCF7MINI/target.c b/src/main/target/AOCODARCF7MINI/target.c index 68622d0397c..7b34bb05df4 100644 --- a/src/main/target/AOCODARCF7MINI/target.c +++ b/src/main/target/AOCODARCF7MINI/target.c @@ -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 diff --git a/src/main/target/AOCODARCF7MINI/target.h b/src/main/target/AOCODARCF7MINI/target.h index ce6846ad150..ff52565f58f 100644 --- a/src/main/target/AOCODARCF7MINI/target.h +++ b/src/main/target/AOCODARCF7MINI/target.h @@ -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 diff --git a/src/main/target/AXISFLYINGF7PRO/target.h b/src/main/target/AXISFLYINGF7PRO/target.h index 7128dc9cf7e..1d8c3663bb4 100644 --- a/src/main/target/AXISFLYINGF7PRO/target.h +++ b/src/main/target/AXISFLYINGF7PRO/target.h @@ -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 diff --git a/src/main/target/FOXEERF722V4/target.h b/src/main/target/FOXEERF722V4/target.h index 927a37696c9..3c6ab0b2a77 100644 --- a/src/main/target/FOXEERF722V4/target.h +++ b/src/main/target/FOXEERF722V4/target.h @@ -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 diff --git a/src/main/target/FOXEERF745AIO/target.h b/src/main/target/FOXEERF745AIO/target.h index 498fc7e3a5a..60666b7611c 100644 --- a/src/main/target/FOXEERF745AIO/target.h +++ b/src/main/target/FOXEERF745AIO/target.h @@ -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 diff --git a/src/main/target/GEPRCF722_BT_HD/target.h b/src/main/target/GEPRCF722_BT_HD/target.h index efa2211e896..ca32c210c64 100644 --- a/src/main/target/GEPRCF722_BT_HD/target.h +++ b/src/main/target/GEPRCF722_BT_HD/target.h @@ -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 diff --git a/src/main/target/GEPRC_F722_AIO/target.h b/src/main/target/GEPRC_F722_AIO/target.h index ba933c3dc84..ce2ebde6a54 100644 --- a/src/main/target/GEPRC_F722_AIO/target.h +++ b/src/main/target/GEPRC_F722_AIO/target.h @@ -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 diff --git a/src/main/target/HAKRCF722V2/target.h b/src/main/target/HAKRCF722V2/target.h index 3f56a4418ad..809f6ddb10f 100644 --- a/src/main/target/HAKRCF722V2/target.h +++ b/src/main/target/HAKRCF722V2/target.h @@ -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 diff --git a/src/main/target/NEUTRONRCF435MINI/target.h b/src/main/target/NEUTRONRCF435MINI/target.h index 92c9f351a15..42cddf5681e 100644 --- a/src/main/target/NEUTRONRCF435MINI/target.h +++ b/src/main/target/NEUTRONRCF435MINI/target.h @@ -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 @@ -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 diff --git a/src/main/target/NEUTRONRCF435SE/target.h b/src/main/target/NEUTRONRCF435SE/target.h index 4a151ca290e..5d00a099115 100644 --- a/src/main/target/NEUTRONRCF435SE/target.h +++ b/src/main/target/NEUTRONRCF435SE/target.h @@ -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 @@ -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 diff --git a/src/main/target/NEUTRONRCF435WING/target.h b/src/main/target/NEUTRONRCF435WING/target.h index 6b6a288b513..4f56d867782 100644 --- a/src/main/target/NEUTRONRCF435WING/target.h +++ b/src/main/target/NEUTRONRCF435WING/target.h @@ -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 @@ -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 diff --git a/src/main/target/RUSH_BLADE_F7/target.h b/src/main/target/RUSH_BLADE_F7/target.h index 1c25d0cfa50..ba5915892bc 100644 --- a/src/main/target/RUSH_BLADE_F7/target.h +++ b/src/main/target/RUSH_BLADE_F7/target.h @@ -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 diff --git a/src/main/target/SAGEATF4/target.h b/src/main/target/SAGEATF4/target.h index a0e734e5fd0..3ec00a37b3a 100644 --- a/src/main/target/SAGEATF4/target.h +++ b/src/main/target/SAGEATF4/target.h @@ -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 @@ -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