⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appresources.c

📁 G723.1在DM642上的实现代码
💻 C
字号:
/*
 *  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.10.00.11 04-30-03 (swat-d15)" */
/*
 *  ======== 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 configuration 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 the BIOS config (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 BIOS config 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( stsTime0 );
UTL_stsDefine( stsTime1 );
UTL_stsDefine( stsTime2 );
UTL_stsDefine( stsTime3 );
UTL_stsDefine( stsTime4 );
UTL_stsDefine( stsTime5 );
UTL_stsDefine( stsTime6 );
UTL_stsDefine( stsTime7 );
UTL_stsDefine( stsTime8 );
UTL_stsDefine( stsTime9 );

⌨️ 快捷键说明

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