noncopytcptestee.tci

来自「在dm642开发平台上实现dsp与主机之间的通信实例」· TCI 代码 · 共 45 行

TCI
45
字号
/*
 *  ============================================================
 *  (c) Copyright 2007 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  ============================================================
 *  Automated Revision Information
 *  Changed: $Date: 2007-10-15 15:13:14 -0700 (Mon, 15 Oct 2007) $
 *  Revision: $Revision: 4244 $
*/
/*
 *  ======== nonCopyTCPTestee.tci ========
 *
 *  Non-copy TCP testee common configuration script
 */
utils.importFile('ndk.tci');

/* The following DSP/BIOS Features are enabled.  */
bios.enableMemoryHeaps(prog);
bios.enableRealTimeAnalysis(prog);
bios.enableRtdx(prog);
bios.enableTskManager(prog);

bios.tskNdkStackTest 			= bios.TSK.create("tskNdkStackTest");
bios.tskNdkStackTest.fxn 		= prog.extern("StackTest");
bios.tskNdkStackTest.stackSize 		= 0x1000;
bios.tskNdkStackTest.priority 		= 0x5;

/*  Load the THRLOAD module configuration file */
var THRLOAD = new Object();
THRLOAD.useIdle = true;  /* Use IDL thread to periodically update benchmarks */
utils.importFile( "thrload.tci" );

// LOG object to display CPU load & other key data
var logTrace      = bios.LOG.create( "logTrace" );
logTrace.comment  = "default LOG object for application messages";
logTrace.logType  = "circular";
logTrace.bufLen   = 1024;

// Check that stack size is big enough for the application
if (bios.MEM.STACKSIZE < 0x1000) {
    bios.MEM.STACKSIZE += 0x1000;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?