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 17, 2023
1 parent f25f049 commit 61181ae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
Empty file.
22 changes: 20 additions & 2 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 Expand Up @@ -71,8 +84,6 @@
#define ACC_2_ALIGN ACC_MPU6500_2_ALIGN

#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1


#endif

#define ENABLE_DSHOT_DMAR true
Expand Down Expand Up @@ -111,7 +122,14 @@

#define UART5_TX_PIN PC12
#define UART5_RX_PIN PD2

#if defined(FOXEERF722V4)
#define UART6_TX_PIN C06
#define UART6_RX_PIN C07
#define SERIAL_PORT_COUNT 7
#else
#define SERIAL_PORT_COUNT 6
#endif

#define USE_I2C
#define USE_I2C_DEVICE_1
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 61181ae

Please sign in to comment.