?? ds1302.lst
字號:
C51 COMPILER V8.02 DS1302 07/16/2006 20:11:07 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE DS1302
OBJECT MODULE PLACED IN DS1302.OBJ
COMPILER INVOKED BY: D:\Keil\C51\BIN\C51.EXE DS1302.C BROWSE DEBUG OBJECTEXTEND
line level source
1 #include <at89x51.H>
2
3 #include "DS1302.H"
4
5 void Delay1ms(unsigned int count)
6 {
7 1 unsigned int i,j;
8 1 for(i=0;i<count;i++)
9 1 for(j=0;j<120;j++);
10 1 }
11
12 main()
13 {
14 1 SYSTEMTIME CurrentTime;
15 1 P2=0x00;
16 1 initial();
*** WARNING C206 IN LINE 16 OF DS1302.C: 'initial': missing function-prototype
17 1
18 1 Delay1ms(100);//等LCD啟動
19 1 lcd_init();
*** WARNING C206 IN LINE 19 OF DS1302.C: 'lcd_init': missing function-prototype
20 1 Initial_DS1302();
21 1
22 1
23 1 while(1)
24 1 {
25 2 DS1302_GetTime(&CurrentTime);
26 2 DateToStr(&CurrentTime);
27 2 TimeToStr(&CurrentTime);
28 2 str1[0]=CurrentTime.DateString[0];
*** ERROR C202 IN LINE 28 OF DS1302.C: 'str1': undefined identifier
29 2 str1[1]=CurrentTime.DateString[1];
*** ERROR C202 IN LINE 29 OF DS1302.C: 'str1': undefined identifier
30 2 str1[2]=CurrentTime.DateString[2];
*** ERROR C202 IN LINE 30 OF DS1302.C: 'str1': undefined identifier
31 2 str1[3]=CurrentTime.DateString[3];
*** ERROR C202 IN LINE 31 OF DS1302.C: 'str1': undefined identifier
32 2 str1[4]=CurrentTime.DateString[4];
*** ERROR C202 IN LINE 32 OF DS1302.C: 'str1': undefined identifier
33 2 str1[5]=CurrentTime.DateString[5];
*** ERROR C202 IN LINE 33 OF DS1302.C: 'str1': undefined identifier
34 2 str1[6]=CurrentTime.DateString[6];
*** ERROR C202 IN LINE 34 OF DS1302.C: 'str1': undefined identifier
35 2 str1[7]=CurrentTime.DateString[7];
*** ERROR C202 IN LINE 35 OF DS1302.C: 'str1': undefined identifier
36 2
37 2 str2[0]=CurrentTime.TimeString[0];
*** ERROR C202 IN LINE 37 OF DS1302.C: 'str2': undefined identifier
38 2 str2[1]=CurrentTime.TimeString[1];
*** ERROR C202 IN LINE 38 OF DS1302.C: 'str2': undefined identifier
39 2 str2[2]=CurrentTime.TimeString[2];
*** ERROR C202 IN LINE 39 OF DS1302.C: 'str2': undefined identifier
40 2 str2[3]=CurrentTime.TimeString[3];
*** ERROR C202 IN LINE 40 OF DS1302.C: 'str2': undefined identifier
41 2 str2[4]=CurrentTime.TimeString[4];
C51 COMPILER V8.02 DS1302 07/16/2006 20:11:07 PAGE 2
*** ERROR C202 IN LINE 41 OF DS1302.C: 'str2': undefined identifier
42 2 str2[5]=CurrentTime.TimeString[5];
*** ERROR C202 IN LINE 42 OF DS1302.C: 'str2': undefined identifier
43 2 str2[6]=CurrentTime.TimeString[6];
*** ERROR C202 IN LINE 43 OF DS1302.C: 'str2': undefined identifier
44 2 str2[7]=CurrentTime.TimeString[7];
*** ERROR C202 IN LINE 44 OF DS1302.C: 'str2': undefined identifier
45 2 display_a_string(0,str1); //0表示顯示在第一行
46 2 display_a_string(1,str2);//1表示顯示在第二行
47 2 Delay1ms(300);
48 2 }
49 1 }
C51 COMPILATION COMPLETE. 2 WARNING(S), 16 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -