Skip to content

Commit 0a0b2b9

Browse files
ahesslingfpistm
authored andcommitted
Update timer.c
1 parent 5a0dcfc commit 0a0b2b9

File tree

1 file changed

+1
-1
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+1
-1
lines changed

libraries/SrcWrapper/src/stm32/timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ uint8_t getTimerClkSrc(TIM_TypeDef *tim)
629629
uint8_t clkSrc = 0;
630630

631631
if (tim != (TIM_TypeDef *)NC)
632-
#ifdef STM32F0xx
632+
#if defined(STM32F0xx) || defined(STM32G0xx)
633633
/* TIMx source CLK is PCKL1 */
634634
clkSrc = 1;
635635
#else

0 commit comments

Comments
 (0)