adjustmarkerfile.m
来自「simulink real-time workshop for dragon12」· M 代码 · 共 42 行
M
42 行
function adjustMarkerFile(installpath)
% adjust marker file to avoid having to recompile the libraries
installpathTXT = strrep(installpath, '\', '\\');
myMarkerfile1 = 'rtw version: TargetProjectType:"Flash_flat"';
myMarkerfile2a = 'ProjectPathAndFile_Flash:';
myMarkerfile2b = '\\bin\\rtw_dp256_flash';
myMarkerfile3a = 'ProjectPathAndFile_Banked:';
myMarkerfile3b = '\\bin\\rtw_dp256_flash_banked';
myMarkerfile4a = 'StaticLibraryDirectory:';
myMarkerfile4b = '\\rtwlib';
myMarkerfile5 = 'TargetCompiler:CodeWarrior';
if(exist([installpath '\rtwlib\rtwlib.lib']))
% overwrite markerfile with adjusted version
h = fopen([installpath '\\rtwlib\\markerfile.txt'], 'w');
fprintf(h, myMarkerfile1);
fprintf(h, '\n');
fprintf(h, myMarkerfile2a);
fprintf(h, installpathTXT);
fprintf(h, myMarkerfile2b);
fprintf(h, '\n');
fprintf(h, myMarkerfile3a);
fprintf(h, installpathTXT);
fprintf(h, myMarkerfile3b);
fprintf(h, '\n');
fprintf(h, myMarkerfile4a);
fprintf(h, installpathTXT);
fprintf(h, myMarkerfile4b);
fprintf(h, '\n');
fprintf(h, myMarkerfile5);
fprintf(h, '\n');
fclose(h);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?