Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: TIMER0_A0_VECTOR

$
0
0

Hi,

I tried to use the following TIMER0_A0 interrupt on MSP430F2619 RTOS project:

#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A (void)   //line 133
{
P1OUT ^= BIT0;    // Toggle LED
}

And I got following error when compile, anybody knows how to call interrupt service routine?

"../task.c", line 133: error #658-D: the modifier "interrupt" is not allowed on this declaration
"../task.c", line 133: error #66: expected a ";"

Thanks


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>