From ab66d2d6142ae4eea01e0825097ec5ed672b1888 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:19:06 -0500 Subject: [PATCH 1/6] [target] SIRMIXALOT add gyro, baro, flash --- configs/SIRMIXALOT/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index a606c816..8c356a83 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -26,6 +26,18 @@ #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_BMP280 +#define USE_BARO_SPI_BMP280 +#define USE_MAX7456 + #define BEEPER_PIN PC11 #define MOTOR1_PIN PB6 #define MOTOR2_PIN PB7 From 996e797ede8a2dcd5f10fc379c79bd46e1a3a1cc Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:33:36 -0500 Subject: [PATCH 2/6] Update configs/SIRMIXALOT/config.h Co-authored-by: Mark Haslinghuis --- configs/SIRMIXALOT/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index 8c356a83..e8d7783d 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -35,7 +35,6 @@ #define USE_FLASH_W25N01G #define USE_BARO #define USE_BARO_BMP280 -#define USE_BARO_SPI_BMP280 #define USE_MAX7456 #define BEEPER_PIN PC11 From 018b22cfa84c7b276f47a0b11b9573223ba83df5 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 23 Aug 2024 13:40:25 -0500 Subject: [PATCH 3/6] baro i2c --- configs/SIRMIXALOT/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index e8d7783d..84cfb950 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -26,7 +26,6 @@ #define BOARD_NAME SIRMIXALOT #define MANUFACTURER_ID CUST - #define USE_ACC #define USE_ACC_SPI_ICM20602 #define USE_GYRO @@ -90,6 +89,7 @@ //TODO #define SERIALRX_INVERTED ON //TODO #define SERIALRX_HALFDUPLEX ON +#define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON #define DEFAULT_DSHOT_TELEMETRY DSHOT_TELEMETRY_OFF From a910010f95b6d94c610d10dcd085370df657cd24 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 13 Sep 2024 20:16:44 +0200 Subject: [PATCH 4/6] Update configs/SIRMIXALOT/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/SIRMIXALOT/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index 84cfb950..c8fb808b 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -33,7 +33,7 @@ #define USE_FLASH #define USE_FLASH_W25N01G #define USE_BARO -#define USE_BARO_BMP280 +#define USE_BARO_SPI_BMP280 #define USE_MAX7456 #define BEEPER_PIN PC11 From 67d802e53537f032a987b0b813c69a4c5c4e9b06 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Fri, 13 Sep 2024 20:17:02 +0200 Subject: [PATCH 5/6] Update configs/SIRMIXALOT/config.h Co-authored-by: ot0tot <36753790+ot0tot@users.noreply.github.com> --- configs/SIRMIXALOT/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index c8fb808b..dea042dc 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -89,7 +89,7 @@ //TODO #define SERIALRX_INVERTED ON //TODO #define SERIALRX_HALFDUPLEX ON -#define BARO_I2C_INSTANCE (I2CDEV_1) +#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 From e6fe5eb18b386fcbc0ed4070981a2f774f70e297 Mon Sep 17 00:00:00 2001 From: ot0tot <36753790+ot0tot@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:29:29 -0400 Subject: [PATCH 6/6] Add baro CS pin define --- configs/SIRMIXALOT/config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/SIRMIXALOT/config.h b/configs/SIRMIXALOT/config.h index dea042dc..c7a40b6a 100644 --- a/configs/SIRMIXALOT/config.h +++ b/configs/SIRMIXALOT/config.h @@ -71,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