Skip to content

Commit

Permalink
[target] FOXEERF722V4 ICM42668P
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Jul 14, 2023
1 parent f25f049 commit f1a8fd9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Empty file.
13 changes: 13 additions & 0 deletions src/main/target/FOXEERF722DUAL/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
#define TARGET_BOARD_IDENTIFIER "FXF7"
#if defined (FOXEERF722V2)
#define USBD_PRODUCT_STRING "FOXEERF722V2"
#elif defined (FOXEERF722V4)
#define USBD_PRODUCT_STRING "FOXEERF722V4"
#endif

#if ( defined(FOXEERF722V2) || defined(FOXEERF722V4) )
#define USE_GYRO
#define USE_ACC
#define USE_EXTI
Expand All @@ -35,6 +39,15 @@
#define MPU6000_SPI_INSTANCE SPI1
#define GYRO_MPU6000_ALIGN CW270_DEG
#define ACC_MPU6000_ALIGN CW270_DEG
#if defined(FOXEERF722V4)
#define USE_GYRO_SPI_ICM42688P
#define USE_ACC_SPI_ICM42688P
#define ICM42688P_CS_PIN PB2
#define ICM42688P_SPI_INSTANCE SPI1
#define GYRO_ICM42688P_ALIGN CW270_DEG
#define ACC_ICM42688P_ALIGN CW270_DEG
#endif

#else
#define USBD_PRODUCT_STRING "FOXEERF722DUAL"

Expand Down
6 changes: 6 additions & 0 deletions src/main/target/FOXEERF722DUAL/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ TARGET_SRC += \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \

else ifeq ($(TARGET), FOXEERF722V4)
TARGET_SRC += \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_spi_icm426xx.c \

else
TARGET_SRC += \
drivers/accgyro/accgyro_mpu6500.c \
Expand Down

0 comments on commit f1a8fd9

Please sign in to comment.