📄 gen_rtw_filelist_mpf.tlc
字号:
%% File: gen_rtw_filelist_mpf.tlc
%%
%% Abstract: Generate the file rtw_filelist.mpf
%% that is imported by CodeWarrior to define the
%% list of files that are required for RTW/CodeWarrior
%% integration.
%% $Revision: 1.12 $
%% $Date: 2002/11/11 19:13:59 $
%%
%% Copyright 2002 The MathWorks, Inc.
%% Generated files:
%% modelname_data.c
%% modelname.c
%% modelname.h
%% modelname_private.h
%% modelname_types.h
%% cpp_req_defines.h
%%
%% The following static files are stored with the
%% CodeWarrior project stationery. These files are
%% copied into to destination directory along with
%% generated files.
%% rtw_hc12_intlib_ram.lib
%% tmwtypes.h
%selectfile NULL_FILE
%<LibWriteToStandardOutput("### Writing: rtw_filelist.mpf")>
%%
%% Generate the .mpf file containing the list of all
%% RTW files (static and generated) used to create an executable.
%%
%assign mlroot = FEVAL("matlabroot")
%%
%openfile RTW_FILELIST_MPF = "rtw_filelist.mpf"
%%
%% Generated files:
%with CompiledModel
%with ModelFiles
%if ISFIELD(CompiledModel,"ModelFiles")
%foreach fileIdx = LibGetNumModelFiles()
%assign fileName = LibGetModelFileAttribute(fileIdx,"Name")
%assign fileType = LibGetModelFileAttribute(fileIdx,"Type") == "SystemBody" ? "source" : "header"
%% !!! DO NOT INDENT !!!
%if fileType=="source"
%<fileName>
%endif
%endforeach
%else
%error CompiledModel.ModelFiles not found.
%endif
%endwith
%%
%%
%% Additional Files: The following filenames are fixed,
%% however some of these files are generated.
%%
%% Adding static sources, static headers, and rtwlib.lib file.
%% !!! DO NOT INDENT !!!
%%
%% check if External mode is used -- fw-02-05
%if ExtMode == 1
..\..\..\rtw\c\src\ext_svr.c
..\..\..\rtw\c\src\updown.c
..\..\..\rtw\c\src\ext_svr_transport.c
..\..\..\rtw\c\src\ext_work.c
%endif
%%
%if LCDdispErrors == 1
..\..\..\mc\lcd.c
%endif
%%
%if HasFuzzyBlocks == 1
FuzzyEngine.asm
%endif
%%
%% check what ODE solver is used (if any) -- fw-03-05
%if %<CompiledModel.NumContStates> > 0
%if ODE_Solver == "ode1"
..\..\..\rtw\c\src\ode1.c
%endif
%if ODE_Solver == "ode2"
..\..\..\rtw\c\src\ode2.c
%endif
%if ODE_Solver == "ode3"
..\..\..\rtw\c\src\ode3.c
%endif
%if ODE_Solver == "ode4"
..\..\..\rtw\c\src\ode4.c
%endif
%if ODE_Solver == "ode5"
..\..\..\rtw\c\src\ode5.c
%endif
%endif
%%
%closefile RTW_FILELIST_MPF
%endwith
%selectfile NULL_FILE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -