/*--------------------------------------------------------------------------
Header file for PWM.
--------------------------------------------------------------------------*/

#ifndef __PWM_H__
#define __PWM_H__


//===============================
//PUBLIC SUBROUTINES
//===============================
void PWM_Init(void);
void PWM_Duty(unsigned int nPWMD0,unsigned int nPWMD1, unsigned int nPWMD2);
void PWM_EnableIE(void);

#define d_PWM_ENABLE_0 (0x01 << 0x00)
#define d_PWM_ENABLE_1 (0x01 << 0x01)
#define d_PWM_ENABLE_2 (0x01 << 0x02)
#define d_PWM_ENABLE_3 (0x01 << 0x03)
#define d_PWM_ENABLE_4 (0x01 << 0x04)
#define d_PWM_ENABLE_5 (0x01 << 0x05)

#define d_PWM_MODE_Independent0    0x01
#define d_PWM_MODE_Complementary0  0x00 
#define d_PWM_MODE_Independent1    0x02
#define d_PWM_MODE_Complementary1  0x00 
#define d_PWM_MODE_Independent2    0x04
#define d_PWM_MODE_Complementary2  0x00 


#endif
