From 9a1ad97c11f55a71bffdaeab1c216292c578dcf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 5 Jul 2019 13:57:18 +0200 Subject: [PATCH] fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14 --- src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp b/src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp index b59b97360b..a0b692df38 100644 --- a/src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp +++ b/src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp @@ -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)