为什么我在emac通信主程序中加了中断地址入口的程序就运行不了了?其他程序我没变
IRQ_setVecs(vectors); //Sets the base address of the interrupt vectors 我在主函数main()中添加的一句话
ves_dm642.asm的程序,我没有动
主函数如下:
main()
{
/******************************************************/
/* open CSL DAT module for fast copy */
/******************************************************/
CSL_init();
IRQ_setVecs(vectors); //这句话是我添加上去的,主函数中的其他部分我未动
CACHE_enableCaching(CACHE_EMIFA_CE00);
CACHE_enableCaching(CACHE_EMIFA_CE01);
DAT_open(DAT_CHAANY, DAT_PRI_LOW, DAT_OPEN_2D);
SCOM_init();
// Glitter the indicator to indicate bootloader successfully
//Led_glitter();
CACHE_setL2Queue(0x3, 0x7);
CACHE_setL2Queue(0x1, 0x7);
CACHE_setPriL2Req(CACHE_L2PRIHIGH);
// create all SCOM and message objects
SCOM_create("NETOK", NULL);
}----------------------------------------
相关头文件我也加了:
#include <csl.h>
#include <csl_emifa.h>
#include <csl_irq.h>
extern far void vectors();//vector()我也在主函数前声明了 |