1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

[H7] Add USE_TIMER_MGMT to H7

This commit is contained in:
jflyper 2019-06-06 01:35:44 +09:00
parent ad00c6b66b
commit 22d046c879
6 changed files with 146 additions and 10 deletions

View file

@ -187,6 +187,10 @@ extern const timerHardware_t timerHardware[];
#define FULL_TIMER_CHANNEL_COUNT 78
#elif defined(STM32H7)
#define FULL_TIMER_CHANNEL_COUNT 87
#endif
extern const timerHardware_t fullTimerHardware[];
@ -206,6 +210,10 @@ extern const timerHardware_t fullTimerHardware[];
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) )
#elif defined(STM32H7)
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(6) | TIM_N(7) | TIM_N(8) | TIM_N(12) | TIM_N(13) | TIM_N(14) | TIM_N(15) | TIM_N(16) | TIM_N(17) )
#else
#error "No timer / channel tag definition found for CPU"
#endif