]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/commitdiff
Rewrite System Target files to be TMS570 RPP platform specific
authorMichal Horn <hornmich@fel.cvut.cz>
Mon, 20 Apr 2015 11:20:17 +0000 (13:20 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Mon, 20 Apr 2015 11:20:17 +0000 (13:20 +0200)
21 files changed:
rpp/demos/analog_passthrough.slx
rpp/demos/analog_sinewave.slx
rpp/demos/can_demo.slx
rpp/demos/can_ext_mode_demo.slx
rpp/demos/cantransmit.slx
rpp/demos/demo_board.slx
rpp/demos/digital_passthrough.slx
rpp/demos/echo_char.slx
rpp/demos/fray_basic_demo.slx
rpp/demos/fray_motor_demo.slx
rpp/demos/hbridge_analog_control.slx
rpp/demos/hbridge_digital_control.slx
rpp/demos/hbridge_sinewave_control.slx
rpp/demos/hello_world.slx
rpp/demos/irc_input.slx
rpp/demos/led_blink.slx
rpp/demos/led_blink_all.slx
rpp/demos/log_analog_input.slx
rpp/demos/power_toggle.slx
rpp/rpp/rpp_tms570_rpp.tlc [new file with mode: 0644]
rpp/rpp/rpp_tms570_rpp_make_rtw_hook.m [moved from rpp/rpp/rpp_make_rtw_hook.m with 100% similarity]

index b5a9922c1efe0f88683678dfbb923acc5ed4f079..7545ce546aaed4f5a0dc8048d58b09695fb6f5c7 100644 (file)
Binary files a/rpp/demos/analog_passthrough.slx and b/rpp/demos/analog_passthrough.slx differ
index 555aa960fc40e03e33c09608e683efdb04e0a96f..fa53eebe8807fb4dc3b0896550f480b35f38007e 100644 (file)
Binary files a/rpp/demos/analog_sinewave.slx and b/rpp/demos/analog_sinewave.slx differ
index 20e391b685ec406015a821041c61f07198cadd5e..cf4c3bec5aa410f5e939405c61bb9c1cd6447fd7 100644 (file)
Binary files a/rpp/demos/can_demo.slx and b/rpp/demos/can_demo.slx differ
index bbb6b4dbe6612172b4d47f6d5b4871ec55e1678f..32010251fa56b4288d2c204333246019222de54b 100644 (file)
Binary files a/rpp/demos/can_ext_mode_demo.slx and b/rpp/demos/can_ext_mode_demo.slx differ
index 23e86e4fbb1759af1776dce0da3cfb557d31a4f3..f863e3526ad94eddc2b66fcdbe04cf5712218574 100644 (file)
Binary files a/rpp/demos/cantransmit.slx and b/rpp/demos/cantransmit.slx differ
index 4d527ce397188beb7eae733153ca4fad38ac8101..9001f969a58b893ef92d75445c725406917d9007 100644 (file)
Binary files a/rpp/demos/demo_board.slx and b/rpp/demos/demo_board.slx differ
index 73d2498dc9fb3f808a6adb2dc2a5fd8104ba6462..a24e8785dce2eff1f0519fe4bee0400323ef4bd7 100644 (file)
Binary files a/rpp/demos/digital_passthrough.slx and b/rpp/demos/digital_passthrough.slx differ
index f6ee95ebb5146f6ab1e6e2bbdaf0b6c1d65c1b70..f72e3e3872037c0ff0a056c3ed5ddb9c8a233e70 100644 (file)
Binary files a/rpp/demos/echo_char.slx and b/rpp/demos/echo_char.slx differ
index 5e37355f3efc485874482f820bdd722bc1cf1825..e978e800a25a269b78134018abb210c8fc6bc2e6 100644 (file)
Binary files a/rpp/demos/fray_basic_demo.slx and b/rpp/demos/fray_basic_demo.slx differ
index 2b5c81aa111ebb86a0d303690dcf9ee0f282a851..8bb5072e58895f67e5eb7b19c8f7bb6b5108a8e1 100644 (file)
Binary files a/rpp/demos/fray_motor_demo.slx and b/rpp/demos/fray_motor_demo.slx differ
index d860f2a6f212050e6c9f612db3493727d96d0f7f..ee93ffa428e62e981612dad2933d1e25ec23dfdd 100644 (file)
Binary files a/rpp/demos/hbridge_analog_control.slx and b/rpp/demos/hbridge_analog_control.slx differ
index 4b698b0b70be3d46db528e14a88ed6c8cc530675..c5f21e24dd1a6b6a4020edba07b4e2ebda703dac 100644 (file)
Binary files a/rpp/demos/hbridge_digital_control.slx and b/rpp/demos/hbridge_digital_control.slx differ
index 23fca6c4241e44cc17aaaa95a5398967d3b2bed1..b5e6ee12b518b9a44a793ca5814baa81c86ff165 100644 (file)
Binary files a/rpp/demos/hbridge_sinewave_control.slx and b/rpp/demos/hbridge_sinewave_control.slx differ
index 34100c7cf45d88c2abb85f23d9814be2f5c02dd7..510909a73a2711182c50c15066203dc5b13199a3 100644 (file)
Binary files a/rpp/demos/hello_world.slx and b/rpp/demos/hello_world.slx differ
index 8093fdecb535c5a3858a388d745f5fe6704a3d23..bfbd7b1b18215a032edff53cefb39b82d3220788 100644 (file)
Binary files a/rpp/demos/irc_input.slx and b/rpp/demos/irc_input.slx differ
index 0d6d57adfe7951cd2fef2c55d3287cde7df6c885..58691b263a60ac25934e69201b5bd96a2f128715 100644 (file)
Binary files a/rpp/demos/led_blink.slx and b/rpp/demos/led_blink.slx differ
index 53e645070fdba9cf9eed8e8bd201e1daa5c56e5d..8688e350090452cbbcf0efcfed381fde84fa0501 100644 (file)
Binary files a/rpp/demos/led_blink_all.slx and b/rpp/demos/led_blink_all.slx differ
index 83815e43a5844567bc4ef084be8afff3f402452b..e25b6c1bca42acb8733c2a43ceb2de04d6a24e68 100644 (file)
Binary files a/rpp/demos/log_analog_input.slx and b/rpp/demos/log_analog_input.slx differ
index 4c50869097906f64ce88daceb10ec683c0840942..50a89e699965ae3034e4fdf83d334255e7e967b4 100644 (file)
Binary files a/rpp/demos/power_toggle.slx and b/rpp/demos/power_toggle.slx differ
diff --git a/rpp/rpp/rpp_tms570_rpp.tlc b/rpp/rpp/rpp_tms570_rpp.tlc
new file mode 100644 (file)
index 0000000..843c342
--- /dev/null
@@ -0,0 +1,163 @@
+%% SYSTLC: RPP Target TMF: rpp.tmf MAKE: make_rtw EXTMODE: ext_serial_win32_comm
+
+%% Copyright (C) 2013-2014 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.
+%%
+%% File : rpp.tlc
+%% Abstract:
+%%     Embedded real-time system target file for RPP.
+%%
+%%     This file is the system target file (STF), or target manifest file.
+%%     Functions of the STF include:
+%%
+%%          - Making the target visible in the System Target File Browser.
+%%          - Definition of code generation options for the target (inherited
+%%            and target-specific).
+%%          - Providing an entry point for the top-level control of the TLC code
+%%            generation process.
+%%
+%% References:
+%%     rtw_ug.pdf p. 1129 and _1144_
+
+
+%selectfile NULL_FILE
+
+%assign CodeFormat = "Embedded-C"
+%assign Language   = "C"
+%assign TargetType = "RT"
+
+%assign AutoBuildProcedure = !GenerateSampleERTMain
+
+%% TODO: Check applicability of this options
+%assign SuppressSetEventsForThisBaseRateFcn = 1
+%assign InlineSetEventsForThisBaseRateFcn  = TLC_TRUE
+%assign SuppressMultiTaskScheduler = TLC_TRUE
+
+%assign ::extMode = CompiledModel.ConfigSet.ExtMode
+
+%include "codegenentry.tlc"
+
+
+/%
+  BEGIN_RTW_OPTIONS
+
+  oIdx = 1;
+
+  rtwoptions(oIdx).prompt          = 'RPP Options';
+  rtwoptions(oIdx).type            = 'Category';
+  rtwoptions(oIdx).enable          = 'on';
+  rtwoptions(oIdx).default         = 4;   % number of items under this category
+                                       % excluding this one.
+  rtwoptions(oIdx).popupstrings    = '';
+  rtwoptions(oIdx).tlcvariable     = '';
+  rtwoptions(oIdx).tooltip         = '';
+  rtwoptions(oIdx).callback        = '';
+  rtwoptions(oIdx).makevariable    = '';
+
+  oIdx = oIdx + 1;
+
+
+  rtwoptions(oIdx).prompt         = 'C system stack size';
+  rtwoptions(oIdx).type           = 'Edit';
+  rtwoptions(oIdx).default        = '4096';
+  rtwoptions(oIdx).tlcvariable    = 'rppStackSize';
+  rtwoptions(oIdx).makevariable   = 'RPP_STACK_SIZE';
+  rtwoptions(oIdx).tooltip        = ['Size of the C system stack (in bytes, default 4096).'];
+
+  oIdx = oIdx + 1;
+
+
+  rtwoptions(oIdx).prompt         = 'C system heap size';
+  rtwoptions(oIdx).type           = 'Edit';
+  rtwoptions(oIdx).default        = '4096';
+  rtwoptions(oIdx).tlcvariable    = 'rppHeapSize';
+  rtwoptions(oIdx).makevariable   = 'RPP_HEAP_SIZE';
+  rtwoptions(oIdx).tooltip        = ['Size of the C system heap (in bytes, default 4096).'];
+
+  oIdx = oIdx + 1;
+
+
+  rtwoptions(oIdx).prompt         = 'Model step task stack size';
+  rtwoptions(oIdx).type           = 'Edit';
+  rtwoptions(oIdx).default        = '2048';
+  rtwoptions(oIdx).tlcvariable    = 'rppModelTaskStack';
+  rtwoptions(oIdx).makevariable   = 'RPP_MODEL_TASK_STACK';
+  rtwoptions(oIdx).tooltip        = ['Stack size for the model task (in bytes, default 2048).'];
+
+  oIdx = oIdx + 1;
+
+  rtwoptions(oIdx).prompt         = 'Linker script file name';
+  rtwoptions(oIdx).type           = 'NonUI';
+  rtwoptions(oIdx).default        = 'TMS570LS313xFlashLnk.cmd';
+  rtwoptions(oIdx).tlcvariable    = 'rppLdScriptFileName';
+  rtwoptions(oIdx).makevariable   = 'RPP_LD_SCRIPT_FILE_NAME';
+  rtwoptions(oIdx).tooltip        = ['The name of the platform specific linker script.'];
+
+  oIdx = oIdx + 1;
+
+  rtwoptions(oIdx).prompt         = 'Target configuration file name';
+  rtwoptions(oIdx).type           = 'NonUI';
+  rtwoptions(oIdx).default        = 'TMS570LS3137.ccxml';
+  rtwoptions(oIdx).tlcvariable    = 'rppTargetConfFileName';
+  rtwoptions(oIdx).makevariable   = 'RPP_CCXML_FILE_NAME';
+  rtwoptions(oIdx).tooltip        = ['The name of the platform specific target configuration file.'];
+
+  oIdx = oIdx + 1;
+
+  rtwoptions(oIdx).prompt          = 'Download compiled binary to RPP.';
+  rtwoptions(oIdx).type            = 'Checkbox';
+  rtwoptions(oIdx).default         = 'off';
+  rtwoptions(oIdx).tlcvariable     = 'rppDownload';
+  rtwoptions(oIdx).makevariable    = 'RPP_DOWNLOAD';
+  rtwoptions(oIdx).tooltip         = ['Download code to RPP board after build.'];
+  rtwoptions(oIdx).callback        = '';
+
+  oIdx = oIdx + 1;
+
+  rtwoptions(oIdx).prompt          = 'Download compiled binary to SDRAM.';
+  rtwoptions(oIdx).type            = 'Checkbox';
+  rtwoptions(oIdx).default         = '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';
+  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';
+  rtwoptions(oIdx).default         = 'on';
+  rtwoptions(oIdx).tlcvariable     = 'rppPrintMeta';
+  rtwoptions(oIdx).makevariable    = 'RPP_PRINT_META';
+  rtwoptions(oIdx).tooltip         = ['Print model metadata (model name, compilation time and TLC version) at the start of the model.'];
+  rtwoptions(oIdx).callback        = '';
+
+  oIdx = oIdx + 1;
+
+
+  % Configure code generation settings
+  rtwgensettings.BuildDirSuffix = '_rpp';
+  rtwgensettings.Version        = '1';
+  rtwgensettings.DerivedFrom    = 'ert.tlc';
+  rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
+
+  END_RTW_OPTIONS
+%/