Highlights from
Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

image thumbnail

Embedded Coder Support Package for Green Hills MULTI IDE (R2012b)

by

 

Embedded Coder integration for creating models that run directly in Green Hills MULTI IDE

sl_customization(cm)
function sl_customization(cm)
% SL_CUSTOMIZATION

% Copyright 2007-2009 The MathWorks, Inc.
% $Revision: 1.1.6.1 $

cm.registerTargetInfo(@local_register_7400);
cm.registerAdapterRegistry(@registerGHSMULTI);

%-------------------------------------
% Register Connectivity info
%-------------------------------------
cm.registerTargetInfo(@loc_createConfig);

%% local_register_7400
function thisHW = local_register_7400
% This registers the 7400 device used my MULTI
thisHW = RTW.HWDeviceRegistry;

thisHW.Vendor = 'Freescale';
thisHW.Type = 'MPC7400';
thisHW.Alias = {'Freescale MPC7400'};
thisHW.Platform = {'Prod', 'Target'};
thisHW.setWordSizes([8 16 32 32 32]); % [BitPerChar BitPerShort BitPerInt BitPerLong NativeWordSize]
thisHW.Endianess = 'Big';
thisHW.IntDivRoundTo = 'Zero';
thisHW.ShiftRightIntArith = true;
thisHW.setEnabled({'Endianess'});

%%
function config = loc_createConfig

config = rtw.connectivity.ConfigRegistry;
config.ConfigName = 'GreenHills MULTI';
config.ConfigClass = 'ghsmultiext.pil.ConnectivityConfig';

config.isConfigSetCompatibleFcn = @i_isConfigSetCompatible;
                         
%%
function isConfigSetCompatible = i_isConfigSetCompatible(configSet)
isConfigSetCompatible = configSet.isValidParam('AdaptorName') && ...
    strcmp(configSet.get_param('AdaptorName'),'Green Hills MULTI');        

Contact us