FIQ lpc2148

Hi all, i have a problem with a fiq interrupt lpc2148. I use keil uvision4 and when i compile the code, return me the following

error: #130: expected a "{"

My code is:

#include <lpc214x.h>

void tc0(void)__fiq;

void main(void)
{

  PLL0CFG=0x24;  //Multipler and divider setup
  PLL0CON=0x01;  //Enable PLL
  PLL0FEED=0xAA; //Feed sequence
  PLL0FEED=0x55;
  while(!(PLL0STAT & 0x0400)) ; //is locked?
  PLL0CON=0x03;  //Connect PLL after PLL is locked
  PLL0FEED=0xAA; //Feed sequence
  PLL0FEED=0x55;
  VPBDIV=0x01;

        VICIntSelect = 0x10;
        VICIntEnable = 0x10;

        T0MCR = 0x03;
        T0MR0 = 0x00003000;
        T0TCR = 0x01;

        while(1)
        {
                //loop
        }
}


void tc0(void)__fiq
{
 // code
}

Where i wrong? Help me please. Thanks.

More questions in this forum