I asked a question on Stack Overflow that mentioned using accessing volatile variables in an ISR and most said/implied that volatile was not required, which goes against everything I know. Admittedly I've only been looking at this over the last few days, but I'm still confused. I assume my question is poorly worded and has been misunderstood.
This is the question: https://stackoverflow.com/questions/57499440/using-methods-of-volatile-standard-template-objects
Can anyone explain what's going on? I've read here: https://www.pjrc.com/teensy/interrupts.html
If anybody wants to answer my actual question, that would also be very much appreciated.
This is the question: https://stackoverflow.com/questions/57499440/using-methods-of-volatile-standard-template-objects
Can anyone explain what's going on? I've read here: https://www.pjrc.com/teensy/interrupts.html
If anybody wants to answer my actual question, that would also be very much appreciated.