/%
BEGIN_RTW_OPTIONS
- rtwoptions(1).prompt = 'RPP Options';
- rtwoptions(1).type = 'Category';
- rtwoptions(1).enable = 'on';
- rtwoptions(1).default = 1; % number of items under this category
- % excluding this one.
- rtwoptions(1).popupstrings = '';
- rtwoptions(1).tlcvariable = '';
- rtwoptions(1).tooltip = '';
- rtwoptions(1).callback = '';
- rtwoptions(1).makevariable = '';
+ rtwoptions(1).prompt = 'RPP Options';
+ rtwoptions(1).type = 'Category';
+ rtwoptions(1).enable = 'on';
+ rtwoptions(1).default = 1; % number of items under this category
+ % excluding this one.
+ rtwoptions(1).popupstrings = '';
+ rtwoptions(1).tlcvariable = '';
+ rtwoptions(1).tooltip = '';
+ rtwoptions(1).callback = '';
+ rtwoptions(1).makevariable = '';
- rtwoptions(2).prompt = 'Download compiled binary to RPP';
- rtwoptions(2).type = 'Checkbox';
- rtwoptions(2).default = 'off';
- rtwoptions(2).tlcvariable = '';
- rtwoptions(2).makevariable = 'RPP_DOWNLOAD';
- rtwoptions(2).tooltip = ['Download compiled binary to RPP'];
- rtwoptions(2).callback = '';
+ rtwoptions(2).prompt = 'Download compiled binary to RPP';
+ rtwoptions(2).type = 'Checkbox';
+ rtwoptions(2).default = 'off';
+ rtwoptions(2).tlcvariable = '';
+ rtwoptions(2).makevariable = 'RPP_DOWNLOAD';
+ rtwoptions(2).tooltip = ['Download compiled binary to RPP'];
+ rtwoptions(2).callback = '';
% Configure code generation settings
rtwgensettings.BuildDirSuffix = '_rpp';
- rtwgensettings.Version = '1';
- rtwgensettings.DerivedFrom = 'ert.tlc';
+ rtwgensettings.Version = '1';
+ rtwgensettings.DerivedFrom = 'ert.tlc';
rtwgensettings.SelectCallback = 'rpp_select_callback_handler(hDlg, hSrc)';
END_RTW_OPTIONS
%
% File : rpp_lib_support.m
% Abstract:
-% Support for RPP library and operating system setup.
+% Simulink support for RPP library and operating system setup.
%
% References:
% rtw_ug.pdf p. 1058
% rtw_ref.pdf p. 56
-% <RppRoot>/rpp/lib/os/README.txt
+% Readme file in <RppRoot>/rpp/lib/os/README.txt
function rpp_lib_support(modelName, buildInfo)
'timers.c' };
% Get working directories
- rppLibRoot = getpref('rpp', 'RppLibRoot');
- rppLibRoot = fullfile(rppLibRoot, 'tmp'); % FIXME: Remove this line when library is modularized.
+ osLibRoot = fullfile(getpref('rpp', 'RppLibRoot'), 'os');
% TODO: get suffix from rpp.tlc BuildDirSuffix
modelRoot = Simulink.fileGenControl('getConfig').CodeGenFolder;
outputFolder = fullfile(modelRoot, [modelName, '_rpp']);
% Add sources to compilation
- buildInfo.addSourceFiles(source, rppLibRoot);
+ buildInfo.addSourceFiles(source, osLibRoot);
% Copy dependecy sources
for i = sources
- copyfile(fullfile(rppLibRoot , i{1}), ...
+ copyfile(fullfile(osLibRoot , i{1}), ...
fullfile(outputFolder, i{1}));
end
% Set the TargetLibSuffix
slConfigUISetVal(hDlg, hSrc, 'TargetLibSuffix', '.a');
- % Configure PostCodeGen Command to execute (library code inclusion for compilation)
+ % Configure PostCodeGen Command to execute
+ % (library code inclusion for compilation)
slConfigUISetVal(hDlg, hSrc, 'PostCodeGenCommand', ...
'rpp_lib_support(modelName, buildInfo)');