Skip to content

Commit ae47bcb

Browse files
committed
Merge pull request #10718 from DusKing1/hugo-fix-SKYSTARSF405WING-target-config
Fix SKYSTARSF405WING target definition
1 parent 2f990e5 commit ae47bcb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/target/SKYSTARSF405WING/target.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
#include "drivers/timer_def_stm32f4xx.h"
2626

2727
timerHardware_t timerHardware[] = {
28-
DEF_TIM(TIM1, CH1, PA8, TIM_USE_OUTPUT_AUTO, 0, 1), // S1 D(2,1,6) UP256
29-
DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // S2 D(2,7,7) UP217
3028
DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0), // S3 D(2,2,0) UP217
29+
DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // S2 D(2,7,7) UP217
30+
DEF_TIM(TIM1, CH1, PA8, TIM_USE_OUTPUT_AUTO, 0, 1), // S1 D(2,1,6) UP256
3131
DEF_TIM(TIM1, CH3N, PB15, TIM_USE_OUTPUT_AUTO, 0, 0), // S4 D(2,6,0) UP256
3232

33-
DEF_TIM(TIM1, CH3N, PB15, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 D(2,6,0) UP256
33+
DEF_TIM(TIM2, CH3, PB10, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 D(2,6,0) UP256
3434
DEF_TIM(TIM2, CH4, PB11, TIM_USE_OUTPUT_AUTO, 0, 0), // S6 D(1,7,3) UP173
3535
DEF_TIM(TIM2, CH2, PB3, TIM_USE_OUTPUT_AUTO, 0, 0), // S7 D(1,6,3) UP173
3636
DEF_TIM(TIM2, CH1, PA15, TIM_USE_OUTPUT_AUTO, 0, 0), // S8 D(1,5,3) UP173

src/main/target/SKYSTARSF405WING/target.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#define SPI1_MOSI_PIN PA7
3939

4040
#define USE_IMU_ICM42605
41-
#define IMU_ICM42605_ALIGN CW180_DEG
41+
#define IMU_ICM42605_ALIGN CW270_DEG_FLIP
4242
#define ICM42605_SPI_BUS BUS_SPI1
4343
#define ICM42605_CS_PIN PC14
4444

@@ -130,6 +130,7 @@
130130
#define USE_PINIOBOX
131131
#define PINIO1_PIN PA4
132132
#define PINIO2_PIN PB5
133+
#define PINIO1_FLAGS PINIO_FLAGS_INVERTED
133134

134135
// *************** LEDSTRIP ************************
135136
#define USE_LED_STRIP

0 commit comments

Comments
 (0)