/* Forces or releases High Speed APB (APB2) peripheral reset.  */
void RCC_APB2PeriphResetCmd(u32 apb2_periph, FunctionalState state)
/* Forces or releases High Speed APB (APB2) peripheral reset.  */
void RCC_APB2PeriphResetCmd(u32 apb2_periph, FunctionalState state)
{
    (state) ? (RCC->APB2RSTR |= apb2_periph) : (RCC->APB2RSTR &= ~apb2_periph);
}