Question
Bit Variables ISR Safe?
Posted on April 24, 2015 at 20:43
I am using the Cosmic compiler and I want to read and write bit variables in an ISR. I am wondering if there is a guarantee that ALL bit variable manipulations are atomic (ie using bitwise instructions).
If not - since multiple bit variables are stored within a single byte I would have to bracket every access of every bit variable with interrupt masking.