]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/blobdiff - rpp/rpp/rpp.tlc
Change license to MIT
[pes-rpp/rpp-simulink.git] / rpp / rpp / rpp.tlc
index 37239b7ab560e5f40c440325af84ffc747d6f91b..f7abff088ebeb19a820073512fbd3b4c48116abc 100644 (file)
@@ -1,18 +1,34 @@
 %% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
 
-%% Copyright (C) 2013-2014 Czech Technical University in Prague
+%% Copyright (C) 2013-2015 Czech Technical University in Prague
 %%
 %% Authors:
 %%     - Carlos Jenkins <carlos@jenkins.co.cr>
 %%
-%% This document contains proprietary information belonging to Czech
-%% Technical University in Prague. Passing on and copying of this
-%% document, and communication of its contents is not permitted
-%% without prior written authorization.
+%% Permission is hereby granted, free of charge, to any person
+%% obtaining a copy of this software and associated documentation
+%% files (the "Software"), to deal in the Software without
+%% restriction, including without limitation the rights to use,
+%% copy, modify, merge, publish, distribute, sublicense, and/or sell
+%% copies of the Software, and to permit persons to whom the
+%% Software is furnished to do so, subject to the following
+%% conditions:
+
+%% The above copyright notice and this permission notice shall be
+%% included in all copies or substantial portions of the Software.
+
+%% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+%% EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+%% OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+%% NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+%% HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+%% WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+%% FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+%% OTHER DEALINGS IN THE SOFTWARE.
 %%
-%% File : rpp.tlc
+%% File : rpp_rm48_hdk.tlc
 %% Abstract:
-%%     Embedded real-time system target file for RPP.
+%%     Embedded real-time system target file for RM48 HDK target.
 %%
 %%     This file is the system target file (STF), or target manifest file.
 %%     Functions of the STF include:
@@ -26,7 +42,6 @@
 %% References:
 %%     rtw_ug.pdf p. 1129 and _1144_
 
-
 %selectfile NULL_FILE
 
 %assign CodeFormat = "Embedded-C"
@@ -40,8 +55,9 @@
 %assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
 %assign SuppressMultiTaskScheduler = TLC_TRUE
 
-%include "codegenentry.tlc"
+%assign ::extMode = CompiledModel.ConfigSet.ExtMode
 
+%include "codegenentry.tlc"
 
 /%
   BEGIN_RTW_OPTIONS
@@ -62,6 +78,7 @@
   oIdx = oIdx + 1;
 
 
+
   rtwoptions(oIdx).prompt         = 'C system stack size';
   rtwoptions(oIdx).type           = 'Edit';
   rtwoptions(oIdx).default        = '4096';
 
   oIdx = oIdx + 1;
 
-
   rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP.';
   rtwoptions(oIdx).type            = 'Checkbox';
   rtwoptions(oIdx).default         = 'off';
 
   oIdx = oIdx + 1;
 
+  rtwoptions(oIdx).prompt          = 'Download compiled binary to SDRAM.';
+  rtwoptions(oIdx).type            = 'Checkbox';
+  rtwoptions(oIdx).default         = 'off';
+%%if isunix
+%%  rtwoptions(oIdx).enable          = 'on';
+%%else
+%%  rtwoptions(oIdx).enable          = 'off';
+%%end
+  rtwoptions(oIdx).enable          = 'off';
+  rtwoptions(oIdx).tlcvariable     = 'rppDownloadToSDRAM';
+  rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD_TO_SDRAM';
+  rtwoptions(oIdx).tooltip         = ['Download the compiled binary to the SDRAM instead of the internal Flash memory.'];
+  rtwoptions(oIdx).callback        = '';
+
+  oIdx = oIdx + 1;
+
+  rtwoptions(oIdx).prompt          = 'Use OpenOCD to download the compiled binary';
+  rtwoptions(oIdx).type            = 'Checkbox';
+  rtwoptions(oIdx).default         = 'off';
+%%if isunix
+%%  rtwoptions(oIdx).enable          = 'on';
+%%else
+%%  rtwoptions(oIdx).enable          = 'off';
+%%end
+  rtwoptions(oIdx).enable          = 'off';
+  rtwoptions(oIdx).tlcvariable     = 'rppUseOpenOCD';
+  rtwoptions(oIdx).makevariable    = 'RPP_USE_OPENOCD';
+  rtwoptions(oIdx).tooltip         = ['Use the OpenOCD to download the compiled binary instead of the Ti DSS Generic Loader.'];
+  rtwoptions(oIdx).callback        = '';
+
+  oIdx = oIdx + 1;
+
 
   rtwoptions(oIdx).prompt          = 'Print model metadata to SCI at start.';
   rtwoptions(oIdx).type            = 'Checkbox';