在做工程时,要用到两个中断,一个定时器中断和一个UART中断
我用StarterWare的函数把定时器中断映射到中断4上,UART中断映射到中断5
但是,我的中断函数在.asm文件里 总是提示#10234-D错误 如下图所示,想问一下 这个问题要怎么解决
中断向量汇编文件如下:
; Global symbols defined here and exported out of this file
.global _intcVectorTable
.global _c_int00
.global _vector1
.global _vector2
.global _vector3
.global _Timer0ISR
.global _UartISR
.global _vector6
.global _vector7
.global _vector8
.global _vector9
.global _vector10
.global _vector11
; This is a macro that instantiates one entry in the interrupt service table.
VEC_ENTRY .macro addr
STW B0,*--B15
MVKL addr,B0
MVKH addr,B0
B B0
LDW *B15++,B0
NOP 2
NOP
NOP
.endm
; This is a dummy interrupt service routine used to initialize the IST.
_vec_dummy:
B B3
NOP 5
; This is the actual interrupt service table (IST).
.sect ".vecs"
.align 1024
_intcVectorTable:
_vector0: VEC_ENTRY _c_int00 ;RESET
_vector1: VEC_ENTRY _vec_dummy ;NMI
_vector2: VEC_ENTRY _vec_dummy ;RSVD
_vector3: VEC_ENTRY _vec_dummy ;RSVD
_vector4: VEC_ENTRY _Timer0ISR ;Interrupt4 ISR
_vector5: VEC_ENTRY _UartISR ;Interrupt5 ISR
_vector6: VEC_ENTRY _vec_dummy ;RSVD
_vector7: VEC_ENTRY _vec_dummy ;RSVD
_vector8: VEC_ENTRY _vec_dummy ;RSVD
_vector9: VEC_ENTRY _vec_dummy ;RSVD
_vector10: VEC_ENTRY _vec_dummy
_vector11: VEC_ENTRY _vec_dummy
main.c中包含的库有
#include <c6x.h>
#include "interrupt.h"
|