Merge pull request #3506 from jflyper/bfdev-omnibusf4sd-icm20608
OMNIBUSF4SD Add MPU6500 (ICM20608) support
This commit is contained in:
commit
b3898fa9d1
|
@ -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
|
||||
#endif
|
||||
|
||||
#define MPU6000_CS_PIN PA4
|
||||
#define MPU6000_SPI_INSTANCE SPI1
|
||||
|
||||
#define ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
|
||||
#define GYRO
|
||||
#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)
|
||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||
|
@ -61,10 +66,17 @@
|
|||
#define ACC_MPU6000_ALIGN CW180_DEG
|
||||
#endif
|
||||
|
||||
// MPU6000 interrupts
|
||||
#define USE_EXTI
|
||||
#define MPU_INT_EXTI PC4
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
// Support for iFlight OMNIBUS F4 V3
|
||||
// Has ICM20608 instead of MPU6000
|
||||
// OMNIBUSF4SD is linked with both MPU6000 and MPU6500 drivers
|
||||
#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 USE_MAG_HMC5883
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
F405_TARGETS += $(TARGET)
|
||||
FEATURES += VCP ONBOARDFLASH
|
||||
TARGET_SRC = \
|
||||
drivers/accgyro/accgyro_mpu6500.c \
|
||||
drivers/accgyro/accgyro_spi_mpu6000.c \
|
||||
drivers/accgyro/accgyro_spi_mpu6500.c \
|
||||
drivers/barometer/barometer_ms5611.c \
|
||||
drivers/barometer/barometer_bmp280.c \
|
||||
drivers/barometer/barometer_spi_bmp280.c \
|
||||
|
|
Loading…
Reference in New Issue