/* Enables or disables the specified COMP peripheral Clock.  */
void RCC_COMP_ClockCmd(COMP_TypeDef *peripheral, FunctionalState state)
/* Enables or disables the specified COMP peripheral Clock.  */
void RCC_COMP_ClockCmd(COMP_TypeDef *peripheral, FunctionalState state)
{
    if(COMP == peripheral) {
        (state) ? (RCC->APB2ENR |= RCC_APB2ENR_COMP) : (RCC->APB2ENR &= ~RCC_APB2ENR_COMP);
    }
}