📄 pic_main.lst
字号:
C51 COMPILER V7.50 PIC_MAIN 09/05/2008 15:13:13 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE PIC_MAIN
OBJECT MODULE PLACED IN ..\output\output_bin\output_picture\pic_main.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\code\ap_picture\src\pic_main.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDIR(.
-.\..\..\bsp\include;..\..\code\ap_picture\src\include;..\..\code\global;..\..\code\include) DEFINE(CONFIG_ASIC,dynamic_l
-oad) DEBUG OBJECTEXTEND PRINT(..\output\output_bin\output_picture\pic_main.lst) OBJECT(..\output\output_bin\output_pictu
-re\pic_main.obj)
line level source
1 /******************
2 * mp3_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 "pic_utile.h"
12 //#include "pic_display.h"
13 #include "pic_sub_menu.h"
14 #include "prefer.h"
15 #include "ui_main.h"
16 #include "ui_message.h"
17 #include "res.h"
18
19 BOOLEAN pic_init;
20
21 BOOLEAN play_statu=0;
22
23 void screen_jpeg(UINT8 key);
24
25 void screen_jpeg_init(void)
26 {
27 1 /* Stop any playing process */
28 1
29 1 if(!pic_init)
30 1 {
31 2 screen_jpeg(KEY_PLAY);
32 2 return;
33 2 }
34 1 else
35 1 {
36 2 play_statu = 0;
37 2 api_bStop();
38 2 /* Change to ROOT dir */
39 2 change_dir(0);
40 2 scan_dir_file(SEARCH_MODE_CURRDIR, "JPG", 1);
41 2 if(totfile==0)
42 2 {
43 3
44 3 ui_show_message(MFILEOUT);
45 3
46 3 #ifdef dynamic_load
47 3 api_vLoad(Code_USER1,1);
48 3 #else
Print("Load Function\n");
#endif
51 3 }
52 2 else
C51 COMPILER V7.50 PIC_MAIN 09/05/2008 15:13:13 PAGE 2
53 2 {
54 3 curr_finfo.u16Order = 0;
55 3 screen_map(SCREEN_FILEBROWSER);
56 3 pic_init = 0;
57 3 }
58 2 }
59 1 }
60
61 void screen_jpeg(UINT8 key)
62 {
63 1 BOOLEAN clr_flag;
64 1 INT8 dir;
65 1
66 1 switch(key) {
67 2 case KEY_MENU:
68 2 //api_vLcdPinSelect();
69 2 //write2c(ENTRY_MODE_SET,0x00); // 0xE
70 2 //api_vLcdPinRecover();
71 2 lcd_set_disply_mode(0x00,0x22);
72 2 api_bStop();
73 2 select = curr_finfo.u16Order-1;// + totdir - 1;
74 2 pic_sub_menu();
75 2 return;
76 2 case KEY_PLAY: //if we start play please use it.
77 2 //if(play_statu == 1)
78 2 //{
79 2 // select = curr_music.u16Order + totdir - 1;
80 2 // play_statu = 0;
81 2 // screen_map(SCREEN_FILEBROWSER);
82 2 // return;
83 2 //}
84 2 //else
85 2 dir = 0;
86 2 break;
87 2 case KEY_NEXT:
88 2 dir = 1;
89 2 break;
90 2 case KEY_PREV:
91 2 dir = -1;
92 2 break;
93 2 default:
94 2 return;
95 2 }
96 1
97 1 if(!api_bStop())
98 1 return;
99 1
100 1 if(dir == 0) {
101 2 lcd_clear();
102 2 lcd_set_disply_mode(0x02,0x27);
103 2 lcd_set_rw_area(0, -2, 128, 160);
104 2 }
105 1
106 1
107 1 if(dir == 0)
108 1 {
109 2 api_bSelectFile(curr_finfo.u16Order,SEEK_SET);
110 2 //api_bGetSelectFileInfo(&curr_finfo);
111 2 api_bSelectFileOpen();
112 2 }
113 1 else
114 1 {
C51 COMPILER V7.50 PIC_MAIN 09/05/2008 15:13:13 PAGE 3
115 2 if(!find_good_media(dir, SELECT_CUR))
116 2 return;
117 2 }
118 1
119 1 //api_vLcdPinSelect();
120 1 //write2c(ENTRY_MODE_SET,0x00); // 0xE
121 1 //api_vLcdPinRecover();
122 1 //lcd_set_disply_mode(0x00,0x22);
123 1 lcd_set_disply_mode(0x02,0x27);
124 1 lcd_set_rw_area(0, -2, 128, 160);
125 1
126 1 api_bPlay();
127 1 //api_vLcdPinSelect();
128 1 //write2c(ENTRY_MODE_SET,0x04); // 0xE
129 1 //api_vLcdPinRecover();
130 1 //lcd_set_disply_mode(0x00,0x22);
131 1
132 1 }
*** WARNING C280 IN LINE 63 OF ..\..\CODE\AP_PICTURE\SRC\PIC_MAIN.C: 'clr_flag': unreferenced local variable
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 225 ----
CONSTANT SIZE = 4 ----
XDATA SIZE = ---- 1
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = 2 1
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -