tim.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. ******************************************************************************
  3. * File Name : TIM.h
  4. * Description : This file provides code for the configuration
  5. * of the TIM instances.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under BSD 3-Clause license,
  13. * the "License"; You may not use this file except in compliance with the
  14. * License. You may obtain a copy of the License at:
  15. * opensource.org/licenses/BSD-3-Clause
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef __tim_H
  21. #define __tim_H
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* Includes ------------------------------------------------------------------*/
  26. #include "main.h"
  27. /* USER CODE BEGIN Includes */
  28. void pwm_init(void);
  29. /* USER CODE END Includes */
  30. extern TIM_HandleTypeDef htim2;
  31. extern TIM_HandleTypeDef htim3;
  32. extern TIM_HandleTypeDef htim4;
  33. /* USER CODE BEGIN Private defines */
  34. void init_pwmout(uint8_t uav_type);
  35. /* USER CODE END Private defines */
  36. void MX_TIM2_Init(void);
  37. void MX_TIM3_Init(void);
  38. void MX_TIM4_Init(void);
  39. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  40. /* USER CODE BEGIN Prototypes */
  41. /* USER CODE END Prototypes */
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /*__ tim_H */
  46. /**
  47. * @}
  48. */
  49. /**
  50. * @}
  51. */
  52. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/