/* Deinitializes the CAN peripheral registers to their default reset values.  */
void CAN_DeInit(CAN_TypeDef *CANx)
/* Deinitializes the CAN peripheral registers to their default reset values.  */
void CAN_DeInit(CAN_TypeDef *CANx)
{
  assert_param(IS_CAN_ALL_PERIPH(CANx));
  if (CANx == CAN1)
  {
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, ENABLE);
    RCC_APB1PeriphResetCmd(RCC_APB1Periph_CAN1, DISABLE);
  }
}