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_mask_processing(block)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function  mask_processing_enabled = mpc555_mtrctrl_mask_processing(block)
%
% Utility function to check if the mask is in a library
% 
function  mask_processing_enabled = mpc555_mtrctrl_mask_processing(block)
% do not run code that depends on a resource config object
% when called from a library
if (strcmp(get_param(bdroot(block),'BlockDiagramType'),'library'))
    mask_processing_enabled = 0;
else
    mask_processing_enabled = 1;
end
return;
end

Contact us