/* Forces or releases Low Speed APB (APB1) peripheral reset.  */
void RCC_APB1PeriphResetCmd(u32 apb1_periph, FunctionalState state)
/* Forces or releases Low Speed APB (APB1) peripheral reset.  */
void RCC_APB1PeriphResetCmd(u32 apb1_periph, FunctionalState state)
{
    (state) ? (RCC->APB1RSTR |= apb1_periph) : (RCC->APB1RSTR &= ~apb1_periph);
}