]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/blob - rpp/rpp/rpp.tlc
Implemented metadata print option in TLC. Changed hello_world demo to include the...
[jenkicar/rpp-simulink.git] / rpp / rpp / rpp.tlc
1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: no_ext_comm
2
3 %% Copyright (C) 2013 Czech Technical University in Prague
4 %%
5 %% Authors:
6 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
7 %%
8 %% This program is free software; you can redistribute it and/or modify
9 %% it under the terms of the GNU General Public License as published by
10 %% the Free Software Foundation; either version 2 of the License, or
11 %% (at your option) any later version.
12 %%
13 %% This program is distributed in the hope that it will be useful,
14 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
15 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 %% GNU General Public License for more details.
17 %%
18 %% You should have received a copy of the GNU General Public License
19 %% along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 %%
21 %% File : rpp.tlc
22 %% Abstract:
23 %%     Embedded real-time system target file for RPP.
24 %%
25 %%     This file is the system target file (STF), or target manifest file.
26 %%     Functions of the STF include:
27 %%
28 %%          - Making the target visible in the System Target File Browser.
29 %%          - Definition of code generation options for the target (inherited
30 %%            and target-specific).
31 %%          - Providing an entry point for the top-level control of the TLC code
32 %%            generation process.
33 %%
34 %% References:
35 %%     rtw_ug.pdf p. 1129 and _1144_
36
37
38 %selectfile NULL_FILE
39
40 %assign CodeFormat = "Embedded-C"
41 %assign Language   = "C"
42 %assign TargetType = "RT"
43
44 %assign AutoBuildProcedure = !GenerateSampleERTMain
45
46 %% TODO: Check applicability of this options
47 %assign SuppressSetEventsForThisBaseRateFcn = 1
48 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
49 %assign SuppressMultiTaskScheduler = TLC_TRUE
50
51 %include "codegenentry.tlc"
52
53
54 /%
55   BEGIN_RTW_OPTIONS
56
57   oIdx = 1;
58
59   rtwoptions(oIdx).prompt          = 'RPP Options';
60   rtwoptions(oIdx).type            = 'Category';
61   rtwoptions(oIdx).enable          = 'on';
62   rtwoptions(oIdx).default         = 4;   % number of items under this category
63                                        % excluding this one.
64   rtwoptions(oIdx).popupstrings    = '';
65   rtwoptions(oIdx).tlcvariable     = '';
66   rtwoptions(oIdx).tooltip         = '';
67   rtwoptions(oIdx).callback        = '';
68   rtwoptions(oIdx).makevariable    = '';
69
70   oIdx = oIdx + 1;
71
72
73   rtwoptions(oIdx).prompt         = 'C system stack size';
74   rtwoptions(oIdx).type           = 'Edit';
75   rtwoptions(oIdx).default        = '4096';
76   rtwoptions(oIdx).tlcvariable    = 'rppStackSize';
77   rtwoptions(oIdx).makevariable   = 'RPP_STACK_SIZE';
78   rtwoptions(oIdx).tooltip        = ['Size of the C system stack (in bytes, default 4096).'];
79
80   oIdx = oIdx + 1;
81
82
83   rtwoptions(oIdx).prompt         = 'C system heap size';
84   rtwoptions(oIdx).type           = 'Edit';
85   rtwoptions(oIdx).default        = '4096';
86   rtwoptions(oIdx).tlcvariable    = 'rppHeapSize';
87   rtwoptions(oIdx).makevariable   = 'RPP_HEAP_SIZE';
88   rtwoptions(oIdx).tooltip        = ['Size of the C system heap (in bytes, default 4096).'];
89
90   oIdx = oIdx + 1;
91
92
93   rtwoptions(oIdx).prompt         = 'Model step task stack size';
94   rtwoptions(oIdx).type           = 'Edit';
95   rtwoptions(oIdx).default        = '2048';
96   rtwoptions(oIdx).tlcvariable    = 'rppModelTaskStack';
97   rtwoptions(oIdx).makevariable   = 'RPP_MODEL_TASK_STACK';
98   rtwoptions(oIdx).tooltip        = ['Stack size for the model task (in bytes, default 2048).'];
99
100   oIdx = oIdx + 1;
101
102
103   rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP';
104   rtwoptions(oIdx).type            = 'Checkbox';
105   rtwoptions(oIdx).default         = 'off';
106   rtwoptions(oIdx).tlcvariable     = 'rppDownload';
107   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD';
108   rtwoptions(oIdx).tooltip         = ['Download code to RPP board after build.'];
109   rtwoptions(oIdx).callback        = '';
110
111   oIdx = oIdx + 1;
112
113
114   rtwoptions(oIdx).prompt          = 'Print model metadata to SCI at start';
115   rtwoptions(oIdx).type            = 'Checkbox';
116   rtwoptions(oIdx).default         = 'on';
117   rtwoptions(oIdx).tlcvariable     = 'rppPrintMeta';
118   rtwoptions(oIdx).makevariable    = 'RPP_PRINT_META';
119   rtwoptions(oIdx).tooltip         = ['Print model metadata (model name, compilation time and TLC version) at the start of the model.'];
120   rtwoptions(oIdx).callback        = '';
121
122   oIdx = oIdx + 1;
123
124
125   % Configure code generation settings
126   rtwgensettings.BuildDirSuffix = '_rpp';
127   rtwgensettings.Version        = '1';
128   rtwgensettings.DerivedFrom    = 'ert.tlc';
129   rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
130
131   END_RTW_OPTIONS
132 %/
133