/* Returns the hclk frequency of different on chip clocks.  */
u32 RCC_GetHCLKFreq(void)
/* Returns the hclk frequency of different on chip clocks.  */
u32 RCC_GetHCLKFreq(void)
{
    return (RCC_GetSysClockFreq() >> tbPresc[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]);
}