Skip to content

Commit 5e8dbff

Browse files
committed
Fix build issue
Fix #25 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 055864f commit 5e8dbff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cores/arduino/stm32/timer.c

+3
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ uint32_t getTimerClkFreq(TIM_TypeDef* tim)
460460
* otherwise TIMxCLK = 4x PCLKx
461461
*/
462462
#if defined(STM32F4xx) || defined(STM32F7xx)
463+
#if !defined(STM32F405xx) && !defined(STM32F415xx) &&\
464+
!defined(STM32F407xx) && !defined(STM32F417xx)
463465
RCC_PeriphCLKInitTypeDef PeriphClkConfig = {};
464466
HAL_RCCEx_GetPeriphCLKConfig(&PeriphClkConfig);
465467

@@ -477,6 +479,7 @@ uint32_t getTimerClkFreq(TIM_TypeDef* tim)
477479
break;
478480
}
479481
else
482+
#endif
480483
#endif
481484
switch (uwAPBxPrescaler) {
482485
default:

0 commit comments

Comments
 (0)