msp430 interrupt handler routine

Sysprogs forums Forums VisualGDB msp430 interrupt handler routine

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8299
    jerbucc
    Participant

    Can someone tell me what the correct syntax for an interrupt is. I tried using same as Code composer code as below and I get an error? it doesn’t recognize __interrupt
    <div>//*****************************************************************************
    #pragma vector=TIMER1_A0_VECTOR
    __interrupt void IntervalWakeupISR (void)
    {
    //
    // Set flag to update panel, then wake from LPM3 sleep
    //
    g_bUpdatePanel = true;
    LPM3_EXIT;
    }</div>
    <div></div>
    <div>//*****************************************************************************</div>

    #8307
    support
    Keymaster

    Hi,

    Please try the __attribute__((__interrupt__(vector))) syntax described here: http://stackoverflow.com/questions/15500826/how-to-declare-an-interrupt-handler-isr-in-mspgcc

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.