/* TIM_Encoder MSP De-Initialization This function freeze the hardware resources used in this example.  */
void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim_encoder)
/* TIM_Encoder MSP De-Initialization This function freeze the hardware resources used in this example.  */
void HAL_TIM_Encoder_MspDeInit(TIM_HandleTypeDef *htim_encoder)
{
  if(htim_encoder->Instance==TIM4)
  {
    __HAL_RCC_TIM4_CLK_DISABLE();
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_7);
  }
}