mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
fix ToneAlarmInterface: correct TOME_ALARM_CLOCK for timer 13 and 14
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user