INTERRUPT FUNCTIONS AND VECTORS
The syntax for defining interrupt functions changed from version 1.x.
Version 1.x syntax
The syntax when defining interrupt functions using version 1.x:
interrupt [vector] void function_name(void);
where vector is the vector offset in the vector table.
Version 2.x syntax
The syntax when defining interrupt functions using version 2.x:
#pragma vector=vector
__interrupt void function_name(void);
where vector is the vector offset in the vector table.
详情回复
发表于 2004-9-4 09:24
INTERRUPT FUNCTIONS AND VECTORS
The syntax for defining interrupt functions changed from version 1.x.
Version 1.x syntax
The syntax when defining interrupt functions using version 1.x:
interrupt [vector] void function_name(void);
where vector is the vector offset in the vector table.
Version 2.x syntax
The syntax when defining interrupt functions using version 2.x:
#pragma vector=vector
__interrupt void function_name(void);
where vector is the vector offset in the vector table.