/* Enables or disables the specified BKP peripheral Clock.  */
void RCC_BKP_ClockCmd(BKP_TypeDef *peripheral, FunctionalState state)
/* Enables or disables the specified BKP peripheral Clock.  */
void RCC_BKP_ClockCmd(BKP_TypeDef *peripheral, FunctionalState state)
{
    if(BKP == peripheral) {
        (state) ? (RCC->APB1ENR |= RCC_APB1ENR_BKP) : (RCC->APB1ENR &= ~RCC_APB1ENR_BKP);
        (state) ? (RCC->APB1ENR |= RCC_APB1ENR_PWR) : (RCC->APB1ENR &= ~RCC_APB1ENR_PWR);
    }
}