From 0e29fcbf9fd7446fbbf50e188ac70826350c3114 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:31:01 -0500 Subject: [PATCH] [target] SIRMIXALOT add gyro, baro, flash (#543) * [target] SIRMIXALOT add gyro, baro, flash * Update configs/SIRMIXALOT/config.h Co-authored-by: Mark Haslinghuis * baro i2c * Update configs/SIRMIXALOT/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> * Update configs/SIRMIXALOT/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> * Add baro CS pin define --------- Co-authored-by: Mark Haslinghuis Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/SIRMIXALOT/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index a606c816..c7a40b6a 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -26,6 +26,16 @@ #define BOARD_NAME SIRMIXALOT #define MANUFACTURER_ID CUST +#define USE_ACC +#define USE_ACC_SPI_ICM20602 +#define USE_GYRO +#define USE_GYRO_SPI_ICM20602 +#define USE_FLASH +#define USE_FLASH_W25N01G +#define USE_BARO +#define USE_BARO_SPI_BMP280 +#define USE_MAX7456 + #define BEEPER_PIN PC11 #define MOTOR1_PIN PB6 #define MOTOR2_PIN PB7 @@ -61,6 +71,7 @@ #define ADC_VBAT_PIN PC2 #define ADC_RSSI_PIN PC3 #define ADC_CURR_PIN PC1 +#define BARO_CS_PIN PB9 #define FLASH_CS_PIN PC0 #define MAX7456_SPI_CS_PIN PC14 #define GYRO_1_EXTI_PIN PC4 @@ -79,6 +90,7 @@ //TODO #define SERIALRX_INVERTED ON //TODO #define SERIALRX_HALFDUPLEX ON +#define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_DSHOT_TELEMETRY DSHOT_TELEMETRY_OFF