/* CAN MSP De-Initialization This function frees the hardware resources used in this example:  */
void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan)
/* CAN MSP De-Initialization This function frees the hardware resources used in this example:  */
void HAL_CAN_MspDeInit(CAN_HandleTypeDef *hcan)
{
  CANx_FORCE_RESET();
  CANx_RELEASE_RESET();
  HAL_GPIO_DeInit(CANx_TX_GPIO_PORT, CANx_TX_PIN);
  HAL_GPIO_DeInit(CANx_RX_GPIO_PORT, CANx_RX_PIN);
}