Use “const” Keyword to define Constant Values
If this option is selected, constant elements will be generated with the
const
modifier in the filesglob_data.c and glob_dat.h,
rather than being generated as pre-processor macros in the filemacro_def.h
.The attribute for Constant elements (Conditions and Data-items) controls whether the specific element should be generated using the “const” keyword. The name of the new design-attribute is “Use 'const' Keyword” with these possible values:
● no - The constant will be generated according to the settings of the MicroC code generation option: Options > Settings... > Memory > Use “const” Keyword to define Constant Values
● yes - The constant will be generated using the “const” keyword, regardless of the settings of the MicroC code generation option: Options > Settings... >Memory > Use “const” Keyword to define Constant ValuesThe “Use 'const' Keyword” design attribute is available with all predefined OSIs. This attribute has the following parameters in the OSDT APIs in Memory Management page:
Variable
Declaration() and Extern Variable Declaration()
.