Skip to content

Commit 6b5ce24

Browse files
committed
Update after new schematics
1 parent 684f778 commit 6b5ce24

File tree

1 file changed

+34
-18
lines changed

1 file changed

+34
-18
lines changed

configs/AIRBOTRACINGSUPERH7/config.h

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@
3030
#define USE_GYRO
3131
#define USE_GYRO_SPI_ICM42688P
3232
#define USE_BARO
33-
#define USE_BARO_DPS310
33+
#define USE_BARO_LPS22DF
3434
#define USE_FLASH
3535
#define USE_FLASH_M25P16
3636
#define USE_MSP_DISPLAYPORT_FONT
3737

38-
#define BEEPER_PIN PC0
39-
#define MOTOR1_PIN PB0
40-
#define MOTOR2_PIN PB1
38+
#define BEEPER_PIN PA1
39+
40+
#define MOTOR1_PIN PE13
41+
#define MOTOR2_PIN PE14
4142
#define MOTOR3_PIN PE9
4243
#define MOTOR4_PIN PE11
44+
4345
#define LED_STRIP_PIN PF6
46+
4447
#define UART1_TX_PIN PA9
4548
#define UART2_TX_PIN PA2
4649
#define UART3_TX_PIN PD8
@@ -57,53 +60,66 @@
5760
#define UART6_RX_PIN PC7
5861
#define UART7_RX_PIN PE7
5962
#define UART8_RX_PIN PE0
63+
6064
#define I2C2_SCL_PIN PB10
6165
#define I2C3_SCL_PIN PA8
6266
#define I2C2_SDA_PIN PB11
6367
#define I2C3_SDA_PIN PC9
68+
6469
#define LED0_PIN PG13
70+
6571
#define SPI1_SCK_PIN PA5
72+
#define SPI1_SDI_PIN PG9
73+
#define SPI1_SDO_PIN PD7
74+
6675
#define SPI2_SCK_PIN PB13
67-
#define SPI3_SCK_PIN PC10
68-
#define SPI4_SCK_PIN PE2
69-
#define SPI1_SDI_PIN PA6
7076
#define SPI2_SDI_PIN PB14
71-
#define SPI3_SDI_PIN PC11
72-
#define SPI4_SDI_PIN PE5
73-
#define SPI1_SDO_PIN PA7
7477
#define SPI2_SDO_PIN PB15
78+
79+
#define SPI3_SCK_PIN PC10
80+
#define SPI3_SDI_PIN PC11
7581
#define SPI3_SDO_PIN PC12
82+
83+
#define SPI4_SCK_PIN PE2
84+
#define SPI4_SDI_PIN PE5
7685
#define SPI4_SDO_PIN PE6
86+
7787
#define ADC_VBAT_PIN PC3
7888
#define ADC_CURR_PIN PC2
89+
7990
#define PINIO1_PIN PA15
8091
#define FLASH_CS_PIN PD10
81-
#define GYRO_1_EXTI_PIN PB3
82-
#define GYRO_1_CS_PIN PD7
92+
93+
#define GYRO_1_EXTI_PIN PC12
94+
#define GYRO_1_CS_PIN PB3
95+
#define GYRO_1_CLK_PIN PB4
8396

8497
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, 0 ) \
85-
TIMER_PIN_MAP( 1, MOTOR1_PIN, 2, 1 ) \
86-
TIMER_PIN_MAP( 2, MOTOR2_PIN, 2, 2 ) \
98+
TIMER_PIN_MAP( 1, MOTOR1_PIN, 1, 1 ) \
99+
TIMER_PIN_MAP( 2, MOTOR2_PIN, 1, 2 ) \
87100
TIMER_PIN_MAP( 3, MOTOR3_PIN, 1, 3 ) \
88-
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 )
101+
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 ) \
102+
TIMER_PIN_MAP( 5, GYRO_1_CLK_PIN, 1, -1 )
89103

90104
#define ADC1_DMA_OPT 8
91105
#define ADC3_DMA_OPT 9
92106
#define TIMUP1_DMA_OPT 10
93-
#define TIMUP3_DMA_OPT 11
94107

95108
#define BARO_I2C_INSTANCE I2CDEV_2
96-
#define ADC_INSTANCE ADC1
109+
#define MAG_I2C_INSTANCE I2CDEV_2
110+
97111
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
98112
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF
99113
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
100114
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
115+
101116
#define BEEPER_INVERTED
102117
#define PINIO1_BOX 40
103118
#define PINIO1_CONFIG 129
104119
#define BOX_USER1_NAME "VTX POWER"
120+
105121
#define FLASH_SPI_INSTANCE SPI2
106-
#define GYRO_1_SPI_INSTANCE SPI3
122+
#define GYRO_1_SPI_INSTANCE SPI1
107123
#define GYRO_1_ALIGN CW270_DEG_FLIP
108124

109125
#define MSP_DISPLAYPORT_UART SERIAL_PORT_UART4

0 commit comments

Comments
 (0)