#define PWM1     1
#define PWM2     2
#define PWM3     3

#define CH0_P23   0
#define CH0_P12   1
#define CH1_P22   2
#define CH1_P14   3
#define CH1_P11   4
                   
#define CH0_P21   0
#define CH0_P10   1
#define CH0_P05   2
#define CH1_P30   3
#define CH1_P31   4
#define CH1_P00   5
#define CH1_P04   6
                   
#define CH0_P32   0
#define CH0_P01   1
#define CH0_P17   2
#define CH1_P34   3
#define CH1_P15   4
#define CH1_P03   5



void PWM123_ClockSource(unsigned char u8PWMNum, unsigned char u8PWMCLKDIV);
void PWM123_ConfigOutputChannel(unsigned char u8PWMNum,
                                unsigned char u8PWMoutputSel,
                                unsigned int u16PWMFrequency,
                                unsigned int u16PWMDutyCycle);

void PWM_ALL_RUN();
void PWM1_RUN();
void PWM2_RUN();
void PWM3_RUN();
