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.
26 %% rtw_ug.pdf p. 1129 and _1144_
31 %assign CodeFormat = "Embedded-C"
32 %assign Language = "C"
33 %assign TargetType = "RT"
35 %assign AutoBuildProcedure = !GenerateSampleERTMain
37 %% TODO: Check applicability of this options
38 %assign SuppressSetEventsForThisBaseRateFcn = 1
39 %assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
40 %assign SuppressMultiTaskScheduler = TLC_TRUE
42 %include "codegenentry.tlc"
50 rtwoptions(oIdx).prompt = 'RPP Options';
51 rtwoptions(oIdx).type = 'Category';
52 rtwoptions(oIdx).enable = 'on';
53 rtwoptions(oIdx).default = 2; % number of items under this category
55 rtwoptions(oIdx).popupstrings = '';
56 rtwoptions(oIdx).tlcvariable = '';
57 rtwoptions(oIdx).tooltip = '';
58 rtwoptions(oIdx).callback = '';
59 rtwoptions(oIdx).makevariable = '';
64 rtwoptions(oIdx).prompt = 'Download compiled binary to RPP';
65 rtwoptions(oIdx).type = 'Checkbox';
66 rtwoptions(oIdx).default = 'off';
67 rtwoptions(oIdx).tlcvariable = 'RppDownload';
68 rtwoptions(oIdx).makevariable = 'RPP_DOWNLOAD';
69 rtwoptions(oIdx).tooltip = ['Download code to RPP board after build.'];
70 rtwoptions(oIdx).callback = '';
75 rtwoptions(oIdx).prompt = 'Stack size';
76 rtwoptions(oIdx).type = 'Edit';
77 rtwoptions(oIdx).default = '800H';
78 rtwoptions(oIdx).tlcvariable = 'RppStackSize';
79 rtwoptions(oIdx).makevariable = 'RPP_STACK_SIZE';
80 rtwoptions(oIdx).tooltip = ['Size of the stack (default 2K = 800H).'];
83 % Configure code generation settings
84 rtwgensettings.BuildDirSuffix = '_rpp';
85 rtwgensettings.Version = '1';
86 rtwgensettings.DerivedFrom = 'ert.tlc';
87 rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';