Generated Data Types, Data Usage, and Functions
All of the variables, data types and functions that are generated in MicroC are directly derived from the model.
Some are directly user-defined data (data-items, conditions, events, user-functions) and some relate to the graphical elements, like states and activities.
Those that the tool generates, and the naming convention used is customizable, through the OSDT (MicroC OS Definition Tool), are marked with custom.
When having <
NAME
> the intention is to replace that sequence with the relevant model element name.Data is generated to the (custom)
glob_dat.c
file. The variables which are not in that file are context variables, that are generated as automatic variables for the activity/statechart/ flowchart they are used in. Functions resulting from the graphical model are generated in<MODULE>.c
file (that is the module name, in the compilation profile, containing the chart in scope).User functions and other functions needed, that are not explicitly in any module scope, are generated to (custom)