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