1 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
3 %% Copyright (C) 2013-2014 Czech Technical University in Prague
6 %% - Carlos Jenkins <carlos@jenkins.co.cr>
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.
15 %% Embedded real-time system target file for RPP.
17 %% This file is the system target file (STF), or target manifest file.
18 %% Functions of the STF include:
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.
27 %% rtw_ug.pdf p. 1129 and _1144_
32 %assign CodeFormat = "Embedded-C"
33 %assign Language = "C"
34 %assign TargetType = "RT"
36 %assign AutoBuildProcedure = !GenerateSampleERTMain
38 %% TODO: Check applicability of this options
39 %assign SuppressSetEventsForThisBaseRateFcn = 1
40 %assign InlineSetEventsForThisBaseRateFcn = TLC_TRUE
41 %assign SuppressMultiTaskScheduler = TLC_TRUE
43 %assign ::extMode = CompiledModel.ConfigSet.ExtMode
45 %include "codegenentry.tlc"
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
58 rtwoptions(oIdx).popupstrings = '';
59 rtwoptions(oIdx).tlcvariable = '';
60 rtwoptions(oIdx).tooltip = '';
61 rtwoptions(oIdx).callback = '';
62 rtwoptions(oIdx).makevariable = '';
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).'];
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).'];
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).'];
96 rtwoptions(oIdx).prompt = 'Linker script file name';
97 rtwoptions(oIdx).type = 'NonUI';
98 rtwoptions(oIdx).default = 'TMS570LS313xFlashLnk.cmd';
99 rtwoptions(oIdx).tlcvariable = 'rppLdScriptFileName';
100 rtwoptions(oIdx).makevariable = 'RPP_LD_SCRIPT_FILE_NAME';
101 rtwoptions(oIdx).tooltip = ['The name of the platform specific linker script.'];
105 rtwoptions(oIdx).prompt = 'Target configuration file name';
106 rtwoptions(oIdx).type = 'NonUI';
107 rtwoptions(oIdx).default = 'TMS570LS3137.ccxml';
108 rtwoptions(oIdx).tlcvariable = 'rppTargetConfFileName';
109 rtwoptions(oIdx).makevariable = 'RPP_CCXML_FILE_NAME';
110 rtwoptions(oIdx).tooltip = ['The name of the platform specific target configuration file.'];
114 rtwoptions(oIdx).prompt = 'Download compiled binary to RPP.';
115 rtwoptions(oIdx).type = 'Checkbox';
116 rtwoptions(oIdx).default = 'off';
117 rtwoptions(oIdx).tlcvariable = 'rppDownload';
118 rtwoptions(oIdx).makevariable = 'RPP_DOWNLOAD';
119 rtwoptions(oIdx).tooltip = ['Download code to RPP board after build.'];
120 rtwoptions(oIdx).callback = '';
124 rtwoptions(oIdx).prompt = 'Download compiled binary to SDRAM.';
125 rtwoptions(oIdx).type = 'Checkbox';
126 rtwoptions(oIdx).default = 'off';
127 rtwoptions(oIdx).tlcvariable = 'rppDownloadToSDRAM';
128 rtwoptions(oIdx).makevariable = 'RPP_DOWNLOAD_TO_SDRAM';
129 rtwoptions(oIdx).tooltip = ['Download the compiled binary to the SDRAM instead of the internal Flash memory.'];
130 rtwoptions(oIdx).callback = '';
134 rtwoptions(oIdx).prompt = 'Use OpenOCD to download the compiled binary';
135 rtwoptions(oIdx).type = 'Checkbox';
136 rtwoptions(oIdx).default = '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)';