forked from Archive/PX4-Autopilot
fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14
This commit is contained in:
parent
a3c920db7d
commit
9a1ad97c11
|
@ -135,7 +135,7 @@
|
|||
# endif
|
||||
#elif TONE_ALARM_TIMER == 13
|
||||
# define TONE_ALARM_BASE STM32_TIM13_BASE
|
||||
# define TONE_ALARM_CLOCK STM32_APB1_TIM12_CLKIN
|
||||
# define TONE_ALARM_CLOCK STM32_APB1_TIM13_CLKIN
|
||||
# define TONE_ALARM_CLOCK_ENABLE RCC_APB1ENR_TIM13EN
|
||||
# define TONE_ALARM_CLOCK_POWER_REG STM32_RCC_APB1ENR
|
||||
# if defined(CONFIG_STM32_TIM13)
|
||||
|
@ -143,7 +143,7 @@
|
|||
# endif
|
||||
#elif TONE_ALARM_TIMER == 14
|
||||
# define TONE_ALARM_BASE STM32_TIM14_BASE
|
||||
# define TONE_ALARM_CLOCK STM32_APB1_TIM12_CLKIN
|
||||
# define TONE_ALARM_CLOCK STM32_APB1_TIM14_CLKIN
|
||||
# define TONE_ALARM_CLOCK_ENABLE RCC_APB1ENR_TIM14EN
|
||||
# define TONE_ALARM_CLOCK_POWER_REG STM32_RCC_APB1ENR
|
||||
# if defined(CONFIG_STM32_TIM14)
|
||||
|
|
Loading…
Reference in New Issue