/* Enables or disables the High Speed APB (APB2) peripheral clock.  */
void RCC_APB2PeriphClockCmd(u32 apb2_periph, FunctionalState state)
/* Enables or disables the High Speed APB (APB2) peripheral clock.  */
void RCC_APB2PeriphClockCmd(u32 apb2_periph, FunctionalState state)
{
    (state) ? (RCC->APB2ENR |= apb2_periph) : (RCC->APB2ENR &= ~apb2_periph);
}