Skip to content

Commit ddb9d3c

Browse files
authored
Remove duplicate TIMUP definitions (SPRACINGH7ZERO) (#894)
1 parent 1fc2a16 commit ddb9d3c

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

configs/SPRACINGH7ZERO/config.h

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
#define USE_I2C_DEVICE_1 // Connected to BMP388 only
106106
#define I2C1_SCL_PIN PB8
107107
#define I2C1_SDA_PIN PB9
108-
#define I2C_DEVICE I2CDEV_1
108+
#define I2C_DEVICE I2CDEV_1
109109

110110
#define I2C2_SCL_PIN NONE
111111
#define I2C2_SDA_PIN NONE
@@ -138,6 +138,7 @@
138138
#define USE_ACC_SPI_MPU6500
139139
#define USE_GYRO
140140
#define USE_GYRO_SPI_MPU6500
141+
#define USE_BARO
141142
#define USE_BARO_BMP388
142143
#define USE_MAG
143144
#define USE_MAG_HMC5883
@@ -218,17 +219,8 @@
218219
TIMER_PIN_MAP(17, PB0, 2, 0) \
219220
TIMER_PIN_MAP(18, PB1, 2, 0)
220221

221-
#define TIMUP1_DMA_OPT 0
222-
#define TIMUP2_DMA_OPT 0
223-
#define TIMUP3_DMA_OPT 0
224-
#define TIMUP4_DMA_OPT 0
225-
#define TIMUP5_DMA_OPT 0
226-
#define TIMUP8_DMA_OPT 2
227-
228-
#define MAG_I2C_INSTANCE I2CDEV_1
229-
230-
#define USE_BARO
231-
#define BARO_I2C_INSTANCE I2CDEV_1
222+
#define MAG_I2C_INSTANCE I2CDEV_1
223+
#define BARO_I2C_INSTANCE I2CDEV_1
232224

233225
#define GYRO_1_SPI_INSTANCE SPI3
234226
#define GYRO_1_ALIGN CW180_DEG

0 commit comments

Comments
 (0)