Skip to content

Commit 585c03a

Browse files
erwangogalak
authored andcommitted
drivers/clock_control: stm32: Fix macro to get HCLK freq
__LL_RCC_CALC_HCLK1_FREQ is only available for WL and WB series, for other series __LL_RCC_CALC_HCLK_FREQ should be used. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent cacb0a4 commit 585c03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clock_control/clock_stm32_ll_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK3_FREQ
5656
#define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHB3Prescaler
5757
#else
58-
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK1_FREQ
58+
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK_FREQ
5959
#define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHBPrescaler
6060
#endif
6161

0 commit comments

Comments
 (0)