/******************************************************************************** * MAHE, 13.05.2002, 12H40 - now compiling as project of separated source files ********************************************************************************/ #ifndef _PWM_H #define _PWM_H #include "hardware.h" #include "error.h" /**************************************** * The board fabricated by Prof. Arlotto's * students needs inverted signals for ENABLE, * and IN2. By inverting IN2 the low level of * the PWM signal becomes the duty cycle ****************************************/ /* #define PWMCHAN0_INVERTED */ /* #define PWMCHAN1_INVERTED */ /****************************** * Prototypes ******************************/ void initPWM(void); void PWMChanEN(char channel, char state); void setDutyCycle(const unsigned char, const unsigned char, const unsigned char); #endif _PWM_H