volatile

Applies to: cpp, c, embedded

volatile tells the compiler a value may change outside normal code flow, such as a memory-mapped register or ISR-updated flag.

volatile uint32_t* gpio = REG;

See also: register, interrupt