This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__fiq not recognized

Hello all,

i attempte to execute the following code:

=====================================================
#include <LPC21xx.H>

void FIQ_Handler (void) __fiq; //declare FIQ ISR
void initFiq (void);

void main (void)
{

initFiq(); //Initilise the Fast interrupt source
IOCLR1 = 0x00FF0000;
while(1)
{ ; //Loop here forever
}

}

void FIQ_Handler (void) __fiq
{ IOSET1 = 0x00FF0000; //Set the LED pins
EXTINT = 0x00000002; //Clear the peripheral interrupt flag

}

======================================================

But the compiler reports the error:
main.c(27): error: #130: expected a "{"
main.c(31): warning: #12-D: parsing restarts here after previous syntax error

can you help me please?

I use keil Arm uvision4. This code is from the Book: The Insider's Guide To The Philips ARM7-Based Microcontrollers An Engineer's Introduction To The LPC2000 Series.
Thanks

0