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

image thumbnail

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



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

function vargout = halt(id,timeout)
%HALT Immediately terminate execution of the processor.
%  HALT(id,TIMEOUT) asynchronously stops execution of the processor
%  referenced by id.  This method waits for the processor to terminate 
%  execution in the processor before returning.  The RUN(id) method can be
%  used to resume execution after a HALT.  By reading the 'PC' register, it
%  is possible to check the address where the code was stopped by this 
%  method. 
%  The TIMEOUT parameter defines how long to wait (in seconds) for the 
%  execution to terminate.  If this period is exceeded, the routine returns 
%  immediately with a timeout error.  In general the action (halt) still 
%  occurs, but the timeout value  gave insufficient time to verify the 
%  completion of the action.
%  HALT(id) Same as above, except the timeout value defaults to the timeout 
%  property specified by the id object.  Use GET(id,'timeout') to examine 
%  this default timeout value.

% Copyright 2012 The MathWorks, Inc.

Contact us