Next: , Previous: , Up: Variable Attributes   [Contents][Index]


6.32.10 MSP430 Variable Attributes

noinit

Any data with the noinit attribute will not be initialised by the C runtime startup code, or the program loader. Not initialising data in this way can reduce program startup times.

persistent

Any variable with the persistent attribute will not be initialised by the C runtime startup code. Instead its value will be set once, when the application is loaded, and then never initialised again, even if the processor is reset or the program restarts. Persistent data is intended to be placed into FLASH RAM, where its value will be retained across resets. The linker script being used to create the application should ensure that persistent data is correctly placed.

lower
upper
either

These attributes are the same as the MSP430 function attributes of the same name (see MSP430 Function Attributes). These attributes can be applied to both functions and variables.