function SetExtModeTrigDuration(default)
%ONAFTERCODEGEN Hook point for after code generation

%   Copyright 2015 The MathWorks, Inc.

if ~default
%Set External Mode duration better than the default 1000
set_param(bdroot, 'ExtModeTrigDuration',10);
else % if CCP external mode
     
module = 'A';
opts.familyName = 'CCPExtError';
opts.parameterName = 'CCPASAP2InlineParams';
opts.parameterValue = module;
opts.parameterCallback = {''};
opts.blockCallback = [];
opts.errorID ={'TIC2000:codegen:ExtModeIncorrectlyConfigured'};
opts.errorArgs = {module};
opts.targetPrefCallback = {''};
lf_registerBlockCallbackInfo(opts);

end

end

