diff --git a/src/main/target/FOXEERF722DUAL/FOXEERF722V4.mk b/src/main/target/FOXEERF722DUAL/FOXEERF722V4.mk new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/main/target/FOXEERF722DUAL/target.h b/src/main/target/FOXEERF722DUAL/target.h index e485da2bff..220fcb6ad2 100644 --- a/src/main/target/FOXEERF722DUAL/target.h +++ b/src/main/target/FOXEERF722DUAL/target.h @@ -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 @@ -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" @@ -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 @@ -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 diff --git a/src/main/target/FOXEERF722DUAL/target.mk b/src/main/target/FOXEERF722DUAL/target.mk index 287bef98e5..37475031b0 100644 --- a/src/main/target/FOXEERF722DUAL/target.mk +++ b/src/main/target/FOXEERF722DUAL/target.mk @@ -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 \