]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/rpp.tlc
Disable SCI blocks when External mode is enabled
[pes-rpp/rpp-simulink.git] / rpp / rpp / rpp.tlc
1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
2
3 %% Copyright (C) 2013-2014 Czech Technical University in Prague
4 %%
5 %% Authors:
6 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
7 %%
8 %% This document contains proprietary information belonging to Czech
9 %% Technical University in Prague. Passing on and copying of this
10 %% document, and communication of its contents is not permitted
11 %% without prior written authorization.
12 %%
13 %% File : rpp.tlc
14 %% Abstract:
15 %%     Embedded real-time system target file for RPP.
16 %%
17 %%     This file is the system target file (STF), or target manifest file.
18 %%     Functions of the STF include:
19 %%
20 %%          - Making the target visible in the System Target File Browser.
21 %%          - Definition of code generation options for the target (inherited
22 %%            and target-specific).
23 %%          - Providing an entry point for the top-level control of the TLC code
24 %%            generation process.
25 %%
26 %% References:
27 %%     rtw_ug.pdf p. 1129 and _1144_
28
29
30 %selectfile NULL_FILE
31
32 %assign CodeFormat = "Embedded-C"
33 %assign Language   = "C"
34 %assign TargetType = "RT"
35
36 %assign AutoBuildProcedure = !GenerateSampleERTMain
37
38 %% TODO: Check applicability of this options
39 %assign SuppressSetEventsForThisBaseRateFcn = 1
40 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
41 %assign SuppressMultiTaskScheduler = TLC_TRUE
42
43 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
44
45 %include "codegenentry.tlc"
46
47
48 /%
49   BEGIN_RTW_OPTIONS
50
51   oIdx = 1;
52
53   rtwoptions(oIdx).prompt          = 'RPP Options';
54   rtwoptions(oIdx).type            = 'Category';
55   rtwoptions(oIdx).enable          = 'on';
56   rtwoptions(oIdx).default         = 4;   % number of items under this category
57                                        % excluding this one.
58   rtwoptions(oIdx).popupstrings    = '';
59   rtwoptions(oIdx).tlcvariable     = '';
60   rtwoptions(oIdx).tooltip         = '';
61   rtwoptions(oIdx).callback        = '';
62   rtwoptions(oIdx).makevariable    = '';
63
64   oIdx = oIdx + 1;
65
66
67   rtwoptions(oIdx).prompt         = 'C system stack size';
68   rtwoptions(oIdx).type           = 'Edit';
69   rtwoptions(oIdx).default        = '4096';
70   rtwoptions(oIdx).tlcvariable    = 'rppStackSize';
71   rtwoptions(oIdx).makevariable   = 'RPP_STACK_SIZE';
72   rtwoptions(oIdx).tooltip        = ['Size of the C system stack (in bytes, default 4096).'];
73
74   oIdx = oIdx + 1;
75
76
77   rtwoptions(oIdx).prompt         = 'C system heap size';
78   rtwoptions(oIdx).type           = 'Edit';
79   rtwoptions(oIdx).default        = '4096';
80   rtwoptions(oIdx).tlcvariable    = 'rppHeapSize';
81   rtwoptions(oIdx).makevariable   = 'RPP_HEAP_SIZE';
82   rtwoptions(oIdx).tooltip        = ['Size of the C system heap (in bytes, default 4096).'];
83
84   oIdx = oIdx + 1;
85
86
87   rtwoptions(oIdx).prompt         = 'Model step task stack size';
88   rtwoptions(oIdx).type           = 'Edit';
89   rtwoptions(oIdx).default        = '2048';
90   rtwoptions(oIdx).tlcvariable    = 'rppModelTaskStack';
91   rtwoptions(oIdx).makevariable   = 'RPP_MODEL_TASK_STACK';
92   rtwoptions(oIdx).tooltip        = ['Stack size for the model task (in bytes, default 2048).'];
93
94   oIdx = oIdx + 1;
95
96
97   rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP.';
98   rtwoptions(oIdx).type            = 'Checkbox';
99   rtwoptions(oIdx).default         = 'off';
100   rtwoptions(oIdx).tlcvariable     = 'rppDownload';
101   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD';
102   rtwoptions(oIdx).tooltip         = ['Download code to RPP board after build.'];
103   rtwoptions(oIdx).callback        = '';
104
105   oIdx = oIdx + 1;
106
107
108   rtwoptions(oIdx).prompt          = 'Print model metadata to SCI at start.';
109   rtwoptions(oIdx).type            = 'Checkbox';
110   rtwoptions(oIdx).default         = 'on';
111   rtwoptions(oIdx).tlcvariable     = 'rppPrintMeta';
112   rtwoptions(oIdx).makevariable    = 'RPP_PRINT_META';
113   rtwoptions(oIdx).tooltip         = ['Print model metadata (model name, compilation time and TLC version) at the start of the model.'];
114   rtwoptions(oIdx).callback        = '';
115
116   oIdx = oIdx + 1;
117
118
119   % Configure code generation settings
120   rtwgensettings.BuildDirSuffix = '_rpp';
121   rtwgensettings.Version        = '1';
122   rtwgensettings.DerivedFrom    = 'ert.tlc';
123   rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
124
125   END_RTW_OPTIONS
126 %/