ISR compiling error

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to receive data from my pc by interruption.Before this, I have done the closed loop test from serial com. Here is the code I used.

	Usart_PutString("dock-bot,demo");
	while(1)
	{
		
		//while ( !( USARTF0_STATUS & 0x80) );

		//RXdata=USARTF0_DATA;

		//Usart_PutChar(RXdata);

			
	}



	ISR(USARTF0_RXC_vect)
	{
		RXdata= USARTF0_DATA;
	}

Yet, the following erros comes out when I compile them:
../serialcom.c:39: error: static declaration of '__vector_119' follows non-static declaration
../serialcom.c:39: error: previous declaration of '__vector_119' was here

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I figured out why.
Because I used ISR inside of the main();