#include "config.h" #define BEEPCON 1<<7 int main (void) {// add user source code IRQEnable();//Open the IRQ PINSEL1=3<<8; IO0DIR=BEEPCON; VICIntSelect=0x00000000; VICDefVectAddr=(int)IRQ_Eint3;这个地方报错!高手指点是怎么回事? EXTMODE=0x00; EXTINT=1<<3; VICIntEnable=1<<17; while(1); return 0; } void _irqIRQ_Eint3(void)//Interrupt handlers can be written in C using the compiler keyword __irq, { uint32 i; i=IO0SET; if(i&BEEPCON==0) { IO0SET=BEEPCON; } else { IO0CLR=BEEPCON; } while((EXTINT&1<<3)!=0) { EXTINT=1<<3; } VICVectAddr=0; } Error : C2456E: undeclared name, inventing 'extern int IRQ_Eint3' main.c line 33 这个是为什么?谢谢了!
|