⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adjustmarkerfile.m

📁 simulink real-time workshop for dragon12 development board from
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -