📄 appinstrument.tci
字号:
/*
* Copyright 2003 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.
*
*/
/* "@(#) ReferenceFrameworks 2.20.00.08 07-18-03 (swat-f02)" */
/*
* ======== appInstrument.tci ========
*
* DSP/BIOS objects for instrumentation and debugging: LOG and STS
*/
/*
* Create a LOG object logTrace of size 128
*/
var logTrace = tibios.LOG.create( "logTrace" );
logTrace.comment = "default LOG object for application messages";
logTrace.bufLen = 128;
/*
* Change the size of the LOG_system object to a value large enough
*/
tibios.LOG_system.bufLen = 128;
/*
* Set CLK timer interrupt to go off at default 1000us / interrupt.
* Set it higher if your algo disables interrupts for long periods. This
* ensures STS benchmarks with CLK_gethtime will return correct results.
*/
tibios.CLK.MICROSECONDS = 1000.0;
/*
* STS objects for use with UTL_sts* functions:
* stsTime0, stsTime1, ... -- a total of appStsTimeCount objects
*/
for (i = 0; i < APPSTSTIMECOUNT; i++) {
var stsTime = tibios.STS.create( "stsTime" + i );
stsTime.comment = "STS object " + i + " for execution time measurements";
stsTime.unitType = "High resolution time based";
stsTime.operation = "A * x";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -