1 2 3
4
5 package ti.platforms.msp430;
6
7 /*!
8 * ======== Platform ========
9 * A generic platform that supports any MSP430 device
10 *
11 * The device to be used by this platform is passed as the platform instance
12 * names. On the `xdc.tools.configuro` command line, it is done in the
13 * following way:
14 * @p(code)
15 * xs xdc.tools.configuro ... -p "ti.platforms.msp430:MSP430F2274"
16 * @p
17 *
18 * In package.bld, the platform instance is selected as in:
19 * @p(code)
20 * Pkg.addExecutable("test", target, "ti.platforms.msp430:MSP430F5438");
21 * @
22 */
23 metaonly module Platform inherits xdc.platform.IPlatform
24 {
25 config xdc.platform.IPlatform.Board BOARD = {
26 id: "0",
27 boardName: "msp430",
28 boardFamily: null,
29 boardRevision: null
30 };
31
32 instance:
33
34 config xdc.platform.IExeContext.Cpu CPU = {
35 id: "0",
36 clockRate: 0,
37 catalogName: "ti.catalog.msp430",
38 deviceName: "MSP430F5438",
39 revision: "",
40 };
41
42 /*!
43 * ======== deviceName ========
44 * The CPU simulated by this simulator platform.
45 *
46 * This parameter is required.
47 */
48 config string deviceName;
49
50 /*!
51 * ======== clockRate ========
52 * The clock rate for the simulated device.
53 */
54 config Double clockRate = 0;
55
56 override config string codeMemory = null;
57
58 override config string dataMemory = null;
59
60 override config string stackMemory = null;
61 };
62