📄 artxdemo.lst
字号:
ARM COMPILER V2.51a, ArtxDemo 06/05/06 10:40:44 PAGE 1
ARM COMPILER V2.51a, COMPILATION OF MODULE ArtxDemo
OBJECT MODULE PLACED IN ArtxDemo.OBJ
COMPILER INVOKED BY: D:\Keil\ARM\BIN\CA.exe ArtxDemo.c THUMB BROWSE DEBUG TABS(4)
stmt level source
1 /*--------------------------------------------------------
2 ARTX水鸟LPC2131板实验笔记
3 HotPower@126.com 2006.1.15 03:18 于西安大雁塔村队部
4 ---------------------------------------------------------*/
5 //#include <ARTX.h> /* ARTX kernel functions & defines */
6 #include <RTL.h> /* RTX kernel functions & defines */
*** ERROR C318 IN LINE 6 OF ArtxDemo.c: can't open file 'RTL.h'
7 #include <LPC213x.H> // Philips Peripheral Registers
8 #include <LPC213xDEF.H> //ARM菜鸟HotPower创建定义文件(新版)
9
10 /*-----------------------------------------
11 LED数码字符定义
12 -------------------------------------------*/
13
14 //共阳极数码管(左移)
15
16 #define LedSegA 0x01
17 #define LedSegB 0x02
18 #define LedSegC 0x04
19 #define LedSegD 0x08
20 #define LedSegE 0x10
21 #define LedSegF 0x20
22 #define LedSegG 0x40
23 #define LedSegH 0x80
24
25 //
26
27 //共阳极数码管(右移)
28 /*
29 #define LedSegA 0x80
30 #define LedSegB 0x40
31 #define LedSegC 0x20
32 #define LedSegD 0x10
33 #define LedSegE 0x08
34 #define LedSegF 0x04
35 #define LedSegG 0x02
36 #define LedSegH 0x01
37 */
38 //
39
40 #define LedChar0 (LedSegA + LedSegB + LedSegC + LedSegD + LedSegE + LedSegF )
41 #define LedChar1 ( LedSegB + LedSegC )
42 #define LedChar2 (LedSegA + LedSegB + LedSegD + LedSegE + LedSegG)
43 #define LedChar3 (LedSegA + LedSegB + LedSegC + LedSegD + LedSegG)
44 #define LedChar4 ( LedSegB + LedSegC + LedSegF + LedSegG)
45 #define LedChar5 (LedSegA + LedSegC + LedSegD + LedSegF + LedSegG)
46 #define LedChar6 (LedSegA + LedSegC + LedSegD + LedSegE + LedSegF + LedSegG)
47 #define LedChar7 (LedSegA + LedSegB + LedSegC )
48 #define LedChar8 (LedSegA + LedSegB + LedSegC + LedSegD + LedSegE + LedSegF + LedSegG)
49 #define LedChar9 (LedSegA + LedSegB + LedSegC + LedSegD + LedSegF + LedSegG)
50 #define LedCharA (LedSegA + LedSegB + LedSegC + LedSegE + LedSegF + LedSegG)
51 #define LedCharB ( LedSegC + LedSegD + LedSegE + LedSegF + LedSegG)
52 #define LedCharC (LedSegA + LedSegD + LedSegE + LedSegF )
53 #define LedCharD ( LedSegB + LedSegC + LedSegD + LedSegE + LedSegG)
54 #define LedCharE (LedSegA + LedSegD + LedSegE + LedSegF + LedSegG)
55 #define LedCharF (LedSegA + LedSegE + LedSegF + LedSegG)
56
57 #define RCLK P0_29
58 //#define SCK0 P0_28 //<LPC213xDEF.H>已定义
ARM COMPILER V2.51a, ArtxDemo 06/05/06 10:40:44 PAGE 2
59 //#define MOSI0 P0_25 //<LPC213xDEF.H>已定义
60 #define BEEP P0_7// P0.7控制蜂鸣器,低电平蜂鸣
61
62 #define KEY1 P0_16//
63 #define KEY2 P0_17//
64 #define KEY3 P0_18//
65 #define KEY4 P0_19//
66 #define KEY5 P0_20//
67 #define KEY6 P0_21//
68
69
70
71 #define LED1 P1_18//
72 #define LED2 P1_19//
73 #define LED3 P1_20//
74 #define LED4 P1_21//
75 #define LED5 P1_22//
76 #define LED6 P1_23//
77 #define LED7 P1_24//
78 #define LED8 P1_25//
79
80
81
82 static const unsigned char LedTab[] =
83 {
84 ~LedChar0,
85 ~LedChar1,
86 ~LedChar2,
87 ~LedChar3,
88 ~LedChar4,
89 ~LedChar5,
90 ~LedChar6,
91 ~LedChar7,
92 ~LedChar8,
93 ~LedChar9,
94 ~LedCharA,
95 ~LedCharB,
96 ~LedCharC,
97 ~LedCharD,
98 ~LedCharE,
99 ~LedCharF
100 };
101
102 OS_TID Main_Task, Key_Task, Led_Task, Lednum_Task, Beep_Task;
*** WARNING C34 IN LINE 102 OF ARTXDEMO.C: 'Main_Task': missing declaration specifiers
*** ERROR C42 IN LINE 102 OF ARTXDEMO.C: 'Main_Task': not in formal parameter list
*** WARNING C34 IN LINE 102 OF ARTXDEMO.C: 'Key_Task': missing declaration specifiers
*** ERROR C42 IN LINE 102 OF ARTXDEMO.C: 'Key_Task': not in formal parameter list
*** WARNING C34 IN LINE 102 OF ARTXDEMO.C: 'Led_Task': missing declaration specifiers
*** ERROR C42 IN LINE 102 OF ARTXDEMO.C: 'Led_Task': not in formal parameter list
*** WARNING C34 IN LINE 102 OF ARTXDEMO.C: 'Lednum_Task': missing declaration specifiers
*** ERROR C42 IN LINE 102 OF ARTXDEMO.C: 'Lednum_Task': not in formal parameter list
*** WARNING C34 IN LINE 102 OF ARTXDEMO.C: 'Beep_Task': missing declaration specifiers
*** ERROR C42 IN LINE 102 OF ARTXDEMO.C: 'Beep_Task': not in formal parameter list
103
104 void MainTask (void) __task;
*** ERROR C42 IN LINE 104 OF ARTXDEMO.C: 'MainTask': not in formal parameter list
105 void KeyTask (void) __task;
*** ERROR C42 IN LINE 105 OF ARTXDEMO.C: 'KeyTask': not in formal parameter list
106 void LedTask (void) __task;
*** ERROR C42 IN LINE 106 OF ARTXDEMO.C: 'LedTask': not in formal parameter list
107 void LednumTask (void) __task;
*** ERROR C42 IN LINE 107 OF ARTXDEMO.C: 'LednumTask': not in formal parameter list
108 void BeepTask (void) __task;
*** ERROR C42 IN LINE 108 OF ARTXDEMO.C: 'BeepTask': not in formal parameter list
109
ARM COMPILER V2.51a, ArtxDemo 06/05/06 10:40:44 PAGE 3
110 void SystemInit(void);
*** ERROR C42 IN LINE 110 OF ARTXDEMO.C: 'SystemInit': not in formal parameter list
111 void KeyInit(void);
*** ERROR C42 IN LINE 111 OF ARTXDEMO.C: 'KeyInit': not in formal parameter list
112 void LedInit(void);
*** ERROR C42 IN LINE 112 OF ARTXDEMO.C: 'LedInit': not in formal parameter list
113 void LednumInit(void);
*** ERROR C42 IN LINE 113 OF ARTXDEMO.C: 'LednumInit': not in formal parameter list
114 void BeepInit(void);
*** ERROR C42 IN LINE 114 OF ARTXDEMO.C: 'BeepInit': not in formal parameter list
115
116 void MSPI_Init(void);
*** ERROR C42 IN LINE 116 OF ARTXDEMO.C: 'MSPI_Init': not in formal parameter list
117 unsigned char MSPI_SendData(unsigned char);
*** ERROR C42 IN LINE 117 OF ARTXDEMO.C: 'MSPI_SendData': not in formal parameter list
118 void LedDisplay(unsigned char);
*** ERROR C42 IN LINE 118 OF ARTXDEMO.C: 'LedDisplay': not in formal parameter list
119
120 void SystemInit(void) {
*** ERROR C42 IN LINE 120 OF ARTXDEMO.C: 'SystemInit': not in formal parameter list
*** ERROR C25 IN LINE 120 OF ARTXDEMO.C: syntax error near '{'
121 PINSEL0 = 0x00000000; // 设置管脚连接GPIO
*** ERROR C25 IN LINE 121 OF ARTXDEMO.C: syntax error near 'volatile'
122 PINSEL1 = 0x00000000; // 设置管脚连接GPIO
*** ERROR C25 IN LINE 122 OF ARTXDEMO.C: syntax error near 'volatile'
123 IODIR0 = 0x00000000; // 设置P0口为输入
*** ERROR C25 IN LINE 123 OF ARTXDEMO.C: syntax error near 'volatile'
124 IODIR1 = 0x00000000; // 设置P1口为输入
*** ERROR C25 IN LINE 124 OF ARTXDEMO.C: syntax error near 'volatile'
125 }
126
127 void KeyInit(void) {
*** ERROR C42 IN LINE 127 OF ARTXDEMO.C: 'KeyInit': not in formal parameter list
*** ERROR C25 IN LINE 127 OF ARTXDEMO.C: syntax error near '{'
128
129 }
130
131 void LedInit(void) {
*** ERROR C42 IN LINE 131 OF ARTXDEMO.C: 'LedInit': not in formal parameter list
*** ERROR C25 IN LINE 131 OF ARTXDEMO.C: syntax error near '{'
132 IODIR1 |= (1 << LED1) | // 设置LED1为输出
*** ERROR C25 IN LINE 132 OF ARTXDEMO.C: syntax error near 'volatile'
133 (1 << LED2) | // 设置LED2为输出
134 (1 << LED3) | // 设置LED3为输出
135 (1 << LED4) | // 设置LED4为输出
136 (1 << LED5) | // 设置LED5为输出
137 (1 << LED6) | // 设置LED6为输出
138 (1 << LED7) | // 设置LED7为输出
139 (1 << LED8); // 设置LED8为输出
140 IOSET1 = (1 << LED1) | // 关闭LED1
*** ERROR C25 IN LINE 140 OF ARTXDEMO.C: syntax error near 'volatile'
141 (1 << LED2) | // 关闭LED2
142 (1 << LED3) | // 关闭LED3
143 (1 << LED4) | // 关闭LED4
144 (1 << LED5) | // 关闭LED5
145 (1 << LED6) | // 关闭LED6
146 (1 << LED7) | // 关闭LED7
147 (1 << LED8); // 关闭LED8
148 }
149
150 void LednumInit(void) {
*** ERROR C42 IN LINE 150 OF ARTXDEMO.C: 'LednumInit': not in formal parameter list
*** ERROR C25 IN LINE 150 OF ARTXDEMO.C: syntax error near '{'
151 MSPI_Init();
*** ERROR C42 IN LINE 151 OF ARTXDEMO.C: 'MSPI_Init': not in formal parameter list
152 }
ARM COMPILER V2.51a, ArtxDemo 06/05/06 10:40:44 PAGE 4
*** ERROR C25 IN LINE 152 OF ARTXDEMO.C: syntax error near '}'
*** ERROR C7 IN LINE 152 OF ARTXDEMO.C: compilation aborted
ARM COMPILATION COMPLETE. 5 WARNING(S), 36 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -