Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a848f50

Browse files
committedSep 4, 2024
chore(U0): HardwareTimer no PCLK2 to get clock freq
Signed-off-by: Frederic Pillon <[email protected]>
1 parent c18feba commit a848f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libraries/SrcWrapper/src/HardwareTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ uint32_t HardwareTimer::getTimerClkFreq()
13611361
uwAPBxPrescaler = clkconfig.APB1CLKDivider;
13621362
uwTimclock = HAL_RCC_GetPCLK1Freq();
13631363
break;
1364-
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32G0xx)
1364+
#if !defined(STM32C0xx) && !defined(STM32F0xx) && !defined(STM32G0xx) && !defined(STM32U0xx)
13651365
case 2:
13661366
uwAPBxPrescaler = clkconfig.APB2CLKDivider;
13671367
uwTimclock = HAL_RCC_GetPCLK2Freq();

0 commit comments

Comments
 (0)
Please sign in to comment.