Skip to content

Commit

Permalink
[target] AIKONF7 add BMI270, ICM42688P (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Apr 16, 2024
1 parent 692ce3b commit 5eaa3c7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/main/target/AIKONF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
*/

#pragma once
#define TARGET_BOARD_IDENTIFIER "AIKO"
#define USBD_PRODUCT_STRING "AIKONF7"

#define BOARD_NAME AIKONF7
#define MANUFACTURER_ID AIKO
#define TARGET_BOARD_IDENTIFIER "S7X2" // generic ID
#define FC_TARGET_MCU STM32F7X2 // not used in EmuF

#define ENABLE_DSHOT_DMAR true

Expand All @@ -38,12 +41,16 @@
#define USE_EXTI
#define MPU_INT_EXTI PC4
#define USE_MPU_DATA_READY_SIGNAL
//MPU-6000

#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_ICM42688P
#define USE_ACCGYRO_BMI270
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_GYRO_SPI_ICM42688P

//MPU-6000
#define GYRO_MPU6000_ALIGN CW0_DEG
#define ACC_MPU6000_ALIGN CW0_DEG
#define MPU6000_CS_PIN PA4
Expand All @@ -60,6 +67,18 @@
#define MPU6500_CS_PIN SPI1_NSS_PIN
#define MPU6500_SPI_INSTANCE SPI1

// ICM42688P
#define ACC_ICM42688P_ALIGN CW0_DEG
#define GYRO_ICM42688P_ALIGN CW0_DEG
#define ICM42688P_CS_PIN PA4
#define ICM42688P_SPI_INSTANCE SPI1

// BMI270
#define ACC_BMI270_ALIGN CW0_DEG
#define GYRO_BMI270_ALIGN CW0_DEG
#define BMI270_CS_PIN PA4
#define BMI270_SPI_INSTANCE SPI1

#define USE_MAG
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
Expand Down
2 changes: 2 additions & 0 deletions src/main/target/AIKONF7/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ TARGET_SRC = \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_icm426xx.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/light_ws2811strip.c \
drivers/light_ws2811strip_hal.c \
drivers/compass/compass_hmc5883l.c \
Expand Down

0 comments on commit 5eaa3c7

Please sign in to comment.