📄 main.lst
字号:
C51 COMPILER V7.07 MAIN 08/17/2004 16:30:51 PAGE 1
C51 COMPILER V7.07, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main.c BROWSE INCDIR(C:\keil7.07\c51\INC\Atmel\) DEBUG OBJECTEXTEND
stmt level source
1 #include "AT89X51.H"
*** WARNING C318 IN LINE 1 OF main.c: can't open file 'AT89X51.H'
2 #include "lcd.h"
3 #include "stdio.h"
4 #include "keyscan.h"
*** WARNING C318 IN LINE 3 OF keyscan.h: can't open file 'AT89X51.H'
5 #include "menu.h"
6 #include "DVDCTRL.h"
7
8 unsigned char CurMode,CurSignal;
9
10
11 void init_func()
12 {
13 1 unsigned int code pstr[]={8,7,6,5};
14 1 CurSignal=0;
15 1
16 1 LCDClear();
17 1 LCDDrawText10(10,0,4,pstr,DrawType_Normal);
18 1 delay(11000);
19 1
20 1 SetCtrlMode(5,1);
21 1 SetCtrlSignal(0,0);
22 1
23 1 CHG_LED=1;
*** ERROR C202 IN LINE 23 OF MAIN.C: 'P2_7': undefined identifier
24 1
25 1 }
26
27 void DisState()
28 {
29 1 unsigned int code pstr[]={8,7,6,5};
30 1 LCDClear();
31 1
32 1 LCDDrawText10(10,0,4,pstr,DrawType_Normal);
33 1 LCDDrawText8(menu1[CurSignal/2],50,14 ,DrawType_Normal);
34 1 LCDDrawText8(menu2[CurMode],50,23 ,DrawType_Normal);
35 1 LCDDrawRect(90,4,120,10,1);
36 1 LCDDrawRect(91,5,97,9,0);
37 1 LCDDrawRect(101,6,105,9,0);
38 1
39 1 }
40
41 void main()
42 {
43 1 unsigned char KeyVal;
44 1 LCDInit();
45 1 // unsigned long count=0;
46 1 init_func();
47 1
48 1 DisState();
49 1 while(1)
50 1 {
51 2 // count++;
52 2
C51 COMPILER V7.07 MAIN 08/17/2004 16:30:51 PAGE 2
53 2 KeyVal=KeyUpScan();
54 2 if(KeyVal)
55 2 {
56 3 Proc();
57 3 DisState();
58 3 }
59 2 else
60 2 {
61 3 }
62 2 }
63 1 }
C51 COMPILATION COMPLETE. 2 WARNING(S), 1 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -