disable GYRO_EXTI when Gyro and OSD share the same bus

This commit is contained in:
ctzsnooze 2021-12-21 13:15:55 +11:00
parent cfa5df3eea
commit 32bc45ba29
5 changed files with 13 additions and 4 deletions

View File

@ -43,7 +43,8 @@
// MPU6000 interrupts
#define USE_EXTI
#define USE_MPU_DATA_READY_SIGNAL
#define USE_GYRO_EXTI
// disable GYRO_EXTI when MAX7456 is on same SPI bus as gyro
// #define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PA4
#define USE_GYRO

View File

@ -44,9 +44,12 @@
#define GYRO_1_CS_PIN PB12
#define GYRO_1_SPI_INSTANCE SPI2
#define USE_EXTI
#define USE_GYRO_EXTI
// disable GYRO_EXTI when MAX7456 is on same SPI bus as gyro
// #define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PA8
#define USE_MPU_DATA_READY_SIGNAL
#define USE_BARO

View File

@ -85,7 +85,10 @@
// MPU6000 interrupts
#define USE_EXTI
// disable EXTI when MAX7456 is on same SPI bus as gyro
#if defined(OMNIBUSF4V6)
#define USE_GYRO_EXTI
#endif
#define GYRO_1_EXTI_PIN PC4
#define GYRO_2_EXTI_PIN NONE
#define USE_MPU_DATA_READY_SIGNAL

View File

@ -37,7 +37,8 @@
// Gyro interrupt
#define USE_EXTI
#define USE_MPU_DATA_READY_SIGNAL
#define USE_GYRO_EXTI
// disable GYRO_EXTI when MAX7456 is on same SPI bus as gyro
// #define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PC4
#define USE_ACC

View File

@ -40,7 +40,8 @@
#define SPI1_MOSI_PIN PA7
#define USE_EXTI
#define USE_GYRO_EXTI
// disable GYRO_EXTI when MAX7456 is on same SPI bus as gyro
// #define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PC4
#define USE_MPU_DATA_READY_SIGNAL