From 022cb588e91e6c661fddba0537d7d3ba602d56c7 Mon Sep 17 00:00:00 2001 From: MJ666 Date: Fri, 10 Aug 2018 07:22:45 +0200 Subject: [PATCH] Fortini F4 Rev3 CAM control update --- src/main/target/FF_FORTINIF4/target.c | 1 + src/main/target/FF_FORTINIF4/target.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main/target/FF_FORTINIF4/target.c b/src/main/target/FF_FORTINIF4/target.c index 14ff7cb07..673cc3c0e 100644 --- a/src/main/target/FF_FORTINIF4/target.c +++ b/src/main/target/FF_FORTINIF4/target.c @@ -39,6 +39,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { #endif DEF_TIM(TIM4, CH4, PB9, TIM_USE_PPM, 0, 0 ), // PPM IN #if defined(FF_FORTINIF4_REV03) + DEF_TIM(TIM4, CH2, PB7, TIM_USE_ANY, 0, 0 ), // FC CAM - DMA1_ST3 DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0 ), // LED - DMA1_ST0 #else DEF_TIM(TIM4, CH2, PB7, TIM_USE_LED, 0, 0 ), // LED - DMA1_ST3 diff --git a/src/main/target/FF_FORTINIF4/target.h b/src/main/target/FF_FORTINIF4/target.h index 545eb5ac7..6e202f30a 100644 --- a/src/main/target/FF_FORTINIF4/target.h +++ b/src/main/target/FF_FORTINIF4/target.h @@ -226,6 +226,10 @@ /*---------------------------------*/ /*--------------TIMERS-------------*/ +#if defined(FF_FORTINIF4_REV03) +#define USABLE_TIMER_CHANNEL_COUNT 7 +#else #define USABLE_TIMER_CHANNEL_COUNT 6 +#endif #define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(4) ) /*---------------------------------*/