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

getBlockInfo_TgtPref_multilink_multilink_blackfin(linkPjtGenInfo, schedPjtGenInfo)
function [linkPjtGenInfo, schedPjtGenInfo] = getBlockInfo_TgtPref_multilink_multilink_blackfin(linkPjtGenInfo, schedPjtGenInfo)
%GETBLOCKINFO_TGTPREF Get user preference information.
%   Retrieve information that will be needed during *.tlc/*.m execution

%   $Revision: 1.1.6.1 $ $Date: 2012/04/02 21:40:19 $
%   Copyright 2007-2008 The MathWorks, Inc.


%---------------------------------------------------------
% Get basic processor information
%---------------------------------------------------------
tgtPrefInfo = getTgtPrefInfo(linkPjtGenInfo.modelName);
linkPjtGenInfo.targetType  = tgtPrefInfo.boardType;
linkPjtGenInfo.cpuClkRate  = tgtPrefInfo.chipInfo.cpuClockRateMHz * 1e6;
linkPjtGenInfo.useRTOS     = ~strcmpi(tgtPrefInfo.RTOS, 'none');

%---------------------------------------------------------
% Get low resolution clock divider
%---------------------------------------------------------

linkPjtGenInfo.lowResClkDivider = 1;

%---------------------------------------------------------
% Determine if cache is enabled
%---------------------------------------------------------

linkPjtGenInfo.enableCache = 0;
for i=1:length(tgtPrefInfo.cache)
   if strfind (tgtPrefInfo.cache(i).levelLabel, 'CACHE') && ...
      ~strcmpi (tgtPrefInfo.cache(i).cacheSize, '0 kb')
        linkPjtGenInfo.enableCache = 1;
   end
end

%[EOF] getBlockInfo_TgtPref_multilink_multilink_blackfin.m

Contact us