Skip to content

Commit

Permalink
Fix H7EXTREME
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Mar 29, 2023
1 parent 19adf35 commit bacde9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/config/SPRACINGH7EXTREME/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#define TARGET_BOARD_IDENTIFIER "SP7E"
#define USBD_PRODUCT_STRING "SPRacingH7EXTREME"

#define CONFIG_IN_EXTERNAL_FLASH
#define USE_FIRMWARE_PARTITION

#define FC_VMA_ADDRESS 0x97CE0000

#define EEPROM_SIZE 8192
Expand Down Expand Up @@ -113,6 +116,7 @@
#define USE_ACC_SPI_MPU6500
#define USE_GYRO
#define USE_GYRO_SPI_MPU6500
#define USE_BARO
#define USE_BARO_BMP388
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
Expand Down Expand Up @@ -189,22 +193,19 @@
#define VTX_DATA_PIN PA6
#define VTX_CLK_PIN PA7

//TODO #define MAG_BUSTYPE I2C
#define MAG_I2C_INSTANCE (I2CDEV_1)

#define USE_BARO
#define BARO_I2C_INSTANCE (I2CDEV_1)
#define MAG_I2C_INSTANCE (I2CDEV_1)
#define MAX7456_SPI_INSTANCE SPI4

#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD

#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH

#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_1_ALIGN CW180_DEG
#define USE_SPI_GYRO
#define GYRO_2_SPI_INSTANCE SPI2
#define GYRO_2_ALIGN ALIGN_CUSTOM
#define GYRO_2_ALIGN_ROLL 0
#define GYRO_2_ALIGN_PITCH 0
#define GYRO_2_ALIGN_YAW 2250
#define MAX7456_SPI_INSTANCE SPI4

0 comments on commit bacde9b

Please sign in to comment.