我的是44BOX开发板,(*(unsigned *)(0xc000074))=(int)INT4567为什么中断编译不过去,难道中断不是这样写,帮帮忙。
#include "libtest.h"
#include "44b.h"
//#define pISR_EINT4567 (*(unsigned *)(0xc000030))
void __irq INT4567(void);
/*************主函数*************/
void Main(){
unsigned short loop1,loop0,loop2;
unsigned int val;
unsigned int *pdisplaybuffer_offsize;
unsigned char *hzcode_offsize ,*ppicture ;//=gImage_picture;
char s0[]="please input your name:【曾屹杰】\n",s1[]="啊";
(*(unsigned *)(0xc000074))=(int)INT4567;//**************键盘中断(加了这句编译就不能通过)
inti_sys( );
init_port( );
inti_interrupt();
init_lcd( );
pdisplaybuffer_offsize=pdisplaybuffer;//清除视频区
for(loop1=0;loop1<9600;loop1++){
*pdisplaybuffer_offsize++=0x00000000;}
dis_row=1;dis_line=1;//化视频区
myprintf("dsafasdfasdfasdf\n");
}
/*****************中断处理函数***********/
void __irq INT4567(void){
rI_ISPC=0xffffffff;//1:clr INTPND
rF_ISPC=0xffffffff;
}