Go Down

Topic: Switching between two ISRs (Read 844 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy