cancel
Showing results for 
Search instead for 
Did you mean: 

HAL Equivelant for RCC_GetClocksFreq

rithers
Associate II
Posted on July 28, 2016 at 05:41

Hi. I've compiled a couple very simple working programs for my 446Nucleo board using CubeMX. I'm having trouble when I want to use functions found in the SPL, like

RCC_GetClocksFreq. Is there a loose translation of similar functions? This is all I'm trying to do: (USART2 is already set up and working via CubeMX)

RCC_GetClocksFreq(&RCC_Clocks);
printf(''Running at %d MHz\n'', RCC_Clocks.SYSCLK_Frequency / 1000000);

thanks for any advice
 /etienne

1 REPLY 1
rithers
Associate II
Posted on July 28, 2016 at 05:52

Maybe I shold try

HAL_RCC_GetSysClockFreq()

got it!

/e