Gary Chambers wrote:
if (now - lastInterruptCheck > (1000/25)) /* avoid thrashing intr checks from 1ms loop in idle proc */
I don't think that in this day and age doing a 1000 interrupt checks/sec can be considered "thrashing" ;-) I'd just remove it and get the 1ms time resolution back.
Cheers, - Andreas