gusucode.com > target工具箱matlab源码程序 > target/extensions/processor/shared/ti/mdlinfo/getIRInfo_TITargets.m
function [linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = getIRInfo_TITargets(action, cgHook, linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo) %GETIRINFO_TITARGETS Populate PjtGenInfo with TI Target-specific information. % Copyright 2007-2011 The MathWorks, Inc. switch lower(action) case 'init' [linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = initPjtGenInfo(linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo); case 'process_blocks' [linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = processBlockInfo(cgHook, linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo); otherwise linkPjtGenInfo.error = 1; DAStudio.error('TARGETSHARED:codegen:IRInfoUnrecognizedAction', action); end %% ------------------------------------------------------------------------ function [linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = initPjtGenInfo(linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo) %INITTARGETSIRINFO_TI Get TI-specific 'PjtGenInfo'. targetPjtGenInfo.useDSPBIOS = 0; targetPjtGenInfo.RTDXIntNeeded = 0; targetPjtGenInfo.numRTDXs = 0; % used only by C2000 %% ------------------------------------------------------------------------ function [linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = processBlockInfo(cgHook, linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo) %PROCESSTARGETSBLOCKS_TI Process TI-specific blocks. % Process the Target-only common blocks functionList = { ... 'getBlockInfo_RTDX',... }; for i=1:numel(functionList) [ linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo] = getirinfoprivate(functionList{i}, cgHook, [], linkPjtGenInfo, schedPjtGenInfo, targetPjtGenInfo); if (linkPjtGenInfo.error==1) return; end end %[EOF] getIRInfo_TITargets.m