pwm_out.h 315 B

1234567891011121314151617181920212223242526
  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_3,
  8. PWM_OUT_CH_4,
  9. PWM_OUT_CH_MAX,
  10. } pwm_out_ch;
  11. //
  12. void tim_pwm_out_init(void);
  13. //
  14. void tim_pwm_out_set_pulse(pwm_out_ch channel, uint16_t pulse);
  15. //
  16. void tim_pwm_pulse_idle(void);
  17. #endif