?? io.lst
字號:
C166 COMPILER V6.04, IO 08/30/2007 14:28:44 PAGE 1
C166 COMPILER V6.04, COMPILATION OF MODULE IO
OBJECT MODULE PLACED IN IO.OBJ
COMPILER INVOKED BY: C:\Keil C166\C166\BIN\C166.EXE IO.C MODV2 BROWSE MODV2 DEBUG
stmt lvl source
1 //****************************************************************************
2 // @Module Parallel Ports
3 // @Filename IO.C
4 // @Project SWITCH.dav
5 //----------------------------------------------------------------------------
6 // @Controller Infineon XC164CS-16F
7 //
8 // @Compiler Keil
9 //
10 // @Codegenerator 2.8
11 //
12 // @Description This file contains functions that use the IO module.
13 //
14 //----------------------------------------------------------------------------
15 // @Date 2007-5-25 16:09:04
16 //
17 //****************************************************************************
18
19 // USER CODE BEGIN (IO_General,1)
20
21 // USER CODE END
22
23
24
25 //****************************************************************************
26 // @Project Includes
27 //****************************************************************************
28
29 #include "MAIN.H"
30
31 // USER CODE BEGIN (IO_General,2)
32
33 // USER CODE END
34
35
36 //****************************************************************************
37 // @Macros
38 //****************************************************************************
39
40 // USER CODE BEGIN (IO_General,3)
41
42 // USER CODE END
43
44
45 //****************************************************************************
46 // @Defines
47 //****************************************************************************
48
49 // USER CODE BEGIN (IO_General,4)
50
51 // USER CODE END
52
53
54 //****************************************************************************
55 // @Typedefs
C166 COMPILER V6.04, IO 08/30/2007 14:28:44 PAGE 2
56 //****************************************************************************
57
58 // USER CODE BEGIN (IO_General,5)
59
60 // USER CODE END
61
62
63 //****************************************************************************
64 // @Imported Global Variables
65 //****************************************************************************
66
67 // USER CODE BEGIN (IO_General,6)
68
69 // USER CODE END
70
71
72 //****************************************************************************
73 // @Global Variables
74 //****************************************************************************
75
76 // USER CODE BEGIN (IO_General,7)
77
78 // USER CODE END
79
80
81 //****************************************************************************
82 // @External Prototypes
83 //****************************************************************************
84
85 // USER CODE BEGIN (IO_General,8)
86
87 // USER CODE END
88
89
90 //****************************************************************************
91 // @Prototypes Of Local Functions
92 //****************************************************************************
93
94 // USER CODE BEGIN (IO_General,9)
95
96 // USER CODE END
97
98
99 //****************************************************************************
100 // @Function void IO_vInit(void)
101 //
102 //----------------------------------------------------------------------------
103 // @Description This is the initialization function of the IO function
104 // library. It is assumed that the SFRs used by this library
105 // are in its reset state.
106 //
107 //----------------------------------------------------------------------------
108 // @Returnvalue None
109 //
110 //----------------------------------------------------------------------------
111 // @Parameters None
112 //
113 //----------------------------------------------------------------------------
114 // @Date 2007-5-25
115 //
116 //****************************************************************************
117
C166 COMPILER V6.04, IO 08/30/2007 14:28:44 PAGE 3
118 // USER CODE BEGIN (IO_Function,1)
119
120 // USER CODE END
121
122 void IO_vInit(void)
123 {
124 1 // USER CODE BEGIN (IO_Function,2)
125 1
126 1 // USER CODE END
127 1
128 1 /// -----------------------------------------------------------------------
129 1 /// General Port Settings:
130 1 /// -----------------------------------------------------------------------
131 1 PICON = 0x0000; // load input configuration register
132 1
133 1 /// -----------------------------------------------------------------------
134 1 /// Configuration of Port P0H:
135 1 /// -----------------------------------------------------------------------
136 1 /// - no pin of port P0H is used
137 1
138 1 P0H = 0x0000; // load data register
139 1 POCON0H = 0x0000; // load output control register
140 1 DP0H = 0x0000; // load direction register
141 1
142 1 /// -----------------------------------------------------------------------
143 1 /// Configuration of Port P0L:
144 1 /// -----------------------------------------------------------------------
145 1 /// - no pin of port P0L is used
146 1
147 1 P0L = 0x0000; // load data register
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -