fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14

This commit is contained in:
Beat Küng 2019-07-05 13:57:18 +02:00
parent a3c920db7d
commit 9a1ad97c11
1 changed files with 2 additions and 2 deletions

View File

@ -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)