/* TIM_Encoder MSP Initialization This function configures the hardware resources used in this example.  */
void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim_encoder)
/* TIM_Encoder MSP Initialization This function configures the hardware resources used in this example.  */
void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef *htim_encoder)
{
  GPIO_InitTypeDef GPIO_InitStruct = {0};
  if(htim_encoder->Instance==TIM3)
  {
    __HAL_RCC_TIM3_CLK_ENABLE();
    __HAL_RCC_GPIOC_CLK_ENABLE();
    GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
    GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
    GPIO_InitStruct.Pull = GPIO_NOPULL;
    HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
    __HAL_AFIO_REMAP_TIM3_ENABLE();
  }
}