Skip to content

Commit

Permalink
fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Jul 16, 2019
1 parent a3c920d commit 9a1ad97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/stm32/tone_alarm/ToneAlarmInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@
# 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)
# error Must not set CONFIG_STM32_TIM13 when TONE_ALARM_TIMER is 13
# 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)
Expand Down

0 comments on commit 9a1ad97

Please sign in to comment.