Dsk5510_ddk.tci
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:3k
- /*
- * ======== Evm5509_ddk.tci ========
- * This file is used for textual configuration of DSP/BIOS as an alternative
- * or in addition to the traditional graphical configuration tool (GCONF).
- * For more information on textual configuration and the TCONF utility,
- * please refer to the DSP/BIOS TextConf User's Guide (SPRU007).
- */
- /*
- * Create an empty object and call it with the getProgObjs method to
- * create global variables for every Module and Instance object.
- * For example, instead of
- * prog.module("LOG").instance("LOG_system").buflen = <some value>;
- * we can simply say
- * tibios.LOG_system.buflen = <value>;
- */
- tibios = {};
- utils.getProgObjs(prog, tibios);
- if (environment["config._55l_"] != null) {
- tibios.GBL.MEMORYMODEL = "LARGE";
- }
- /*
- * enable assorted BIOS features
- */
- bios.enableMemoryHeaps(prog)
- bios.enableRealTimeAnalysis(prog);
- bios.enableRtdx(prog);
- bios.enableTskManager(prog);
- /*
- * initialize LOG objects for user trace and system log
- */
- var trace = tibios.LOG.create("trace");
- trace.bufLen = 1024;
- trace.logType = "circular";
- tibios.LOG_system.bufLen = 1024;
- tibios.LOG_system.logType = "circular";
- /*
- * Memory segments, their sizes, heaps, and heap sizes
- * In internal and external data memory, we create heaps with names
- * INTERNALHEAP and EXTERNALHEAP, respectively, and platform-independent
- * portions of the application refer to these heaps by their names
- * rather than the names of memory segments they are created in
- * (as not all platforms have DARAM, SDRAM segments).
- */
- /* allocate heap named "INTERNALHEAP" of size 0x0C00 in internal memory */
- tibios.DARAM.createHeap = true;
- tibios.DARAM.heapSize = 0x0C00; /* 3K */
- tibios.DARAM.enableHeapLabel = true;
- tibios.DARAM.heapLabel = prog.extern( "INTERNALHEAP" );
- /* allocate heap named "EXTERNALHEAP" of size 0x4000 in SARAM */
- tibios.SARAM.createHeap = true;
- tibios.SARAM.heapSize = 0x4000; /* 16K */
- tibios.SARAM.enableHeapLabel = true;
- tibios.SARAM.heapLabel = prog.extern( "EXTERNALHEAP" );
- /*
- * Set the size of the application stack. Must be large
- * enough to accomodate worst-case of nested priorities, if any.
- * 55x has 2 stacks. Since default setup is "lock-step" where both XSP
- * (Extended Data Stack Ptr) and XSSP (Extended System Stack Ptr) increment
- * in lock-step, must ensure sufficiently large Sys Stack.
- */
- tibios.MEM.STACKSIZE = 0x0400;
- tibios.MEM.SYSSTACKSIZE = 0x0400;
- /*
- * Set the default segment for the stack allocated by TSK_create().
- */
- tibios.TSK.STACKSEG = tibios.SARAM;
- /*
- * Overriding default section placement
- * assign listed sections to specified memory segments
- */
- /* General */
- /* Set dynamic heap allocation into DARAM */
- tibios.MEM.BIOSOBJSEG = tibios.DARAM; /* Segment for DSP/BIOS Objects */
- tibios.MEM.MALLOCSEG = tibios.DARAM; /* Segment for malloc()/free() */
- /* BIOS data */
- /* BIOS code */
- /* Compiler Sections */