New answers tagged

3 votes

Alternative to polling interrupt flag from main loop?

Since you tagged it Teensy: You could also reduce the priority of the interrupt, so that it can be interrupted by higher priority interrupts. Thus you can implement interrupts with longer durations ...
luni64's user avatar
  • 271
9 votes
Accepted

Alternative to polling interrupt flag from main loop?

If the task is pretty short and time sensitive, your best option is to put it in the interrupt handler. If the task is big and not too urgent (like: it could well wait for a millisecond or so), your ...
Edgar Bonet's user avatar
  • 42.2k

Top 50 recent answers are included