Skip to content

Commit

Permalink
Fix F446 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalentity committed May 21, 2018
1 parent 6a018f1 commit 24b9a7d
Show file tree
Hide file tree
Showing 2 changed files with 322 additions and 218 deletions.
4 changes: 4 additions & 0 deletions src/main/drivers/timer_stm32f4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ const timerDef_t timerDefinitions[HARDWARE_TIMER_DEFINITION_COUNT] = {
#endif

#if defined(TIM8) && !defined(STM32F411xE)
#if defined(STM32F446xx)
[7] = { .tim = TIM8, .rcc = RCC_APB2(TIM8), .irq = 0 },
#else
[7] = { .tim = TIM8, .rcc = RCC_APB2(TIM8), .irq = TIM8_CC_IRQn, .secondIrq = TIM8_UP_TIM13_IRQn },
#endif
#endif

#if defined(TIM9)
[8] = { .tim = TIM9, .rcc = RCC_APB2(TIM9), .irq = TIM1_BRK_TIM9_IRQn},
Expand Down
Loading

0 comments on commit 24b9a7d

Please sign in to comment.