Initial import
[avr_bc100.git] / BaseTinyFirmware / GCC / main.h
1 /* This file has been prepared for Doxygen automatic documentation generation.*/\r
2 /*! \file *********************************************************************\r
3  *\r
4  * \brief\r
5  *      Headerfile for main.c\r
6  *\r
7  *      Contains some basic definitions (FALSE, TRUE, ZERO) as well as\r
8  *      what battery type (NiMh or Li-Ion) the charger is for.\r
9  * \r
10  * \par Application note:\r
11  *      AVR458: Charging Li-Ion Batteries with BC100\r
12  *\r
13  * \par Documentation:\r
14  *      For comprehensive code documentation, supported compilers, compiler\r
15  *      settings and supported devices see readme.html\r
16  *\r
17  * \author\r
18  *      Atmel Corporation: http://www.atmel.com \n\r
19  *      Support email: avr@atmel.com\r
20  *\r
21  *\r
22  * $Name$\r
23  * $Revision: 2302 $\r
24  * $RCSfile$\r
25  * $URL: http://svn.norway.atmel.com/AppsAVR8/avr458_Charging_Li-Ion_Batteries_with_BC100/tag/20070904_release_1.0/code/IAR/main.h $\r
26  * $Date: 2007-08-23 14:57:36 +0200 (to, 23 aug 2007) $\n\r
27  ******************************************************************************/\r
28 \r
29 #ifndef _MAIN_H\r
30 #define _MAIN_H\r
31 \r
32 \r
33 //******************************************************************************\r
34 // Firmware revision\r
35 //******************************************************************************\r
36 #define SWHIGH  1\r
37 #define SWLOW   0\r
38 \r
39 \r
40 //******************************************************************************\r
41 // Battery type (add appropriate *charge.c to project!)\r
42 //******************************************************************************\r
43 // One or the other needs to be defined in the AVR Studio Project file\r
44 //#define NIMH  //!< Use specs and state menu for NIMH.\r
45 //#define LIION  //!< Use specs and state menu for LIION.\r
46 #if !defined(NIMH) && !defined(LIION)\r
47 #error Need to define NIMH or LIION to select charging scheme\r
48 #endif\r
49 \r
50 \r
51 //******************************************************************************\r
52 // Basic definitions\r
53 //******************************************************************************\r
54 #define FALSE   0  //!< We have to define this ourselves.\r
55 #define TRUE    (!FALSE)  //!< We have to define this ourselves.\r
56 #define ZERO    0  //!< We have to define this ourselves.\r
57 \r
58 \r
59 //******************************************************************************\r
60 // Global variables\r
61 //******************************************************************************\r
62 extern unsigned char CurrentState;\r
63 \r
64 \r
65 #endif //_MAIN_H\r