Skip to content

Commit

Permalink
Merge pull request iNavFlight#9630 from DusKing1/add-support-for-skys…
Browse files Browse the repository at this point in the history
…tarsf722hdpro

Add support for SKYSTARSF722HDPRO
  • Loading branch information
DzikuVx authored Jan 22, 2024
2 parents 1d12c7f + 43c1706 commit 26ea30b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/target/SKYSTARSF722HD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target_stm32f722xe(SKYSTARSF722HD)
target_stm32f722xe(SKYSTARSF722HDPRO)
target_stm32f722xe(SKYSTARSF722MINIHD)
24 changes: 24 additions & 0 deletions src/main/target/SKYSTARSF722HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#ifdef SKYSTARSF7MINIHD
#define TARGET_BOARD_IDENTIFIER "SS7M"
#define USBD_PRODUCT_STRING "SkystarsF722MiniHD"
#elif defined(SKYSTARSF722HDPRO)
#define TARGET_BOARD_IDENTIFIER "SS7P"
#define USBD_PRODUCT_STRING "SkystarsF722HDPRO"
#else
#define TARGET_BOARD_IDENTIFIER "SS7D"
#define USBD_PRODUCT_STRING "SkystarsF722HD"
Expand All @@ -45,6 +48,22 @@

#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW270_DEG
#elif defined(SKYSTARSF722HDPRO)
#define MPU6000_CS_PIN PA4
#define MPU6000_SPI_BUS BUS_SPI1
#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW270_DEG_FLIP

#define ICM42605_CS_PIN PA4
#define ICM42605_SPI_BUS BUS_SPI1
#define USE_IMU_ICM42605
#define IMU_ICM42605_ALIGN CW90_DEG_FLIP

#define BMI270_CS_PIN PA4
#define BMI270_SPI_BUS BUS_SPI1
#define USE_IMU_BMI270
#define IMU_BMI270_ALIGN CW90_DEG_FLIP

#else
#define BMI270_CS_PIN PA4
#define BMI270_SPI_BUS BUS_SPI1
Expand Down Expand Up @@ -81,6 +100,11 @@
#define USE_BARO_BMP280
#define BMP280_SPI_BUS BUS_SPI2
#define BMP280_CS_PIN PB1
#ifdef SKYSTARSF722HDPRO
#define USE_BARO_SPL06
#define SPL06_SPI_BUS BUS_SPI2
#define SPL06_CS_PIN PB1
#endif

// *************** UART *****************************
#define USE_VCP
Expand Down

0 comments on commit 26ea30b

Please sign in to comment.