Constant volatile variable
Can you have constant volatile variable?
You can have a const volatile variable. Its syntactically correct and often used while expecting a value change from the hardware.
Example:
The status registers (read only) if micro controllers are often declared as
const volatile statRegxxxx;
The program (software) shouldn't change the value of statRegxxxx, only the hardware can
You can have a const volatile variable. Its syntactically correct and often used while expecting a value change from the hardware.
Example:
The status registers (read only) if micro controllers are often declared as
const volatile statRegxxxx;
The program (software) shouldn't change the value of statRegxxxx, only the hardware can
Comments
Post a Comment