Skip to content

Commit bcd3918

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

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

configs/AIRBOTRACINGSUPERH7/config.h

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@
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+
#define MOTOR1_PIN PE13
40+
#define MOTOR2_PIN PE14
4141
#define MOTOR3_PIN PE9
4242
#define MOTOR4_PIN PE11
4343
#define LED_STRIP_PIN PF6
44+
4445
#define UART1_TX_PIN PA9
4546
#define UART2_TX_PIN PA2
4647
#define UART3_TX_PIN PD8
@@ -57,40 +58,48 @@
5758
#define UART6_RX_PIN PC7
5859
#define UART7_RX_PIN PE7
5960
#define UART8_RX_PIN PE0
61+
6062
#define I2C2_SCL_PIN PB10
6163
#define I2C3_SCL_PIN PA8
6264
#define I2C2_SDA_PIN PB11
6365
#define I2C3_SDA_PIN PC9
6466
#define LED0_PIN PG13
67+
6568
#define SPI1_SCK_PIN PA5
69+
#define SPI1_SDI_PIN PG9
70+
#define SPI1_SDO_PIN PD7
71+
6672
#define SPI2_SCK_PIN PB13
67-
#define SPI3_SCK_PIN PC10
68-
#define SPI4_SCK_PIN PE2
69-
#define SPI1_SDI_PIN PA6
7073
#define SPI2_SDI_PIN PB14
71-
#define SPI3_SDI_PIN PC11
72-
#define SPI4_SDI_PIN PE5
73-
#define SPI1_SDO_PIN PA7
7474
#define SPI2_SDO_PIN PB15
75+
76+
#define SPI3_SCK_PIN PC10
77+
#define SPI3_SDI_PIN PC11
7578
#define SPI3_SDO_PIN PC12
79+
80+
#define SPI4_SCK_PIN PE2
81+
#define SPI4_SDI_PIN PE5
7682
#define SPI4_SDO_PIN PE6
83+
7784
#define ADC_VBAT_PIN PC3
7885
#define ADC_CURR_PIN PC2
7986
#define PINIO1_PIN PA15
8087
#define FLASH_CS_PIN PD10
81-
#define GYRO_1_EXTI_PIN PB3
82-
#define GYRO_1_CS_PIN PD7
88+
89+
#define GYRO_1_EXTI_PIN PC12
90+
#define GYRO_1_CS_PIN PB3
91+
#define GYRO_1_CLK_PIN PB4
8392

8493
#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 ) \
94+
TIMER_PIN_MAP( 1, MOTOR1_PIN, 1, 1 ) \
95+
TIMER_PIN_MAP( 2, MOTOR2_PIN, 1, 2 ) \
8796
TIMER_PIN_MAP( 3, MOTOR3_PIN, 1, 3 ) \
88-
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 )
97+
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 ) \
98+
TIMER_PIN_MAP( 5, GYRO_1_CLK_PIN, 1, -1 )
8999

90100
#define ADC1_DMA_OPT 8
91101
#define ADC3_DMA_OPT 9
92102
#define TIMUP1_DMA_OPT 10
93-
#define TIMUP3_DMA_OPT 11
94103

95104
#define BARO_I2C_INSTANCE I2CDEV_2
96105
#define ADC_INSTANCE ADC1
@@ -103,7 +112,7 @@
103112
#define PINIO1_CONFIG 129
104113
#define BOX_USER1_NAME "VTX POWER"
105114
#define FLASH_SPI_INSTANCE SPI2
106-
#define GYRO_1_SPI_INSTANCE SPI3
115+
#define GYRO_1_SPI_INSTANCE SPI1
107116
#define GYRO_1_ALIGN CW270_DEG_FLIP
108117

109118
#define MSP_DISPLAYPORT_UART SERIAL_PORT_UART4

0 commit comments

Comments
 (0)