1    /* --COPYRIGHT--,EPL
     2     *  Copyright (c) 2008 Texas Instruments and others.
     3     *  All rights reserved. This program and the accompanying materials
     4     *  are made available under the terms of the Eclipse Public License v1.0
     5     *  which accompanies this distribution, and is available at
     6     *  http://www.eclipse.org/legal/epl-v10.html
     7     * 
     8     *  Contributors:
     9     *      Texas Instruments - initial implementation
    10     * 
    11     * --/COPYRIGHT--*/
    12    /*
    13     *  ======== Platform.xdc ========
    14     */
    15    
    16    package ti.platforms.ez430_chronos;
    17    
    18    /*!
    19     *  ======== Platform ========
    20     *  Platform support for the ez430_chronos
    21     *
    22     *  This module implements xdc.platform.IPlatform and defines configuration
    23     *  parameters that correspond to this platform's Cpu's, Board's, etc.
    24     *
    25     *  This particular platform has a single Cpu, and therefore, only
    26     *  declares a single CPU configuration object.  Multi-CPU platforms
    27     *  would declare multiple Cpu configuration parameters (one per
    28     *  platform CPU).
    29     */
    30    metaonly module Platform inherits xdc.platform.IPlatform
    31    {
    32        /*!
    33         *  ======== BOARD ========
    34         *  This platform's board attributes
    35         */
    36        readonly config xdc.platform.IPlatform.Board BOARD = {
    37            id:             "0",
    38            boardName:      "ez430_chronos",
    39            boardFamily:    "ez430",
    40            boardRevision:  null
    41        };
    42    
    43        /*!
    44         *  ======== CPU ========
    45         *  The CPU supported by this platform.
    46         *
    47         *  See {@link https://www.ti.com/lit/gpn/CC430F6137} and
    48         *  {@link https://www.ti.com/lit/pdf/slau259} for complete details.
    49         */
    50        readonly config xdc.platform.IExeContext.Cpu CPU = {        
    51            id:             "0",
    52            clockRate:      8.0,
    53            catalogName:    "ti.catalog.msp430",
    54            deviceName:     "CC430F6137",
    55            revision:       "",
    56        };
    57    
    58    instance:
    59    
    60        config String deviceName;
    61    
    62        /*!
    63         *  ======== genFullCmdFile ========
    64         *  Enable generation of full linker command file
    65         *
    66         *  If set to `true`, the platform will generate the complete linker
    67         *  command file rather than require the user to supply one on the
    68         *  link line.
    69         *
    70         *  If an instance of this platform is created with the name
    71         *  "`genFullCmdFile`", this `genFullCmdFile` will be set to `true`.
    72         *  This enables one to easily create a platform instance for which this
    73         *  parameter is `true`.
    74         */
    75        config Bool genFullCmdFile = true;
    76    
    77        override config String codeMemory = "FLASH";
    78        
    79        override config String dataMemory = "RAM";
    80    
    81        override config String stackMemory = "RAM";
    82    };