2015-01-10 11:42:36 +01:00
|
|
|
#ifndef __PWM_H__
|
|
|
|
#define __PWM_H__
|
|
|
|
|
|
|
|
#include "event.h"
|
|
|
|
|
|
|
|
/* *********************************************************************** */
|
|
|
|
|
2017-11-27 21:30:20 +01:00
|
|
|
#define EVENT_NUM_PWM_CH0 0x00
|
|
|
|
#define EVENT_NUM_PWM_CH1 0x01
|
|
|
|
|
|
|
|
#define EVENT_VALUE_PWM_KEEP 0x00
|
|
|
|
#define EVENT_VALUE_PWM_INC 0x01
|
|
|
|
#define EVENT_VALUE_PWM_DEC 0x02
|
|
|
|
#define EVENT_VALUE_PWM_FADE_MIN 0x03
|
|
|
|
#define EVENT_VALUE_PWM_FADE_MAX 0x04
|
|
|
|
#define EVENT_VALUE_PWM_TOGGLE 0x05
|
2015-01-10 11:42:36 +01:00
|
|
|
|
|
|
|
/* *********************************************************************** */
|
|
|
|
|
|
|
|
void pwm_init (void);
|
|
|
|
void pwm_event_handler (struct event_entry *event);
|
|
|
|
|
|
|
|
/* *********************************************************************** */
|
|
|
|
|
|
|
|
#endif /* __PWM_H__ */
|