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.
 
 
 

26 lines
733 B

  1. #ifndef __PWM_H__
  2. #define __PWM_H__
  3. #include "event.h"
  4. /* *********************************************************************** */
  5. #define EVENT_NUM_PWM_CH0 0x00
  6. #define EVENT_NUM_PWM_CH1 0x01
  7. #define EVENT_VALUE_PWM_KEEP 0x00
  8. #define EVENT_VALUE_PWM_INC 0x01
  9. #define EVENT_VALUE_PWM_DEC 0x02
  10. #define EVENT_VALUE_PWM_FADE_MIN 0x03
  11. #define EVENT_VALUE_PWM_FADE_MAX 0x04
  12. #define EVENT_VALUE_PWM_TOGGLE 0x05
  13. /* *********************************************************************** */
  14. void pwm_init (void);
  15. void pwm_event_handler (struct event_entry *event);
  16. /* *********************************************************************** */
  17. #endif /* __PWM_H__ */