pwm.h 262 B

12345678910111213141516171819
  1. #ifndef _PWM_H
  2. #define _PWM_H
  3. typedef enum {
  4. PWM_ID0 = 0,
  5. PWM_ID1,
  6. PWM_ID2,
  7. PWM_ID3,
  8. PWM_ID4,
  9. PWM_ID5,
  10. PWM_ID6,
  11. PWM_ID7,
  12. } PWM_ID;
  13. int pwm_config(int id, uint32_t duty_ns, uint32_t period_ns);
  14. void pwm_enable(int id);
  15. void pwm_disable(int id);
  16. #endif