1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 00:05:28 +03:00

Merge pull request #9851 from iNavFlight/MrD_Add-missing-outputs-to-SkyStars-F405-HD2

Add missing outputs for SKYSTARSHD2
This commit is contained in:
Paweł Spychalski 2024-03-25 13:59:08 +01:00 committed by GitHub
commit 31fee94e78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View file

@ -1 +1,2 @@
target_stm32f405xg(SKYSTARSF405HD) target_stm32f405xg(SKYSTARSF405HD)
target_stm32f405xg(SKYSTARSF405HD2)

View file

@ -28,6 +28,10 @@ timerHardware_t timerHardware[] = {
DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0), DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0),
DEF_TIM(TIM3, CH1, PB4, 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), 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), DEF_TIM(TIM8, CH3, PC8, TIM_USE_LED, 0, 0),
}; };

View file

@ -156,4 +156,8 @@
#define USE_DSHOT #define USE_DSHOT
#define USE_ESC_SENSOR #define USE_ESC_SENSOR
#if defined(SKYSTARSF405HD2)
#define MAX_PWM_OUTPUT_PORTS 6
#else
#define MAX_PWM_OUTPUT_PORTS 4 #define MAX_PWM_OUTPUT_PORTS 4
#endif