Skip to content

Commit

Permalink
Merge pull request #9851 from iNavFlight/MrD_Add-missing-outputs-to-S…
Browse files Browse the repository at this point in the history
…kyStars-F405-HD2

Add missing outputs for SKYSTARSHD2
  • Loading branch information
DzikuVx authored Mar 25, 2024
2 parents 5b631f4 + 2f6c56a commit 31fee94
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 31fee94

Please sign in to comment.