2007-08-03 10:12 AM
WDG in timer mode generates only one interrupt
2011-05-17 12:45 AM
I'm using WDG in timer mode and I want the WDG to generate an end of count interrupt. The code to setup the WDG (at 1ms end of count) and VIC has to be correct because my IRQ handler is called at least once and only once.
This is my handler, what's wrong, why only once? void WDG_IRQHandler( void ) { /* Increment the tick counter. */ vTaskIncrementTick(); #if configUSE_PREEMPTION == 1 /* The new tick value might unblock a task. Ensure the highest task that is ready to execute is the task that will execute when the tick ISR exits. */ vTaskSwitchContext(); #endif /* Clear the interrupt in the watchdog. */ WDG->SR &= ~0x0001; //VIC0->VAiR[0] = 0; }