📄 ui_main.lst
字号:
C51 COMPILER V7.50 UI_MAIN 08/18/2008 14:21:05 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE UI_MAIN
OBJECT MODULE PLACED IN ..\output\output_bin\output_record\ui_main.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\code\common\ui_main.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDIR(..\..\..\b
-sp\include;..\..\code\ap_record\src\include;..\..\code\global;..\..\code\include) DEFINE(CONFIG_ASIC,dynamic_load) DEBUG
- OBJECTEXTEND PRINT(..\output\output_bin\output_record\ui_main.lst) OBJECT(..\output\output_bin\output_record\ui_main.ob
-j)
line level source
1 /****************************
2 * ui_main.c
3 ****************************/
4
5 #include <string.h>
6 #include "api.h"
7 #include "lcd.h"
8 #include "common.h"
9 #include "ap_common.h"
10 #include "display.h"
11 #include "res.h"
12 #include "res_show.h"
13 #include "ui_main.h"
14 #include "batt.h"
15 #include "prefer.h"
16
17
18 INT16U charge_count=0;
19
20
21 void ui_show_data(UINT8 *buf, UINT8 x, UINT8 y)
22 {
23 1 while(1)
24 1 {
25 2 if(*buf!=0)bResShowPic(PRGNUM0+*buf-0x30, x, y);
26 2 else
27 2 break;
28 2 buf++;
29 2 x+=11;
30 2 }
31 1 }
32
33 void ui_show_data1(char *buf, UINT8 x, UINT8 y)
34 {
35 1 while(1)
36 1 {
37 2 if(*buf!=0)bResShowPic(TIMENUM0+*buf-0x30, x, y);
38 2 else
39 2 break;
40 2 buf++;
41 2 x+=5;
42 2 }
43 1 }
44
45 void ui_show_data2(char *buf, UINT8 x, UINT8 y)
46 {
47 1 while(1)
48 1 {
49 2 if(*buf!=0)bResShowPic(MNUM0+*buf-0x30, x, y);
50 2 else
51 2 break;
52 2 buf++;
C51 COMPILER V7.50 UI_MAIN 08/18/2008 14:21:05 PAGE 2
53 2 x+=5;
54 2 }
55 1 }
56
57 void ui_show_a(UINT16 id)
58 {
59 1 bResShowPic(id, POSITION_A, POSITIONY_A);
60 1 }
61
62 void ui_show_b(UINT16 id)
63 {
64 1 bResShowPic(id, POSITION_B, POSITIONY_B);
65 1 }
66
67
68 void ui_show_c(UINT16 id)
69 {
70 1 bResShowPic(id, POSITION_C, POSITIONY_C);
71 1 }
72
73 #ifndef MUSICAP
74 void ui_show_cd(UINT8 *string, UINT8 part)//???
75 {
76 1 if(part == 0)
77 1 {
78 2 ui_show_data(string,POSITION_C+5, POSITIONY_D);
79 2 }
80 1 else
81 1 {
82 2 ui_show_data(string,POSITION_C+5, POSITIONY_D2);
83 2 }
84 1 }
85 #endif
86
87 void ui_show_d(UINT8 *string, UINT8 part)
88 {
89 1 if(part == 0)
90 1 {
91 2 ui_show_data(string,40, 114);
92 2 }
93 1 else
94 1 {
95 2 ui_show_data2(string,8, 124);
96 2 }
97 1 }
98
99 #ifndef MUSICAP
100 //id =0, clear the icon
101 void ui_show_e(UINT16 id)
102 {
103 1 bResShowPic(id, POSITION_E, POSITIONY_E);
104 1 }
105 #endif
106
107 void ui_show_h(UINT8 *string,UINT8 mode)
108 {
109 1 if(mode)
110 1 ui_show_data(string,POSITION_H, POSITIONY_H);
111 1 else
112 1 ui_show_data(string,POSITION_H1, POSITIONY_H1);
113 1 }
114
C51 COMPILER V7.50 UI_MAIN 08/18/2008 14:21:05 PAGE 3
115 void ui_show_vol()
116 {
117 1 char temp[3];
118 1 my_sprintf(temp, "%02d", (UINT16)tUserPreference.u8Volume);
119 1 bResShowPic(MVOL,66,144);
120 1 bResShowPic(TVNUM0+temp[0]-0x30,86,147);
121 1 bResShowPic(TVNUM0+temp[1]-0x30,86+5,147);
122 1 }
123
124 void ui_show_j(UINT16 id)
125 {
126 1 bResShowPic(id, POSITION_J, POSITIONY_J);
127 1 }
128
129 #ifndef FMAP
130 void ui_show_spk(UINT8 mode)
131 {
132 1 // if(mode) bResShowPic(SPEAKERY, 110, POSITIONY_A);
133 1 // else bResShowPic(SPEAKERN, 110, POSITIONY_A);
134 1 }
*** WARNING C280 IN LINE 130 OF ..\..\CODE\COMMON\UI_MAIN.C: 'mode': unreferenced local variable
135 #else
void ui_show_spk(UINT8 mode)
{
// if(mode) bResShowPic(SPEAKERY, 110, 112);
// else bResShowPic(SPEAKERN, 110, 112);
}
#endif
142
143
144 void OpenClose_spk(UINT8 mode)
145 {
146 1
147 1 }
*** WARNING C280 IN LINE 144 OF ..\..\CODE\COMMON\UI_MAIN.C: 'mode': unreferenced local variable
148
149 void ui_show_batt()
150 {
151 1 INT8U u8b = api_u8GetBatteryRemain();
152 1 if(u8b-19<=4)
153 1 bResShowPic(BATTERY1+(u8b-19)*2,POS_BATTERY, POSY_BATTERY);
154 1 else
155 1 bResShowPic(BATTERY1+8,POS_BATTERY, POSY_BATTERY);
156 1 }
157
158 void ui_show_charge()
159 {
160 1
161 1 INT8U u8b = api_u8GetBatteryRemain();
162 1
163 1 {
164 2 if(charge_count<7)
165 2 {
166 3 charge_count++;
167 3 }
168 2 else
169 2 {
170 3 charge_count = 0;
171 3 }
172 2 bResShowPic(BATTERY1+charge_count,POS_BATTERY,POSY_BATTERY);
173 2 }
174 1 }
C51 COMPILER V7.50 UI_MAIN 08/18/2008 14:21:05 PAGE 4
175
176 void ui_show_charge1()
177 {
178 1
179 1 INT8U u8b = api_u8GetBatteryRemain();
180 1
181 1 {
182 2 if(charge_count<7)
183 2 {
184 3 charge_count++;
185 3 }
186 2 else
187 2 {
188 3 charge_count = 0;
189 3 }
190 2 bResShowPic(BATTERY1+charge_count, POS_BATTERY,POSY_BATTERY);
191 2 }
192 1 }
193
194 void ui_show_lock(UINT8 islock)
195 {
196 1 // if(islock == 1)
197 1 // {
198 1 // bResShowPic(LOCK,11,9);
199 1 // }
200 1 }
*** WARNING C280 IN LINE 194 OF ..\..\CODE\COMMON\UI_MAIN.C: 'islock': unreferenced local variable
201
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 565 ----
CONSTANT SIZE = 5 ----
XDATA SIZE = 2 32
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 3 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -