activate.m

来自「这是一个关于MATLAB的函数」· M 代码 · 共 29 行

M
29 行
字号
function dummy = activate(cc,name,type)
%ACTIVATE  Make files/objects active in Code Composer Studio(tm)
%   ACTIVATE(CC,NAME,TYPE) forces the specified file or object
%   to be the active one in the Code Composer IDE.  The type
%   of entity is specified by the TYPE parameter.  
%
%   ACTIVATE(CC,'my.pjt','project')  - Make specifed project active
%   ACTIVATE(CC,'text.cpp','text') - Give focus to specifed text file 
%   ACTIVATE(CC,'xdebug' ,'buildcfg') - Make specified build config active
%
%   See also NEW, REMOVE.

% Copyright 2001-2002 The MathWorks, Inc.
% $Revision: 1.3 $ $Date: 2002/06/12 15:30:50 $
error(nargchk(3,3,nargin));
if ~ishandle(cc),
    error('First Parameter must be a CCSDSP Handle');
end 
if strcmpi(type,'project') | strcmpi(type,'text'),
    try 
        name = cc.fileparamparser(name);
    catch
         % Try anyway
    end
end
ccsmexswitchyard([49,cc.boardnum,cc.procnum,0,0],name,type);

% [EOF] activate.m

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?