We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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