I use the a periodical software timer that has period of 25 ms. Also I have an asynchronous interrupts which have to restart period of my timer (after the interrupt the next timer callback expected after 25 ms). But I have a problem: after the interrupt the next timer callback occur after random time, not my expected value (25 ms). What is wrong?
Code sample for restart timer (in the interrupt) follow:
portBASE_TYPE xHigherPriorityTaskWoken = pdTRUE;