From 1075d31e0d328a1d927504ee3f480632d3f2c4c3 Mon Sep 17 00:00:00 2001 From: LinJieqiang <517503838@qq.com> Date: Sun, 14 Jan 2018 11:17:49 +0800 Subject: [PATCH] Fix the timers table for EXUAVF4PRO board. Fix the timers table for EXUAVF4PRO board. fix the def --- src/main/target/OMNIBUSF4/target.c | 4 ++-- src/main/target/OMNIBUSF4/target.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/target/OMNIBUSF4/target.c b/src/main/target/OMNIBUSF4/target.c index ca3c1d9819..92b9b3fb6b 100644 --- a/src/main/target/OMNIBUSF4/target.c +++ b/src/main/target/OMNIBUSF4/target.c @@ -26,7 +26,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { -#if defined(OMNIBUSF4SD) +#if defined(OMNIBUSF4SD) || defined(EXUAVF4PRO) DEF_TIM(TIM10, CH1, PB8, TIM_USE_PWM | TIM_USE_PPM, 0, 0), // PPM DEF_TIM(TIM4, CH4, PB9, TIM_USE_PWM, 0, 0), // S2_IN #else @@ -44,7 +44,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = { DEF_TIM(TIM2, CH4, PA3, TIM_USE_MOTOR, 0, 1), // S3_OUT D1_ST6 DEF_TIM(TIM2, CH3, PA2, TIM_USE_MOTOR, 0, 0), // S4_OUT D1_ST1 -#if defined(OMNIBUSF4SD) +#if defined(OMNIBUSF4SD) || defined(EXUAVF4PRO) DEF_TIM(TIM5, CH2, PA1, TIM_USE_MOTOR, 0, 0), // S5_OUT DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0), // LED strip for F4 V2 / F4-Pro-0X and later (RCD_CS for F4) #else diff --git a/src/main/target/OMNIBUSF4/target.h b/src/main/target/OMNIBUSF4/target.h index 556871fcd0..3b8eb625be 100644 --- a/src/main/target/OMNIBUSF4/target.h +++ b/src/main/target/OMNIBUSF4/target.h @@ -269,7 +269,7 @@ #define TARGET_IO_PORTC (0xffff & ~(BIT(15)|BIT(14)|BIT(13))) #define TARGET_IO_PORTD BIT(2) -#ifdef OMNIBUSF4SD +#if defined(OMNIBUSF4SD) || defined(EXUAVF4PRO) #define USABLE_TIMER_CHANNEL_COUNT 15 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(10) | TIM_N(12) | TIM_N(8) | TIM_N(9)) #else