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 <erwan.gouriou@linaro.org>
This commit is contained in:
parent
bdae64279e
commit
491775549d
|
@ -55,7 +55,7 @@
|
|||
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK3_FREQ
|
||||
#define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHB3Prescaler
|
||||
#else
|
||||
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK1_FREQ
|
||||
#define RCC_CALC_FLASH_FREQ __LL_RCC_CALC_HCLK_FREQ
|
||||
#define GET_CURRENT_FLASH_PRESCALER LL_RCC_GetAHBPrescaler
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue