Add possibility to use the Gyro MPU6500
This commit is contained in:
parent
d93e218073
commit
9469e549ed
|
@ -33,12 +33,12 @@
|
|||
#define INVERTER_USART USART6
|
||||
|
||||
|
||||
// MPU6500 interrupt
|
||||
// Gyro interrupt
|
||||
#define USE_EXTI
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
#define MPU_INT_EXTI PC4
|
||||
|
||||
//MPU6500
|
||||
//ICM 20689
|
||||
#define ICM20689_CS_PIN PA4
|
||||
#define ICM20689_SPI_INSTANCE SPI1
|
||||
|
||||
|
@ -50,6 +50,21 @@
|
|||
#define USE_GYRO_SPI_ICM20689
|
||||
#define GYRO_ICM20689_ALIGN CW90_DEG
|
||||
|
||||
// MPU 6500
|
||||
#define MPU6500_CS_PIN PA4
|
||||
#define MPU6500_SPI_INSTANCE SPI1
|
||||
|
||||
#define ACC
|
||||
#define USE_ACC_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_MPU6500_ALIGN CW90_DEG
|
||||
|
||||
#define GYRO
|
||||
#define USE_GYRO_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define GYRO_MPU6500_ALIGN CW90_DEG
|
||||
|
||||
|
||||
#define USE_VCP
|
||||
//#define VBUS_SENSING_PIN PA8
|
||||
//#define VBUS_SENSING_ENABLED
|
||||
|
|
|
@ -2,5 +2,7 @@ F405_TARGETS += $(TARGET)
|
|||
FEATURES += SDCARD VCP
|
||||
|
||||
TARGET_SRC = \
|
||||
drivers/accgyro_mpu6500.c \
|
||||
drivers/accgyro_spi_mpu6500.c \
|
||||
drivers/accgyro_spi_icm20689.c
|
||||
|
||||
|
|
Loading…
Reference in New Issue