text: /**
    ******************************************************************************
    * File Name          : TIM.h
    * Description        : This file provides code for the configuration
    *                      of the TIM instances.
    ******************************************************************************
    * @attention
    *
    * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
    * All rights reserved.</center></h2>
    *
    * This software component is licensed by ST under BSD 3-Clause license,
    * the "License"; You may not use this file except in compliance with the
    * License. You may obtain a copy of the License at:
    *                        opensource.org/licenses/BSD-3-Clause
    *
    ******************************************************************************
    */
  /* Define to prevent recursive inclusion -------------------------------------*/
  #ifndef __tim_H
  #define __tim_H
  #ifdef __cplusplus
   extern "C" {
  #endif
  
  /* Includes ------------------------------------------------------------------*/
  #include "main.h"
  
  /* USER CODE BEGIN Includes */
  
  /* USER CODE END Includes */
  
  extern TIM_HandleTypeDef htim1;
  extern TIM_HandleTypeDef htim3;
  extern TIM_HandleTypeDef htim15;
  
  /* USER CODE BEGIN Private defines */
  extern TIM_Encoder_InitTypeDef sConfig;
  extern TIM_MasterConfigTypeDef sMasterConfig;
  extern TIM_OC_InitTypeDef sConfigOC;
  /* USER CODE END Private defines */
  
  void MX_TIM1_Init(void);
  void MX_TIM3_Init(void);
  void MX_TIM15_Init(void);
                          
  void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
                                          
  /* USER CODE BEGIN Prototypes */
  void Encoder_Start(void);
  void Pwm_Start(void);
  void Pwm_Set(unsigned int in1,unsigned int in2);
  void RGB_Set(unsigned int r,unsigned int g,unsigned int b);
  int32_t Encoder_Read(void);
  /* USER CODE END Prototypes */
  
  #ifdef __cplusplus
  }
  #endif
  #endif /*__ tim_H */
  
  /**
    * @}
    */
  
  /**
    * @}
    */
  
  /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
  