Skip to main content
rithers
Associate II
July 28, 2016
Question

HAL Equivelant for RCC_GetClocksFreq

  • July 28, 2016
  • 1 reply
  • 844 views
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

    This topic has been closed for replies.

    1 reply

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

    Maybe I shold try

    HAL_RCC_GetSysClockFreq()

    got it!

    /e