Skip to content

Commit 58914e0

Browse files
haslinghuisot0tot
andauthored
MATEKH743 - Change GYRO_2_ALIGN to CW90_DEG_FLIP (#935)
* MATEKH743 - Change GYRO_2_ALIGN to CW90_DEG_FLIP * Fix DMA assignments --------- Co-authored-by: ot0tot <[email protected]>
1 parent 48786e5 commit 58914e0

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

configs/MATEKH743/config.h

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,29 +115,26 @@
115115

116116
#define TIMER_PIN_MAPPING \
117117
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
118-
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
119-
TIMER_PIN_MAP( 2, PA0 , 2, 0) \
120-
TIMER_PIN_MAP( 3, PA1 , 2, 0) \
121-
TIMER_PIN_MAP( 4, PA2 , 2, 0) \
122-
TIMER_PIN_MAP( 5, PA3 , 2, 0) \
123-
TIMER_PIN_MAP( 6, PD12, 1, 0) \
124-
TIMER_PIN_MAP( 7, PD13, 1, 0) \
118+
TIMER_PIN_MAP( 1, PB1 , 2, 1) \
119+
TIMER_PIN_MAP( 2, PA0 , 2, 2) \
120+
TIMER_PIN_MAP( 3, PA1 , 2, 3) \
121+
TIMER_PIN_MAP( 4, PA2 , 2, 4) \
122+
TIMER_PIN_MAP( 5, PA3 , 2, 5) \
123+
TIMER_PIN_MAP( 6, PD12, 1, 6) \
124+
TIMER_PIN_MAP( 7, PD13, 1, 7) \
125125
TIMER_PIN_MAP( 8, PE5 , 1, -1) \
126126
TIMER_PIN_MAP( 9, PE6 , 1, -1) \
127-
TIMER_PIN_MAP(10, PA8 , 1, 0) \
127+
TIMER_PIN_MAP(10, PA8 , 1, 8) \
128128
TIMER_PIN_MAP(11, PA15, 1, -1) \
129129
TIMER_PIN_MAP(12, PC7 , 2, -1)
130130

131131

132132

133-
#define ADC1_DMA_OPT 8
134-
#define ADC3_DMA_OPT 9
135-
#define TIMUP1_DMA_OPT 0
136-
#define TIMUP2_DMA_OPT 0
137-
#define TIMUP3_DMA_OPT 2
138-
#define TIMUP4_DMA_OPT 1
139-
#define TIMUP5_DMA_OPT 0
140-
#define TIMUP8_DMA_OPT 0
133+
#define ADC1_DMA_OPT 9
134+
#define ADC3_DMA_OPT 10
135+
#define TIMUP3_DMA_OPT 11
136+
#define TIMUP4_DMA_OPT 12
137+
#define TIMUP5_DMA_OPT 13
141138

142139
#define BARO_I2C_INSTANCE I2CDEV_2
143140
#define MAG_I2C_INSTANCE I2CDEV_1
@@ -162,6 +159,6 @@
162159
#define GYRO_1_SPI_INSTANCE SPI1
163160
#define GYRO_1_ALIGN CW0_DEG_FLIP
164161
#define GYRO_2_SPI_INSTANCE SPI4
165-
#define GYRO_2_ALIGN CW0_DEG_FLIP
162+
#define GYRO_2_ALIGN CW90_DEG_FLIP
166163

167164
#define ENSURE_MPU_DATA_READY_IS_LOW

0 commit comments

Comments
 (0)