Skip to content

Commit

Permalink
Add missing outputs for SKYSTARSHD2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrD-RC committed Mar 24, 2024
1 parent 915d3b3 commit 2f6c56a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/target/SKYSTARSF405HD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target_stm32f405xg(SKYSTARSF405HD)
target_stm32f405xg(SKYSTARSF405HD2)
4 changes: 4 additions & 0 deletions src/main/target/SKYSTARSF405HD/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ timerHardware_t timerHardware[] = {
DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0),
DEF_TIM(TIM3, CH1, PB4, TIM_USE_OUTPUT_AUTO, 0, 0),
DEF_TIM(TIM2, CH2, PB3, TIM_USE_OUTPUT_AUTO, 0, 0),
#if defined(SKYSTARSF405HD2)
DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0),
DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0),
#endif

DEF_TIM(TIM8, CH3, PC8, TIM_USE_LED, 0, 0),
};
Expand Down
4 changes: 4 additions & 0 deletions src/main/target/SKYSTARSF405HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,8 @@
#define USE_DSHOT
#define USE_ESC_SENSOR

#if defined(SKYSTARSF405HD2)
#define MAX_PWM_OUTPUT_PORTS 6
#else
#define MAX_PWM_OUTPUT_PORTS 4
#endif

0 comments on commit 2f6c56a

Please sign in to comment.