This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430F169: Error: The modifier "interrupt" is not allowed on this declaration

Part Number: MSP430F169


Tool/software: Code Composer Studio

Hello!

I am working on a prject using a MSP430F169 using code composer v6.2, when I build the code I receive an error message stating:

the modifier "interrupt" is not allowed on this declaration

Am I missing a library or a package? Is my declaration incorrect or am I missing something different?

You can see my code in the following. Every help would be highly appreciated.

Thanks in advance,

Pascal

#include <msp430x16x.h>
#include <signal.h>

void InitPins();

int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
InitPins(); // Pins' initialization
U0CTL = SWRST; // SWRST=1
U0CTL |= CHAR; // 8-bit character
U0TCTL |= SSEL0; // UCLK = ACLK
U0BR0 = 0x45;             // 115200 baud aus 8 MHz erzeugen
U0BR1 = 0x00; //// Teiler ACLK Hi
U0MCTL = 0x4A; // Modulation
ME1 |= UTXE0 + URXE0; // Enabled USART0 TXD/RXD
U0CTL &= ~SWRST; // Initialize USART state machine SWRST=0
IE1 |= URXIE0; // Enable USART0 RX interrupt
_EINT(); // Interrupts enabled

while (1);
}
//-------------------------------------------------------------------------------
interrupt (UART0RX_VECTOR) usart0_rx (void)
{
while (!(IFG1 & UTXIFG0)); // USART0 TX buffer ready?
TXBUF0 = RXBUF0; // read and transmit a symbol
}
//-------------------------------------------------------------------------------
void InitPins()
{
P3SEL = 0x30; //P3.4 and P3.5 used in USART0/UART mode
P3DIR = 0xDF; //P3.5/receive data in = IN
}