1    /*
     2     *  Copyright (c) 2011 by 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     * */
    12    
    13    /*
    14     *  ======== Platform.xdc ========
    15     *
    16     */
    17    
    18    /*!
    19     *  ======== Platform ========
    20     *  Platform support for the app510
    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     *  The configuration parameters are initialized in this package's
    26     *  configuration script (package.cfg) and "bound" to the TCOM object
    27     *  model.  Once they are part of the model, these parameters are
    28     *  queried by a program's configuration script.
    29     */
    30    
    31    metaonly module Platform inherits xdc.platform.IPlatform
    32    {
    33        enum RuntimeEnv {
    34            STDIO,
    35            POSIX,
    36            BIOS
    37        };
    38        
    39        readonly config xdc.platform.IPlatform.Board BOARD = {      
    40            id:             "0",
    41            boardName:      "app510",
    42            boardFamily:    "app510",
    43            boardRevision:  null,
    44        };
    45            
    46        readonly config xdc.platform.IExeContext.Cpu CPU = {
    47            id:             "0",
    48            clockRate:      180.0,
    49            catalogName:    "ti.catalog.arm",
    50            deviceName:     "TMS320CDM510",
    51            revision:       "1.0",
    52        };
    53    
    54    instance:
    55    
    56        override readonly config xdc.platform.IPlatform.Memory
    57            externalMemoryMap[string] = [
    58                ["DDR2", {name: "DDR2", base: 0x80000000, len: 0x01000000}],
    59            ];
    60    
    61        /* default segment for code sections */
    62        override config string codeMemory = "DDR2";
    63    
    64        /* default segment for data sections */
    65        override config string dataMemory = "DDR2";
    66    
    67        /* default segment for stack sections */
    68        override config string stackMemory = "DDR2";
    69    
    70        /*!
    71         *  ======== runTime ========
    72         *  The runtime environment available to executables
    73         */
    74        config RuntimeEnv runTime = STDIO;
    75    
    76        /*!
    77         *  ======== singleCore ========
    78         *  no longer used!
    79         * @_nodoc
    80         */
    81        config Bool singleCore = true;
    82    }
    83    /*
    84     *  @(#) ti.platforms.app510; 1, 0, 0, 1,266; 6-15-2011 13:44:39; /db/ztree/library/trees/platform/platform-m22x/src/
    85     */
    86