[stm32][tim-config] fix F4 TIM6's IRQ source in STM32F412
This commit is contained in:
parent
5f87e10032
commit
384a370c9a
|
@ -74,12 +74,21 @@ extern "C" {
|
|||
|
||||
#ifdef BSP_USING_TIM6
|
||||
#ifndef TIM6_CONFIG
|
||||
#if defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx)
|
||||
#define TIM6_CONFIG \
|
||||
{ \
|
||||
.tim_handle.Instance = TIM6, \
|
||||
.tim_irqn = TIM6_IRQn, \
|
||||
.name = "timer6", \
|
||||
}
|
||||
#else
|
||||
#define TIM6_CONFIG \
|
||||
{ \
|
||||
.tim_handle.Instance = TIM6, \
|
||||
.tim_irqn = TIM6_DAC_IRQn, \
|
||||
.name = "timer6", \
|
||||
}
|
||||
#endif /* defined(STM32F412Cx) || defined(STM32F412Rx) || defined(STM32F412Vx) || defined(STM32F412Zx) */
|
||||
#endif /* TIM6_CONFIG */
|
||||
#endif /* BSP_USING_TIM6 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue