metaonly module xdc.runtime.Reset |
|
|
|
Startup reset function manager
This module defines the initial reset function and can be used without
requiring any other
xdc.runtime module. The reset function is called
as early as possible in the application startup and is intended for
platform-specific hardware initialization.
[
more ... ]
metaonly module Reset { ...
XDCscript usage |
meta-domain |
var Reset = xdc.useModule('xdc.runtime.Reset');
module-wide config parameters
metaonly module Reset {
module-wide config parameters
}
DETAILS
This module defines the initial reset function and can be used without
requiring any other xdc.runtime module. The reset function is called
as early as possible in the application startup and is intended for
platform-specific hardware initialization.
WARNING
The reset function is _not_ supported on all platforms and, as a result,
you should never place any "portable" code that is required for your
application in this function. Use the @{link Startup} module to
define required application startup functions.
SEE
config Reset.fxns // module-wide |
|
List of functions to call at reset
XDCscript usage |
meta-domain |
DETAILS
This array defines the functions that will be executed by the reset
initialization function (xdc_runtime_Startup_reset__I) _in addition
to_ the function specified by @{link Startup#resetFxn}.
The following code fragment shows how to add the externally defined
function myReset() to this array.
var Reset = xdc.useModule("xdc.runtime.Reset");
Reset.fxns[Reset.fxns.length++] = "&myReset";
WARNING
Although the functions specified in fxns[] are ordinary C functions,
they are often called _before_ the C runtime is fully initialized;
e.g., they may be called _before_ static variables are initialized.
Reset functions should only assume that a minimal execution stack has
initialized.
SEE
generated on Wed, 06 Jan 2010 18:40:43 GMT