We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055864f commit 5e8dbffCopy full SHA for 5e8dbff
cores/arduino/stm32/timer.c
@@ -460,6 +460,8 @@ uint32_t getTimerClkFreq(TIM_TypeDef* tim)
460
* otherwise TIMxCLK = 4x PCLKx
461
*/
462
#if defined(STM32F4xx) || defined(STM32F7xx)
463
+#if !defined(STM32F405xx) && !defined(STM32F415xx) &&\
464
+ !defined(STM32F407xx) && !defined(STM32F417xx)
465
RCC_PeriphCLKInitTypeDef PeriphClkConfig = {};
466
HAL_RCCEx_GetPeriphCLKConfig(&PeriphClkConfig);
467
@@ -477,6 +479,7 @@ uint32_t getTimerClkFreq(TIM_TypeDef* tim)
477
479
break;
478
480
}
481
else
482
+#endif
483
#endif
484
switch (uwAPBxPrescaler) {
485
default:
0 commit comments