The volatile Keyword in Embedded C: What It Really Does—and What It Doesn't
In embedded C, volatile tells the compiler that an object's value may change outside the visible program flow. It is important for hardware registers and certain shared variables, but it is not a universal concurrency fix.