/* TIM MSP Initialization This function configures the hardware resources used in this example:  */
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
/* TIM MSP Initialization This function configures the hardware resources used in this example:  */
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
{
  __HAL_RCC_TIM3_CLK_ENABLE(); 
  HAL_NVIC_SetPriority(TIMx_IRQn, 4, 0);
  HAL_NVIC_EnableIRQ(TIMx_IRQn);
}