Go Down

Topic: Switching between two ISRs (Read 818 times) previous topic - next topic

tim7


If it's shared, make it volatile.  If it's only accessed by one side or the other, no need for volatile.  When in doubt, make it volatile.  
loop side access must be protected by disabling interrupts.


Thanks, that's v. clear.

Go Up