/* Returns the pclk2 frequency of different on chip clocks.  */
u32 RCC_GetPCLK2Freq(void)
/* Returns the pclk2 frequency of different on chip clocks.  */
u32 RCC_GetPCLK2Freq(void)
{
    return (RCC_GetHCLKFreq() >> tbPresc[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
}