Code covered by the BSD License  

Highlights from
MPC555 Motor Control Function Blockset

MPC555 Motor Control Function Blockset

by

 

20 Mar 2006 (Updated )

Additional I/O blocks for MPC555 target - specifically targetting TPU functionality

mpc555_mtrctrl_docroot()
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function output = mpc555_mtrctrl_docroot()
%
% This function returns the path to the MPC555 Motor Control Library
% Documentation directory
%
% Example:
%           output = mpc555_mtrctrl_docroot();
%
function output = mpc555_mtrctrl_docroot()

% Get the filename of this function
thisFile = mfilename('fullpath');

% Split it into parts to eliminate filename
[thisPath,thisName] = fileparts(thisFile);

% Split it into parts again to eliminate mfiles directory
[thisPath,thisName] = fileparts(thisPath);

% Split it into parts again to eliminate blockset directory
[thisPath,thisName] = fileparts(thisPath);

% Return the documentation directory
output = [thisPath, filesep, 'help'];

end

Contact us