Skip to content

Commit 8019569

Browse files
committed
stm32h7 dual core: allow override of HAL_RCC_GetSysClockFreq
It's the only needed entry point to get the right timings for all peripherals
1 parent 212b691 commit 8019569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ void HAL_RCC_DisableCSS(void)
13541354
*
13551355
* @retval SYSCLK frequency
13561356
*/
1357-
uint32_t HAL_RCC_GetSysClockFreq(void)
1357+
__attribute__((weak)) uint32_t HAL_RCC_GetSysClockFreq(void)
13581358
{
13591359
uint32_t pllp, pllsource, pllm, pllfracen, hsivalue;
13601360
float_t fracn1, pllvco;

0 commit comments

Comments
 (0)