1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
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)
8 %% Copyright (C) 2013-2015 Czech Technical University in Prague
11 %% - Carlos Jenkins <carlos@jenkins.co.cr>
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.
20 %% Embedded real-time system target file for RPP.
22 %% This file is the system target file (STF), or target manifest file.
23 %% Functions of the STF include:
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.
32 %% rtw_ug.pdf p. 1129 and _1144_
37 %assign CodeFormat = "Embedded-C"
38 %assign Language = "C"
39 %assign TargetType = "RT"
41 %assign AutoBuildProcedure = !GenerateSampleERTMain
43 %% TODO: Check applicability of this options
44 %assign SuppressSetEventsForThisBaseRateFcn = 1
45 %assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
46 %assign SuppressMultiTaskScheduler = TLC_TRUE
48 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
50 %include "codegenentry.tlc"
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
63 rtwoptions(oIdx).popupstrings = '';
64 rtwoptions(oIdx).tlcvariable = '';
65 rtwoptions(oIdx).tooltip = '';
66 rtwoptions(oIdx).callback = '';
67 rtwoptions(oIdx).makevariable = '';
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).'];
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).'];
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).'];
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 = '';
112 rtwoptions(oIdx).prompt = 'Download compiled binary to SDRAM.';
113 rtwoptions(oIdx).type = 'Checkbox';
114 rtwoptions(oIdx).default = 'off';
116 %% rtwoptions(oIdx).enable = 'on';
118 %% rtwoptions(oIdx).enable = 'off';
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 = '';
128 rtwoptions(oIdx).prompt = 'Use OpenOCD to download the compiled binary';
129 rtwoptions(oIdx).type = 'Checkbox';
130 rtwoptions(oIdx).default = 'off';
132 %% rtwoptions(oIdx).enable = 'on';
134 %% rtwoptions(oIdx).enable = 'off';
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 = '';
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 = '';
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)';