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.

TImer remove pendig

Other Parts Discussed in Thread: LM3S617

I have LM3S617 .

My application have a timer0a that run in periodic-mode with interrupt.

With external interrupt I need to restart the timer for resynchronize it.

The problem is that when, inteh external interrupt handler i reload the timer value, any prior timer interupt it isn't deleted.

How can i delete del penting timer0 interrupt for restart it inside other interrupt ?

This is the code for external interrupt PORTC:

//*****************************************************************************
//
// The interrupt handler for external interupt Port C
//
//*****************************************************************************
void
Int_Impulso (void)
{
  GPIO_PORTC_ICR_R    = 0x20;

  HWREG(TIMER0_BASE + TIMER_O_ICR) |= TIMER_TIMA_TIMEOUT;
  HWREG(TIMER0_BASE + TIMER_O_IMR) |= TIMER_TIMA_TIMEOUT;
  TimerLoadSet(TIMER0_BASE, TIMER_A, 2500);    // resynchronize

}