Core/Src/main.c
static void MX_TIM14_Init(void)
{

  /* USER CODE BEGIN TIM14_Init 0 */

  /* USER CODE END TIM14_Init 0 */

  /* USER CODE BEGIN TIM14_Init 1 */

  /* USER CODE END TIM14_Init 1 */
  htim14.Instance = TIM14;
  htim14.Init.Prescaler = 6000;
  htim14.Init.CounterMode = TIM_COUNTERMODE_UP;
  htim14.Init.Period = 100;
  htim14.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  htim14.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  if (HAL_TIM_Base_Init(&htim14) != HAL_OK)
  {
    Error_Handler();
  }
  if (HAL_TIM_OnePulse_Init(&htim14, TIM_OPMODE_SINGLE) != HAL_OK)
  {
    Error_Handler();
  }
  /* USER CODE BEGIN TIM14_Init 2 */
  __HAL_TIM_CLEAR_IT(&htim14, TIM_IT_UPDATE);
  __HAL_TIM_ENABLE_IT(&htim14, TIM_IT_UPDATE);
  /* USER CODE END TIM14_Init 2 */

}
/**
  * @brief TIM14 Initialization Function
  * @param None
  * @retval None
  */
@brief TIM14 Initialization Function
@param None
@retval None
@brief TIM14 Initialization Function @param None @retval None
static void MX_TIM14_Init(void)
{
  htim14.Instance = TIM14;
  htim14.Init.Prescaler = 6000;
  htim14.Init.CounterMode = TIM_COUNTERMODE_UP;
  htim14.Init.Period = 100;
  htim14.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  htim14.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  if (HAL_TIM_Base_Init(&htim14) != HAL_OK)
  {
    Error_Handler();
  }
  if (HAL_TIM_OnePulse_Init(&htim14, TIM_OPMODE_SINGLE) != HAL_OK)
  {
    Error_Handler();
  }
  __HAL_TIM_CLEAR_IT(&htim14, TIM_IT_UPDATE);
  __HAL_TIM_ENABLE_IT(&htim14, TIM_IT_UPDATE);
}
static void MX_TIM14_Init ( void ) { htim14 . Instance = TIM14 ; htim14 . Init . Prescaler = 6000 ; htim14 . Init . CounterMode = TIM_COUNTERMODE_UP ; htim14 . Init . Period = 100 ; htim14 . Init . ClockDivision = TIM_CLOCKDIVISION_DIV1 ; htim14 . Init . AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE ; if ( HAL_TIM_Base_Init ( & htim14 ) != HAL_OK ) { Error_Handler ( ) ; } if ( HAL_TIM_OnePulse_Init ( & htim14 , TIM_OPMODE_SINGLE ) != HAL_OK ) { Error_Handler ( ) ; } __HAL_TIM_CLEAR_IT ( & htim14 , TIM_IT_UPDATE ) ; __HAL_TIM_ENABLE_IT ( & htim14 , TIM_IT_UPDATE ) ; }
@brief TIM14 Initialization Function
 @param None
 @retval None
@brief TIM14 Initialization Function @param None @retval None
/* USER CODE BEGIN TIM14_Init 0 */ /* USER CODE END TIM14_Init 0 */ /* USER CODE BEGIN TIM14_Init 1 */ /* USER CODE END TIM14_Init 1 */ /* USER CODE BEGIN TIM14_Init 2 */ /* USER CODE END TIM14_Init 2 */