KugleFirmware/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c
/**
  * @brief  Returns the HCLK frequency
  * @note   Each time HCLK changes, this function must be called to update the
  *         right HCLK value. Otherwise, any configuration based on this function will be incorrect.
  *
  * @note   The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  *         and updated within this function
  * @retval HCLK frequency
  */
@brief  Returns the HCLK frequency
@note   Each time HCLK changes, this function must be called to update the
right HCLK value. Otherwise, any configuration based on this function will be incorrect.

@note   The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
and updated within this function
@retval HCLK frequency
@brief Returns the HCLK frequency @note Each time HCLK changes this function must be called to update the right HCLK value . Otherwise any configuration based on this function will be incorrect . @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency and updated within this function @retval HCLK frequency
uint32_t HAL_RCC_GetHCLKFreq(void)
{
  SystemD2Clock = (HAL_RCCEx_GetD1SysClockFreq() >> D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> POSITION_VAL(RCC_D1CFGR_HPRE_0)]);
  return SystemD2Clock;
}
uint32_t HAL_RCC_GetHCLKFreq ( void ) { SystemD2Clock = ( HAL_RCCEx_GetD1SysClockFreq ( ) >> D1CorePrescTable [ ( RCC -> D1CFGR & RCC_D1CFGR_HPRE ) >> POSITION_VAL ( RCC_D1CFGR_HPRE_0 ) ] ) ; return SystemD2Clock ; }
@brief  Returns the HCLK frequency
 @note   Each time HCLK changes, this function must be called to update the
         right HCLK value.
@brief Returns the HCLK frequency @note Each time HCLK changes this function must be called to update the right HCLK value .