Skip to content

Commit 44087be

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

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

configs/AIRBOTRACINGSUPERH7/config.h

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,23 @@
2828
#define USE_ACC
2929
#define USE_ACC_SPI_ICM42688P
3030
#define USE_GYRO
31+
#define USE_GYRO_CLKIN
3132
#define USE_GYRO_SPI_ICM42688P
3233
#define USE_BARO
33-
#define USE_BARO_DPS310
34+
#define USE_BARO_LPS22DF
3435
#define USE_FLASH
3536
#define USE_FLASH_M25P16
3637
#define USE_MSP_DISPLAYPORT_FONT
3738

38-
#define BEEPER_PIN PC0
39-
#define MOTOR1_PIN PB0
40-
#define MOTOR2_PIN PB1
39+
#define BEEPER_PIN PA1
40+
41+
#define MOTOR1_PIN PE13
42+
#define MOTOR2_PIN PE14
4143
#define MOTOR3_PIN PE9
4244
#define MOTOR4_PIN PE11
45+
4346
#define LED_STRIP_PIN PF6
47+
4448
#define UART1_TX_PIN PA9
4549
#define UART2_TX_PIN PA2
4650
#define UART3_TX_PIN PD8
@@ -57,53 +61,66 @@
5761
#define UART6_RX_PIN PC7
5862
#define UART7_RX_PIN PE7
5963
#define UART8_RX_PIN PE0
64+
6065
#define I2C2_SCL_PIN PB10
6166
#define I2C3_SCL_PIN PA8
6267
#define I2C2_SDA_PIN PB11
6368
#define I2C3_SDA_PIN PC9
69+
6470
#define LED0_PIN PG13
71+
6572
#define SPI1_SCK_PIN PA5
73+
#define SPI1_SDI_PIN PG9
74+
#define SPI1_SDO_PIN PD7
75+
6676
#define SPI2_SCK_PIN PB13
67-
#define SPI3_SCK_PIN PC10
68-
#define SPI4_SCK_PIN PE2
69-
#define SPI1_SDI_PIN PA6
7077
#define SPI2_SDI_PIN PB14
71-
#define SPI3_SDI_PIN PC11
72-
#define SPI4_SDI_PIN PE5
73-
#define SPI1_SDO_PIN PA7
7478
#define SPI2_SDO_PIN PB15
79+
80+
#define SPI3_SCK_PIN PC10
81+
#define SPI3_SDI_PIN PC11
7582
#define SPI3_SDO_PIN PC12
83+
84+
#define SPI4_SCK_PIN PE2
85+
#define SPI4_SDI_PIN PE5
7686
#define SPI4_SDO_PIN PE6
87+
7788
#define ADC_VBAT_PIN PC3
7889
#define ADC_CURR_PIN PC2
90+
7991
#define PINIO1_PIN PA15
8092
#define FLASH_CS_PIN PD10
81-
#define GYRO_1_EXTI_PIN PB3
82-
#define GYRO_1_CS_PIN PD7
93+
94+
#define GYRO_1_EXTI_PIN PC12
95+
#define GYRO_1_CS_PIN PB3
96+
#define GYRO_1_CLK_PIN PB4
8397

8498
#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 ) \
99+
TIMER_PIN_MAP( 1, MOTOR1_PIN, 1, 1 ) \
100+
TIMER_PIN_MAP( 2, MOTOR2_PIN, 1, 2 ) \
87101
TIMER_PIN_MAP( 3, MOTOR3_PIN, 1, 3 ) \
88-
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 )
102+
TIMER_PIN_MAP( 4, MOTOR4_PIN, 1, 4 ) \
103+
TIMER_PIN_MAP( 5, GYRO_1_CLK_PIN, 1, -1 )
89104

90105
#define ADC1_DMA_OPT 8
91106
#define ADC3_DMA_OPT 9
92107
#define TIMUP1_DMA_OPT 10
93-
#define TIMUP3_DMA_OPT 11
94108

95109
#define BARO_I2C_INSTANCE I2CDEV_2
96-
#define ADC_INSTANCE ADC1
110+
#define MAG_I2C_INSTANCE I2CDEV_2
111+
97112
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
98113
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF
99114
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
100115
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
116+
101117
#define BEEPER_INVERTED
102118
#define PINIO1_BOX 40
103119
#define PINIO1_CONFIG 129
104120
#define BOX_USER1_NAME "VTX POWER"
121+
105122
#define FLASH_SPI_INSTANCE SPI2
106-
#define GYRO_1_SPI_INSTANCE SPI3
123+
#define GYRO_1_SPI_INSTANCE SPI1
107124
#define GYRO_1_ALIGN CW270_DEG_FLIP
108125

109126
#define MSP_DISPLAYPORT_UART SERIAL_PORT_UART4

0 commit comments

Comments
 (0)