mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Add MPU6500 (ICM20608) to OMNIBUSF4SD target
iFlight version of OMNIBUS F4 V3 uses ICM20608.
This commit is contained in:
parent
0b9dd11cb5
commit
a2f125fc12
2 changed files with 21 additions and 7 deletions
|
@ -44,15 +44,20 @@
|
||||||
#define INVERTER_PIN_UART1 PC0 // PC0 used as inverter select GPIO XXX this is not used --- remove it at the next major release
|
#define INVERTER_PIN_UART1 PC0 // PC0 used as inverter select GPIO XXX this is not used --- remove it at the next major release
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MPU6000_CS_PIN PA4
|
|
||||||
#define MPU6000_SPI_INSTANCE SPI1
|
|
||||||
|
|
||||||
#define ACC
|
#define ACC
|
||||||
#define USE_ACC_SPI_MPU6000
|
#define USE_ACC_SPI_MPU6000
|
||||||
|
|
||||||
#define GYRO
|
#define GYRO
|
||||||
#define USE_GYRO_SPI_MPU6000
|
#define USE_GYRO_SPI_MPU6000
|
||||||
|
|
||||||
|
#define MPU6000_CS_PIN PA4
|
||||||
|
#define MPU6000_SPI_INSTANCE SPI1
|
||||||
|
|
||||||
|
// MPU6000 interrupts
|
||||||
|
#define USE_EXTI
|
||||||
|
#define MPU_INT_EXTI PC4
|
||||||
|
#define USE_MPU_DATA_READY_SIGNAL
|
||||||
|
|
||||||
#if defined(OMNIBUSF4SD)
|
#if defined(OMNIBUSF4SD)
|
||||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||||
|
@ -61,10 +66,17 @@
|
||||||
#define ACC_MPU6000_ALIGN CW180_DEG
|
#define ACC_MPU6000_ALIGN CW180_DEG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// MPU6000 interrupts
|
// Support for iFlight OMNIBUS F4 V3
|
||||||
#define USE_EXTI
|
// Has ICM20608 instead of MPU6000
|
||||||
#define MPU_INT_EXTI PC4
|
// OMNIBUSF4SD is linked with both MPU6000 and MPU6500 drivers
|
||||||
#define USE_MPU_DATA_READY_SIGNAL
|
#if defined (OMNIBUSF4SD)
|
||||||
|
#define USE_ACC_SPI_MPU6500
|
||||||
|
#define USE_GYRO_SPI_MPU6500
|
||||||
|
#define MPU6500_CS_PIN MPU6000_CS_PIN
|
||||||
|
#define MPU6500_SPI_INSTANCE MPU6000_SPI_INSTANCE
|
||||||
|
#define GYRO_MPU6500_ALIGN GYRO_MPU6000_ALIGN
|
||||||
|
#define ACC_MPU6500_ALIGN ACC_MPU6000_ALIGN
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAG
|
#define MAG
|
||||||
#define USE_MAG_HMC5883
|
#define USE_MAG_HMC5883
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
F405_TARGETS += $(TARGET)
|
F405_TARGETS += $(TARGET)
|
||||||
FEATURES += VCP ONBOARDFLASH
|
FEATURES += VCP ONBOARDFLASH
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
|
drivers/accgyro/accgyro_mpu6500.c \
|
||||||
drivers/accgyro/accgyro_spi_mpu6000.c \
|
drivers/accgyro/accgyro_spi_mpu6000.c \
|
||||||
|
drivers/accgyro/accgyro_spi_mpu6500.c \
|
||||||
drivers/barometer/barometer_ms5611.c \
|
drivers/barometer/barometer_ms5611.c \
|
||||||
drivers/barometer/barometer_bmp280.c \
|
drivers/barometer/barometer_bmp280.c \
|
||||||
drivers/barometer/barometer_spi_bmp280.c \
|
drivers/barometer/barometer_spi_bmp280.c \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue