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 CPU simulated by this simulator platform.
    44         *
    45         *  This parameter is required.
    46         */
    47        config string deviceName;
    48    
    49        /*!
    50         *  ======== clockRate ========
    51         *  The clock rate for the simulated device.
    52         */
    53        config Double clockRate = 0;
    54    
    55        override config string codeMemory = null;
    56        
    57        override config string dataMemory = null;
    58    
    59        override config string stackMemory = null;
    60    };
    61