mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Merge pull request #4963 from Linjieqiang/update_EXUAVF4PRO
Fix the timers table for EXUAVF4PRO board.
This commit is contained in:
commit
7b3596f8cc
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue