📄 time.lst
字号:
ARM COMPILER V2.53, Time 22/04/07 01:45:29 PAGE 1
ARM COMPILER V2.53, COMPILATION OF MODULE Time
OBJECT MODULE PLACED IN Time.OBJ
COMPILER INVOKED BY: c:\Keil\ARM\BIN\CA.exe Time.c THUMB DEBUG TABS(4)
stmt level source
1 /******************************************************************************/
2 /* This file is part of the uVision/ARM development tools */
3 /* Copyright KEIL ELEKTRONIK GmbH 2002-2004 */
4 /******************************************************************************/
5 /* */
6 /* TIME.C: Time Functions for 100Hz Clock Tick */
7 /* */
8 /******************************************************************************/
9
10 #include <LPC21XX.H> // LPC21XX Peripheral Registers
*** ERROR C318 IN LINE 10 OF Time.c: can't open file 'LPC21XX.H'
11 #include "Timer.h"
12
13 long timeval;
14
15 void tc0 (void) __attribute__ ((interrupt)); // Generate Interrupt
*** ERROR C25 IN LINE 15 OF TIME.C: syntax error near '('
*** ERROR C42 IN LINE 15 OF TIME.C: '__attribute__': not in formal parameter list
16
17 /* Setup the Timer Counter 0 Interrupt */
18 void init_timer (void) {
*** ERROR C42 IN LINE 18 OF TIME.C: 'init_timer': not in formal parameter list
*** ERROR C25 IN LINE 18 OF TIME.C: syntax error near '{'
19 T0MR0 = 149999; // 10mSec = 150.000-1 counts
*** ERROR C142 IN LINE 19 OF TIME.C: illegal initialization
20 T0MCR = 3; // Interrupt and Reset on MR0
*** ERROR C142 IN LINE 20 OF TIME.C: illegal initialization
21 T0TCR = 1; // Timer0 Enable
*** ERROR C142 IN LINE 21 OF TIME.C: illegal initialization
22 VICVectAddr0 = (unsigned long)tc0; // set interrupt vector in 0
*** ERROR C142 IN LINE 22 OF TIME.C: illegal initialization
*** ERROR C67 IN LINE 22 OF TIME.C: 'tc0': undefined identifier
23 VICVectCntl0 = 0x20 | 4; // use it for Timer 0 Interrupt
*** ERROR C142 IN LINE 23 OF TIME.C: illegal initialization
24 VICIntEnable = 0x00000010; // Enable Timer0 Interrupt
*** ERROR C142 IN LINE 24 OF TIME.C: illegal initialization
25 }
*** ERROR C25 IN LINE 25 OF TIME.C: syntax error near '}'
26
27
28 /* Timer Counter 0 Interrupt executes each 10ms @ 60 MHz CPU Clock */
29 void tc0 (void) {
*** ERROR C53 IN LINE 29 OF TIME.C: redefinition of 'tc0': different return types
30 1 timeval++;
31 1 T0IR = 1; // Clear interrupt flag
*** ERROR C67 IN LINE 31 OF TIME.C: 'T0IR': undefined identifier
32 1 VICVectAddr = 0; // Acknowledge Interrupt
*** ERROR C67 IN LINE 32 OF TIME.C: 'VICVectAddr': undefined identifier
33 1 }
ARM COMPILATION COMPLETE. 0 WARNING(S), 16 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -