]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blob - rpp/rpp/rpp.tlc
Merge tag 'eaton-0.3.1' into rm48/master
[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 %% TODO: Přejmenovat na rpp_rm48_hdk.tlc a společnou část (vše kromě první řádky) dát do rpp_common.tlc a includovat.
4 %% Jmeno linker scriptu udwlat podobně jako RPP_STACK_SIZE (závislé na platformě - ne v common) a nahradit v *.tmf pomoci |>XXX<|
5 %% Zjistit jak předat jméno CCXML do rpp_download.m - možná pomocí skryté "option" níže.
6 %% target_tools.mk - includovat $(RPP_LIB_ROOT)/Makefile.config a aplikovat $(TARGET_CFLAGS)
7
8 %% Copyright (C) 2013-2015 Czech Technical University in Prague
9 %%
10 %% Authors:
11 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
12 %%
13 %% This document contains proprietary information belonging to Czech
14 %% Technical University in Prague. Passing on and copying of this
15 %% document, and communication of its contents is not permitted
16 %% without prior written authorization.
17 %%
18 %% File : rpp.tlc
19 %% Abstract:
20 %%     Embedded real-time system target file for RPP.
21 %%
22 %%     This file is the system target file (STF), or target manifest file.
23 %%     Functions of the STF include:
24 %%
25 %%          - Making the target visible in the System Target File Browser.
26 %%          - Definition of code generation options for the target (inherited
27 %%            and target-specific).
28 %%          - Providing an entry point for the top-level control of the TLC code
29 %%            generation process.
30 %%
31 %% References:
32 %%     rtw_ug.pdf p. 1129 and _1144_
33
34
35 %selectfile NULL_FILE
36
37 %assign CodeFormat = "Embedded-C"
38 %assign Language   = "C"
39 %assign TargetType = "RT"
40
41 %assign AutoBuildProcedure = !GenerateSampleERTMain
42
43 %% TODO: Check applicability of this options
44 %assign SuppressSetEventsForThisBaseRateFcn = 1
45 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
46 %assign SuppressMultiTaskScheduler = TLC_TRUE
47
48 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
49
50 %include "codegenentry.tlc"
51
52
53 /%
54   BEGIN_RTW_OPTIONS
55
56   oIdx = 1;
57
58   rtwoptions(oIdx).prompt          = 'RPP Options';
59   rtwoptions(oIdx).type            = 'Category';
60   rtwoptions(oIdx).enable          = 'on';
61   rtwoptions(oIdx).default         = 4;   % number of items under this category
62                                        % excluding this one.
63   rtwoptions(oIdx).popupstrings    = '';
64   rtwoptions(oIdx).tlcvariable     = '';
65   rtwoptions(oIdx).tooltip         = '';
66   rtwoptions(oIdx).callback        = '';
67   rtwoptions(oIdx).makevariable    = '';
68
69   oIdx = oIdx + 1;
70
71
72   rtwoptions(oIdx).prompt         = 'C system stack size';
73   rtwoptions(oIdx).type           = 'Edit';
74   rtwoptions(oIdx).default        = '4096';
75   rtwoptions(oIdx).tlcvariable    = 'rppStackSize';
76   rtwoptions(oIdx).makevariable   = 'RPP_STACK_SIZE';
77   rtwoptions(oIdx).tooltip        = ['Size of the C system stack (in bytes, default 4096).'];
78
79   oIdx = oIdx + 1;
80
81
82   rtwoptions(oIdx).prompt         = 'C system heap size';
83   rtwoptions(oIdx).type           = 'Edit';
84   rtwoptions(oIdx).default        = '4096';
85   rtwoptions(oIdx).tlcvariable    = 'rppHeapSize';
86   rtwoptions(oIdx).makevariable   = 'RPP_HEAP_SIZE';
87   rtwoptions(oIdx).tooltip        = ['Size of the C system heap (in bytes, default 4096).'];
88
89   oIdx = oIdx + 1;
90
91
92   rtwoptions(oIdx).prompt         = 'Model step task stack size';
93   rtwoptions(oIdx).type           = 'Edit';
94   rtwoptions(oIdx).default        = '2048';
95   rtwoptions(oIdx).tlcvariable    = 'rppModelTaskStack';
96   rtwoptions(oIdx).makevariable   = 'RPP_MODEL_TASK_STACK';
97   rtwoptions(oIdx).tooltip        = ['Stack size for the model task (in bytes, default 2048).'];
98
99   oIdx = oIdx + 1;
100
101
102   rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP.';
103   rtwoptions(oIdx).type            = 'Checkbox';
104   rtwoptions(oIdx).default         = 'off';
105   rtwoptions(oIdx).tlcvariable     = 'rppDownload';
106   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD';
107   rtwoptions(oIdx).tooltip         = ['Download code to RPP board after build.'];
108   rtwoptions(oIdx).callback        = '';
109
110   oIdx = oIdx + 1;
111
112   rtwoptions(oIdx).prompt          = 'Download compiled binary to SDRAM.';
113   rtwoptions(oIdx).type            = 'Checkbox';
114   rtwoptions(oIdx).default         = 'off';
115 %%if isunix
116 %%  rtwoptions(oIdx).enable          = 'on';
117 %%else
118 %%  rtwoptions(oIdx).enable          = 'off';
119 %%end
120   rtwoptions(oIdx).enable          = 'off';
121   rtwoptions(oIdx).tlcvariable     = 'rppDownloadToSDRAM';
122   rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD_TO_SDRAM';
123   rtwoptions(oIdx).tooltip         = ['Download the compiled binary to the SDRAM instead of the internal Flash memory.'];
124   rtwoptions(oIdx).callback        = '';
125
126   oIdx = oIdx + 1;
127
128   rtwoptions(oIdx).prompt          = 'Use OpenOCD to download the compiled binary';
129   rtwoptions(oIdx).type            = 'Checkbox';
130   rtwoptions(oIdx).default         = 'off';
131 %%if isunix
132 %%  rtwoptions(oIdx).enable          = 'on';
133 %%else
134 %%  rtwoptions(oIdx).enable          = 'off';
135 %%end
136   rtwoptions(oIdx).enable          = 'off';
137   rtwoptions(oIdx).tlcvariable     = 'rppUseOpenOCD';
138   rtwoptions(oIdx).makevariable    = 'RPP_USE_OPENOCD';
139   rtwoptions(oIdx).tooltip         = ['Use the OpenOCD to download the compiled binary instead of the Ti DSS Generic Loader.'];
140   rtwoptions(oIdx).callback        = '';
141
142   oIdx = oIdx + 1;
143
144
145   rtwoptions(oIdx).prompt          = 'Print model metadata to SCI at start.';
146   rtwoptions(oIdx).type            = 'Checkbox';
147   rtwoptions(oIdx).default         = 'on';
148   rtwoptions(oIdx).tlcvariable     = 'rppPrintMeta';
149   rtwoptions(oIdx).makevariable    = 'RPP_PRINT_META';
150   rtwoptions(oIdx).tooltip         = ['Print model metadata (model name, compilation time and TLC version) at the start of the model.'];
151   rtwoptions(oIdx).callback        = '';
152
153   oIdx = oIdx + 1;
154
155
156   % Configure code generation settings
157   rtwgensettings.BuildDirSuffix = '_rpp';
158   rtwgensettings.Version        = '1';
159   rtwgensettings.DerivedFrom    = 'ert.tlc';
160   rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
161
162   END_RTW_OPTIONS
163 %/