1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: no_ext_comm
3 %% Copyright (C) 2013 Czech Technical University in Prague
6 %% - Carlos Jenkins <carlos@jenkins.co.cr>
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.
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.
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/>.
23 %% Embedded real-time system target file for RPP.
25 %% This file is the system target file (STF), or target manifest file.
26 %% Functions of the STF include:
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.
35 %% rtw_ug.pdf p. 1129 and _1144_
40 %assign CodeFormat = "Embedded-C"
41 %assign Language = "C"
42 %assign TargetType = "RT"
44 %assign AutoBuildProcedure = !GenerateSampleERTMain
46 %% TODO: Check applicability of this options
47 %assign SuppressSetEventsForThisBaseRateFcn = 1
48 %assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
49 %assign SuppressMultiTaskScheduler = TLC_TRUE
51 %include "codegenentry.tlc"
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
64 rtwoptions(oIdx).popupstrings = '';
65 rtwoptions(oIdx).tlcvariable = '';
66 rtwoptions(oIdx).tooltip = '';
67 rtwoptions(oIdx).callback = '';
68 rtwoptions(oIdx).makevariable = '';
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).'];
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).'];
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).'];
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 = '';
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 = '';
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)';