Initial import
[avr_bc100.git] / BaseTinyFirmware / IAR / Debug / List / menu.lst
1 ###############################################################################\r
2 #                                                                             #\r
3 # IAR Atmel AVR C/C++ Compiler V4.30F/W32               12/Mar/2008  23:01:39 #\r
4 # Copyright 1996-2007 IAR Systems. All rights reserved.                       #\r
5 #                                                                             #\r
6 #    Source file  =  C:\home\kevin\pub\src\bc100_cal\IAR\menu.c               #\r
7 #    Command line =  C:\home\kevin\pub\src\bc100_cal\IAR\menu.c               #\r
8 #                    --cpu=tiny861 -ms -o C:\home\kevin\pub\src\bc100_cal\IAR #\r
9 #                    \Debug\Obj\ -lC C:\home\kevin\pub\src\bc100_cal\IAR\Debu #\r
10 #                    g\List\ -lB C:\home\kevin\pub\src\bc100_cal\IAR\Debug\Li #\r
11 #                    st\ --initializers_in_flash -z2 --no_cse --no_inline     #\r
12 #                    --no_code_motion --no_cross_call --no_clustering         #\r
13 #                    --no_tbaa --debug -DENABLE_BIT_DEFINITIONS -e            #\r
14 #                    --require_prototypes -I "C:\Program Files\IAR            #\r
15 #                    Systems\Embedded Workbench 4.0\avr\INC\" -I "C:\Program  #\r
16 #                    Files\IAR Systems\Embedded Workbench 4.0\avr\INC\CLIB\"  #\r
17 #                    --eeprom_size 512                                        #\r
18 #    List file    =  C:\home\kevin\pub\src\bc100_cal\IAR\Debug\List\menu.lst  #\r
19 #    Object file  =  C:\home\kevin\pub\src\bc100_cal\IAR\Debug\Obj\menu.r90   #\r
20 #                                                                             #\r
21 #                                                                             #\r
22 ###############################################################################\r
23 \r
24 C:\home\kevin\pub\src\bc100_cal\IAR\menu.c\r
25       1          /* This file has been prepared for Doxygen automatic documentation generation.*/\r
26       2          /*! \file *********************************************************************\r
27       3           *\r
28       4           * \brief\r
29       5           *      State menu definition\r
30       6           * \r
31       7           *      Contains the definition of the state menu.\n\r
32       8           *      The state menu contains all states and adresses to associated functions.\r
33       9           *\r
34      10           * \par Application note:\r
35      11           *      AVR458: Charging Li-Ion Batteries with BC100 \n\r
36      12           *      AVR463: Charging NiMH Batteries with BC100\r
37      13           *\r
38      14           * \par Documentation:\r
39      15           *      For comprehensive code documentation, supported compilers, compiler\r
40      16           *      settings and supported devices see readme.html\r
41      17           *\r
42      18           * \author\r
43      19           *      Atmel Corporation: http://www.atmel.com \n\r
44      20           *      Support email: avr@atmel.com\r
45      21           *\r
46      22           *\r
47      23           * $Name$\r
48      24           * $Revision: 2299 $\r
49      25           * $RCSfile$\r
50      26           * $URL: http://svn.norway.atmel.com/AppsAVR8/avr458_Charging_Li-Ion_Batteries_with_BC100/tag/20070904_release_1.0/code/IAR/menu.c $\r
51      27           * $Date: 2007-08-23 12:55:51 +0200 (to, 23 aug 2007) $\n\r
52      28           ******************************************************************************/\r
53      29          \r
54      30          #include <stdlib.h>\r
55      31          \r
56      32          #include "statefunc.h"\r
57      33          #include "charge.h"\r
58      34          #include "main.h"\r
59      35          #include "menu.h"\r
60      36          \r
61      37          \r
62      38          //******************************************************************************\r
63      39          // State menu (relies on the proper battery type to be defined in main.h!)\r
64      40          //******************************************************************************\r
65      41          #ifdef NIMH\r
66      42          /*! \brief The state menu\r
67      43           *\r
68      44           * Contains all the defined states and addresses to their associated functions.\r
69      45           */\r
70 \r
71    \                                 In  segment NEAR_F, align 1, keep-with-next\r
72      46          __flash const MENU_STATE_t menu_state[] = {\r
73    \                     menu_state:\r
74    \   00000000   0A                 DB 10\r
75    \   00000001   ....               DW Initialize/2\r
76    \   00000003   14                 DB 20\r
77    \   00000004   ....               DW BatteryControl/2\r
78    \   00000006   1E                 DB 30\r
79    \   00000007   ....               DW Charge/2\r
80    \   00000009   28                 DB 40\r
81    \   0000000A   ....               DW `Sleep`/2\r
82    \   0000000C   32                 DB 50\r
83    \   0000000D   ....               DW Charge/2\r
84    \   0000000F   3C                 DB 60\r
85    \   00000010   ....               DW Charge/2\r
86    \   00000012   46                 DB 70\r
87    \   00000013   ....               DW Charge/2\r
88    \   00000015   50                 DB 80\r
89    \   00000016   ....               DW Discharge/2\r
90    \   00000018   5A                 DB 90\r
91    \   00000019   ....               DW Error/2\r
92    \   0000001B   00                 DB 0\r
93    \   0000001C   0000               DW 0H\r
94      47          //  State                                      State function\r
95      48            { ST_INIT,            Initialize},\r
96      49            { ST_BATCON,          BatteryControl},\r
97      50            { ST_PREQUAL,         Charge},\r
98      51            { ST_SLEEP,           Sleep},\r
99      52            { ST_FASTCHARGE,      Charge},\r
100      53            { ST_LOWRATECHARGE,   Charge},\r
101      54            { ST_ENDCHARGE,       Charge},       \r
102      55            { ST_DISCHARGE,       Discharge},\r
103      56            { ST_ERROR,           Error},\r
104      57            { 0,                  NULL},\r
105      58          };\r
106      59          #endif // NIMH\r
107      60          \r
108      61          #ifdef LIION\r
109      62          /*! \brief The state menu\r
110      63           *\r
111      64           * Contains all the defined states and addresses to their associated functions.\r
112      65           */\r
113      66          __flash const MENU_STATE_t menu_state[] = {\r
114      67          //  State                                      State function\r
115      68            { ST_INIT,            Initialize},\r
116      69            { ST_BATCON,          BatteryControl},\r
117      70            { ST_PREQUAL,         Charge},\r
118      71            { ST_SLEEP,           Sleep},\r
119      72            { ST_CCURRENT,        Charge},\r
120      73            { ST_CVOLTAGE,        Charge},\r
121      74            { ST_ENDCHARGE,       Charge},       \r
122      75            { ST_DISCHARGE,       Discharge},\r
123      76            { ST_ERROR,           Error},\r
124      77            { 0,                  NULL},\r
125      78          };\r
126      79          #endif // LIION\r
127 \r
128 \r
129    Segment part sizes:\r
130 \r
131      Function/Label Bytes\r
132      -------------- -----\r
133      menu_state       30\r
134 \r
135  \r
136  30 bytes in segment NEAR_F\r
137  \r
138  30 bytes of CODE memory\r
139 \r
140 Errors: none\r
141 Warnings: none\r