Skip to content

Commit

Permalink
[target] AIKONF4 add BMI270 (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter authored Apr 16, 2024
1 parent f75f054 commit 692ce3b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/main/target/AIKONF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@

#pragma once

#define TARGET_BOARD_IDENTIFIER "AIK4"
#define USBD_PRODUCT_STRING "AIKONF4"
#define BOARD_NAME AIKONF4
#define MANUFACTURER_ID AIKO
#define TARGET_BOARD_IDENTIFIER "S405" // generic ID
#define FC_TARGET_MCU STM32F405 // not used in EmuF

#define LED0_PIN PB4
#define USE_BEEPER
Expand All @@ -38,22 +40,32 @@
#define MPU_INT_EXTI PC4
#define USE_MPU_DATA_READY_SIGNAL

#define MPU6000_CS_PIN SPI1_NSS_PIN
#define MPU6000_SPI_INSTANCE SPI1
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_ICM20602
#define USE_GYRO_SPI_ICM20602
#define USE_ACCGYRO_BMI270
#define USE_GYRO_SPI_MPU6500
#define USE_ACC_SPI_MPU6500

#define MPU6000_CS_PIN SPI1_NSS_PIN
#define MPU6000_SPI_INSTANCE SPI1
#define GYRO_MPU6000_ALIGN CW0_DEG
#define ACC_MPU6000_ALIGN CW0_DEG

#define USE_GYRO_SPI_MPU6500
#define USE_ACC_SPI_MPU6500
// ICM2060x detected by MPU6500 driver
#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

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

#define USE_BARO
#define USE_BARO_BMP280

Expand Down
1 change: 1 addition & 0 deletions src/main/target/AIKONF4/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ TARGET_SRC = \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_spi_bmi270.c \
drivers/barometer/barometer_bmp280.c \
drivers/max7456.c

0 comments on commit 692ce3b

Please sign in to comment.