基质喷涂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
649 B

  1. //
  2. // Created by iflyt on 2025/2/28.
  3. //
  4. #ifndef TIM_PWM_H
  5. #define TIM_PWM_H
  6. #include <stm32f4xx_hal.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #include <stdint.h>
  11. void bsp_SetTIMOutPWM(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, TIM_TypeDef* TIMx, uint8_t _ucChannel,
  12. uint32_t _ulFreq, uint32_t _ulDutyCycle);
  13. void bsp_SetTIMOutPWM_N(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, TIM_TypeDef* TIMx, uint8_t _ucChannel,
  14. uint32_t _ulFreq, uint32_t _ulDutyCycle);
  15. void bsp_SetTIMforInt(TIM_TypeDef* TIMx, uint32_t _ulFreq, uint8_t _PreemptionPriority, uint8_t _SubPriority);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif //TIM_PWM_H