Skip to content

Commit 356addc

Browse files
committed
fix(timer): STM32U0xx clock source
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent eb24140 commit 356addc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • libraries/SrcWrapper/src/stm32

libraries/SrcWrapper/src/stm32/timer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,9 @@ uint8_t getTimerClkSrc(TIM_TypeDef *tim)
629629
uint8_t clkSrc = 0;
630630

631631
if (tim != (TIM_TypeDef *)NC)
632-
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx)
632+
#if defined(STM32C0xx) || defined(STM32F0xx) || defined(STM32G0xx) ||\
633+
defined(STM32U0xx)
634+
633635
/* TIMx source CLK is PCKL1 */
634636
clkSrc = 1;
635637
#else

0 commit comments

Comments
 (0)