pwm_out.h 279 B

123456789101112131415161718192021222324
  1. #ifndef __PWM_OUT_H
  2. #define __PWM_OUT_H
  3. typedef enum
  4. {
  5. PWM_OUT_CH_1 = 1,
  6. PWM_OUT_CH_2,
  7. PWM_OUT_CH_MAX,
  8. } pwm_out_ch;
  9. //
  10. void tim_pwm_out_init(void);
  11. //
  12. void tim_pwm_out_set_pulse(pwm_out_ch channel, uint16_t pulse);
  13. //
  14. void tim_pwm_pulse_idle(void);
  15. #endif