]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/rpp.tlc
Added stack size configuration option and download to RPP is in the works.
[pes-rpp/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 %% References:
26 %%     rtw_ug.pdf p. 1129 and _1144_
27
28
29 %selectfile NULL_FILE
30
31 %assign CodeFormat = "Embedded-C"
32 %assign Language   = "C"
33 %assign TargetType = "RT"
34
35 %assign AutoBuildProcedure = !GenerateSampleERTMain
36
37 %% TODO: Check applicability of this options
38 %assign SuppressSetEventsForThisBaseRateFcn = 1
39 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
40 %assign SuppressMultiTaskScheduler = TLC_TRUE
41
42 %include "codegenentry.tlc"
43
44
45 /%
46   BEGIN_RTW_OPTIONS
47
48   oIdx = 1;
49
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
54                                        % excluding this one.
55   rtwoptions(oIdx).popupstrings    = '';
56   rtwoptions(oIdx).tlcvariable     = '';
57   rtwoptions(oIdx).tooltip         = '';
58   rtwoptions(oIdx).callback        = '';
59   rtwoptions(oIdx).makevariable    = '';
60
61   oIdx = oIdx + 1;
62
63
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        = '';
71
72   oIdx = oIdx + 1;
73
74
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).'];
81
82
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)';
88
89   END_RTW_OPTIONS
90 %/
91