?? appresources.c
字號:
/*
* Copyright 2002 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.
*
*/
/*
* ======== appResources.c ========
*
* Definition of appllication-wide global variables.
*/
#include <std.h>
#include <utl.h>
#include "appResources.h"
/*
* Definition of STS-based objects for use with UTL_sts*() functions.
*
* UTL_Sts objects are an extension of standard STS objects, so that
* UTL_stsStart/UTL_stsStop, UTL_stsPeriod and UTL_stsPhase functions are
* supported. They measure execution time, period between periodic executions
* of a point in code, and phase between two periodic points, by placing
* the appropriate result to the specified STS object.
*
* Assuming the BIOS database (CDB) has some STS objects defined (and the
* default configuration for RF5 defines stsTime0, stsTime1, ..., stsTime9
* STS objects for convenience), the only requirement to use a UTL_sts*()
* function in a module is to include <utl.h>; the argument(s) to UTL_sts*()
* functions are names of STS objects from CDB (for instance,
* UTL_stsPeriod( stsTime4 ); or UTL_stsStart( mySts );
*
* However, it is necessary to define the extended STS objects, i.e.
* UTL_Sts objects, somewhere in the application. It is most convenient
* to define all such STS objects in one file such as this one.
* We use UTL_stsDefine() macro for every STS object
* in the CDB that we intend to use with UTL_sts*() functions:
* UTL_stsDefine( stsTime4 );
* UTL_stsDefine( mySts ); etc.
*
* UTL_stsDefine() is a macro, which expands to nothing if UTL_sts*
* functionality is disabled. Otherwise, the macro defines a variable
* and provides initial values for its fields.
*/
UTL_stsDefine( stsCycleTime );
UTL_stsDefine( stsWaitTime );
UTL_stsDefine( stsExeTimeChDiff );
UTL_stsDefine( stsExeTimeChCombo );
UTL_stsDefine( stsExeTimeChPass );
UTL_stsDefine( stsExeTimeChRotate );
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -