fix incorrect clock setup for LPTIM1

This commit is contained in:
ziggurat29 2016-07-08 16:37:44 -05:00
parent cb1d0f90a5
commit 106f87d9ed
1 changed files with 6 additions and 6 deletions

View File

@ -407,18 +407,18 @@ static inline void rcc_enableapb1(void)
regval |= RCC_APB1ENR1_OPAMPEN;
#endif
#ifdef CONFIG_STM32L4_LPTIM1
/* Low power timer 1 clock enable */
regval |= RCC_APB1ENR1_LPTIM1EN;
#endif
putreg32(regval, STM32L4_RCC_APB1ENR1); /* Enable peripherals */
/* Second APB1 register */
regval = getreg32(STM32L4_RCC_APB1ENR2);
#ifdef CONFIG_STM32L4_LPTIM1
/* Low power timer 1 clock enable */
regval |= RCC_APB1ENR2_LPTIM1EN;
#endif
#ifdef CONFIG_STM32L4_LPUART1
/* Low power uart clock enable */