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

  /* USER CODE BEGIN TIM16_Init 0 */

  /* USER CODE END TIM16_Init 0 */

  /* USER CODE BEGIN TIM16_Init 1 */

  /* USER CODE END TIM16_Init 1 */
  htim16.Instance = TIM16;
  htim16.Init.Prescaler = 600;
  htim16.Init.CounterMode = TIM_COUNTERMODE_UP;
  htim16.Init.Period = 50;
  htim16.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  htim16.Init.RepetitionCounter = 100;
  htim16.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  if (HAL_TIM_Base_Init(&htim16) != HAL_OK)
  {
    Error_Handler();
  }
  /* USER CODE BEGIN TIM16_Init 2 */
  HAL_TIM_Base_Start_IT(&htim16);
  /* USER CODE END TIM16_Init 2 */

}
/**
  * @brief TIM16 Initialization Function
  * @param None
  * @retval None
  */
@brief TIM16 Initialization Function
@param None
@retval None
@brief TIM16 Initialization Function @param None @retval None
static void MX_TIM16_Init(void)
{
  htim16.Instance = TIM16;
  htim16.Init.Prescaler = 600;
  htim16.Init.CounterMode = TIM_COUNTERMODE_UP;
  htim16.Init.Period = 50;
  htim16.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  htim16.Init.RepetitionCounter = 100;
  htim16.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  if (HAL_TIM_Base_Init(&htim16) != HAL_OK)
  {
    Error_Handler();
  }
  HAL_TIM_Base_Start_IT(&htim16);
}
static void MX_TIM16_Init ( void ) { htim16 . Instance = TIM16 ; htim16 . Init . Prescaler = 600 ; htim16 . Init . CounterMode = TIM_COUNTERMODE_UP ; htim16 . Init . Period = 50 ; htim16 . Init . ClockDivision = TIM_CLOCKDIVISION_DIV1 ; htim16 . Init . RepetitionCounter = 100 ; htim16 . Init . AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE ; if ( HAL_TIM_Base_Init ( & htim16 ) != HAL_OK ) { Error_Handler ( ) ; } HAL_TIM_Base_Start_IT ( & htim16 ) ; }
@brief TIM16 Initialization Function
 @param None
 @retval None
@brief TIM16 Initialization Function @param None @retval None
/* USER CODE BEGIN TIM16_Init 0 */ /* USER CODE END TIM16_Init 0 */ /* USER CODE BEGIN TIM16_Init 1 */ /* USER CODE END TIM16_Init 1 */ /* USER CODE BEGIN TIM16_Init 2 */ /* USER CODE END TIM16_Init 2 */