Skip to content

Commit

Permalink
[target] FLYWOOF411_5IN1_AIO ensure BMI270 (define missing) (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Apr 17, 2024
1 parent d0396f7 commit 967586b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
26 changes: 11 additions & 15 deletions src/main/target/FLYWOOF411_5IN1_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
#pragma once


#define TARGET_BOARD_IDENTIFIER "FLWO"
#define USBD_PRODUCT_STRING "FLYWOOF411_5IN1_AIO"
#define BOARD_NAME FLYWOOF411_5IN1_AIO
#define MANUFACTURER_ID FLWO
#define TARGET_BOARD_IDENTIFIER "S411" // generic ID
#define FC_TARGET_MCU STM32F411 // not used in EmuF

#define LED0_PIN PC13

Expand All @@ -39,11 +41,6 @@
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7

#define MPU6000_CS_PIN PA4
//#define ICM20689_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1
//#define ICM20689_SPI_INSTANCE SPI1

#define USE_EXTI
#define USE_GYRO_EXTI
#define MPU_INT_EXTI PB2
Expand All @@ -52,24 +49,23 @@

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define GYRO_MPU6000_ALIGN CW0_DEG_FLIP
//#define USE_GYRO_SPI_ICM20689
//#define ACC_ICM20689_ALIGN CW180_DEG
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define ACC_MPU6000_ALIGN CW0_DEG_FLIP
//#define USE_ACC_SPI_ICM20689
//#define ACC_ICM20689_ALIGN CW180_DEG

#define USE_GYRO_SPI_ICM42688P
#define USE_ACC_SPI_ICM42688P
#define USE_ACCGYRO_BMI270
#define USE_SPI_GYRO

#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_INSTANCE SPI1
#define GYRO_MPU6000_ALIGN CW0_DEG_FLIP
#define ACC_MPU6000_ALIGN CW0_DEG_FLIP

#define ICM42688P_SPI_INSTANCE SPI1
#define ICM42688P_CS_PIN PA4
#define ACC_ICM42688P_ALIGN CW0_DEG_FLIP
#define GYRO_ICM42688P_ALIGN CW0_DEG_FLIP

#define USE_SPI_GYRO
#define BMI270_SPI_INSTANCE SPI1
#define BMI270_CS_PIN PA4
#define ACC_BMI270_ALIGN CW0_DEG_FLIP
Expand Down
1 change: 0 additions & 1 deletion src/main/target/FLYWOOF411_5IN1_AIO/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ FEATURES += VCP
TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/accgyro/accgyro_spi_icm426xx.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/barometer/barometer_bmp085.c \
Expand Down

0 comments on commit 967586b

Please sign in to comment.