Using volatile in Embedded C: Stop the Compiler from Caching Your Hardware Flags
The volatile keyword prevents compiler optimizations that break interrupt flags and memory-mapped I/O, but it does not guarantee atomic access.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
The volatile keyword prevents compiler optimizations that break interrupt flags and memory-mapped I/O, but it does not guarantee atomic access.