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).'];
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 = '';
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 = '';
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)';