📄 kernel.lst
字号:
C51 COMPILER V7.06 KERNEL 07/02/2003 09:29:11 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE KERNEL
OBJECT MODULE PLACED IN kernel.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE kernel.c OPTIMIZE(2,SPEED) BROWSE DEBUG OBJECTEXTEND
stmt level source
1 //***********************************************************************
2 // *
3 // P H I L I P S P R O P R I E T A R Y *
4 // *
5 // COPYRIGHT (c) 1999 BY PHILIPS SINGAPORE (APIC). *
6 // -- ALL RIGHTS RESERVED -- *
7 // *
8 // File Name : Kernel.c *
9 // Author : Albert Goh *
10 // Created : 3 March 2000 *
11 // *
12 //***********************************************************************
13 //***********************************************************************
14 // *
15 // Kernel.c is the control centre for this evaluation firmware. It will *
16 // control where should the firmware branch through via the selection *
17 // of the UART port of the 8051. if not via the UART, it will be from *
18 // the selection of the code defintion *
19 // *
20 //***********************************************************************
21 //***********************************************************************
22 // *
23 // Module History *
24 // ************** *
25 // *
26 // Date Version Author Changes *
27 // ==== ======= ====== ======= *
28 // 030300 0.1 Albert Created *
29 // *
30 // *
31 //***********************************************************************
32 //***********************************************************************
33 //* *
34 //* Include Files Definition *
35 //* *
36 //***********************************************************************
37
38 #include "standard.h"
39 #include "Kernel.h"
40 #include "D14.h"
41 #include "zlg7290.h"
42 #include "VIIC_C51.h"
43
44 #define uchar unsigned char
45
46 //***********************************************************************
47 //* *
48 //* External routine Definition *
49 //* *
50 //***********************************************************************
51
52 extern Init_Main();
53 extern USB_Debug_Mode();
54 extern DMA_Debug_Mode();
55 extern USB_INT_FLAG USB_Int_Flag;
C51 COMPILER V7.06 KERNEL 07/02/2003 09:29:11 PAGE 2
56 extern DMA_INT_FLAG DMA_Int_Flag;
57 extern USB_DEVICE USB_Device;
58 extern volatile D14_CNTRL_REG xdata D14_Cntrl_Reg;
59 extern void Check_Busy(void);
60 extern void Init_D14(void);
61 extern void Init_Endpoint(void);
62 extern void Init_Device(void);
63 extern void Get_PIDVID(void);
64 extern unsigned int read_endpoint(unsigned char endp,unsigned int len,unsigned char *buf);
65 extern unsigned int write_endpoint(unsigned char endp,unsigned int len,unsigned char *buf);
66 extern UC VID[2],PID[2];
67 extern UC idata Endpt_FIFO[MAX_BUF];
68 extern Set_USB(void);
69 extern TIMER Timer;
70 extern UC timecouter;
71 //***********************************************************************
72 //* *
73 //* Prototype routine Definition *
74 //* *
75 //***********************************************************************
76
77 void Start_mSEC_Timer(Data);
78 void Start_SEC_Timer(Data);
79 uchar DelayNS(uchar no);
80
81 //***********************************************************************
82 //* *
83 //* Variable Definition *
84 //* *
85 //***********************************************************************
86
87 UI Temp;
88 KERNEL Kernel_Flag;
89 uchar code td[5]={0x00,0x12,0x48,0x30,0x12}; //8563初始化值
90 uchar code disp_buf[8]={0,0,0,0,0,0,0,0}; //LED初始化值
91 //UC key=0xff;
92 //***********************************************************************
93 //* *
94 //* Routine Definition *
95 //* *
96 //***********************************************************************
97
98 //***********************************************************************
99 //* *
100 //* Routine : Main *
101 //* Input : None *
102 //* Output : None *
103 //* Function : main loop *
104 //* *
105 //***********************************************************************
106
107 void Main(void)
108 {
109 1
110 1 //ISendStr(0xa2,0,td,0x5);
111 1 //ZLG7289_Rest(); // 复位ZLG7289
112 1 DelayNS(5);
113 1 //Initialization routine
114 1 //初始化子程序
115 1 ZLG7290_SendBuf(disp_buf,8);
116 1 Init_Main();
117 1
C51 COMPILER V7.06 KERNEL 07/02/2003 09:29:11 PAGE 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -