1 /*!
2 * ======== Reset ========
3 * Startup reset function manager
4 *
5 * This module defines the initial reset function and can be used without
6 * requiring any other `xdc.runtime` module. The reset function is called
7 * as early as possible in the application startup and is intended for
8 * platform-specific hardware initialization.
9 *
10 * @a(Warning) 11 * The reset function is _not_ supported on all platforms and, as a result,
12 * you should never place any "portable" code that is required for your
13 * application in this function. Use the `@{link Startup}` module to
14 * define required application startup functions.
15 *
16 * @see Startup
17 */
18 @Template("xdc/runtime/Reset.xdt")
19 metaonlymodule Reset
20 {
21 /*!
22 * ======== fxns ========
23 * List of functions to call at reset
24 *
25 * This array defines the functions that will be executed by the reset
26 * initialization function (`xdc_runtime_Startup_reset__I`) _in addition
27 * to_ the function specified by `@{link Startup#resetFxn}`.
28 *
29 * The following code fragment shows how to add the externally defined
30 * function `myReset()` to this array.
31 * @p(code) 32 * var Reset = xdc.useModule("xdc.runtime.Reset");
33 * Reset.fxns[Reset.fxns.length++] = "&myReset";
34 * @p 35 *
36 * @a(Warning) 37 * Although the functions specified in `fxns[]` are ordinary C functions,
38 * they are often called _before_ the C runtime is fully initialized;
39 * e.g., they may be called _before_ static variables are initialized.
40 * Reset functions should only assume that a minimal execution stack has
41 * initialized.
42 *
43 * @see Startup.resetFxn
44 */
45 metaonlyconfig xdc.runtime.Startup.InitFxn fxns[] = [];
46 }
47 /*
48 * @(#) xdc.runtime; 2, 0, 0, 0,236; 12-18-2009 12:27:14; /db/ztree/library/trees/xdc/xdc-u16x/src/packages/
49 */
50