/* Enables or disables the specified CAN peripheral Clock.  */
void RCC_CAN_ClockCmd(CAN_TypeDef *peripheral, FunctionalState state)
/* Enables or disables the specified CAN peripheral Clock.  */
void RCC_CAN_ClockCmd(CAN_TypeDef *peripheral, FunctionalState state)
{
    if(CAN1 == peripheral) {
        (state) ? (RCC->APB1ENR |= RCC_APB1ENR_CAN) : (RCC->APB1ENR &= ~RCC_APB1ENR_CAN);
    }
}