Initial import
[avr_bc100.git] / BaseTinyFirmware / IAR / PWM.h
1 /* This file has been prepared for Doxygen automatic documentation generation.*/\r
2 /*! \file *********************************************************************\r
3  *\r
4  * \brief\r
5  *      Header file for PWM.c\r
6  *\r
7  *      Contains definitions to control PWM behaviour.\r
8  *\r
9  * \par Application note:\r
10  *      AVR458: Charging Li-Ion Batteries with BC100\r
11  *\r
12  * \par Documentation\r
13  *      For comprehensive code documentation, supported compilers, compiler \r
14  *      settings and supported devices see readme.html\r
15  *\r
16  * \author\r
17  *      Atmel Corporation: http://www.atmel.com \n\r
18  *      Support email: avr@atmel.com\r
19  *\r
20  * \r
21  * $Name$\r
22  * $Revision: 2261 $\r
23  * $RCSfile$\r
24  * $URL: http://svn.norway.atmel.com/AppsAVR8/avr458_Charging_Li-Ion_Batteries_with_BC100/tag/20070904_release_1.0/code/IAR/PWM.h $\r
25  * $Date: 2007-08-10 09:28:35 +0200 (fr, 10 aug 2007) $\n\r
26  ******************************************************************************/\r
27 \r
28 #ifndef PWM_H\r
29 #define PWM_H\r
30 \r
31 //******************************************************************************\r
32 // Constants for PWM\r
33 //******************************************************************************\r
34 //! Needed for JumperCheck() to succeed. ADC is saturated otherwise!\r
35 #define PWM_OFFSET     12\r
36 \r
37 //! PWM duty cycle limit (must be less than 256).\r
38 #define PWM_MAX        255\r
39 \r
40 \r
41 //******************************************************************************\r
42 // Function prototypes\r
43 //******************************************************************************\r
44 void PWM_Start(void);\r
45 void PWM_Stop(void);\r
46 unsigned char PWM_IncrementDutyCycle(void);\r
47 unsigned char PWM_DecrementDutyCycle(void);\r
48 \r
49 #endif // PWM_H\r
50 \r