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

📄 trc.h

📁 SEED的VPM642测试程序-板级支持库
💻 H
字号:
/*
 *  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.
 *  
 */
/* "@(#) DSP/BIOS 4.90.270 12-18-03 (barracuda-o04)" */
/*
 *  ======== trc.h ========
 *
 */

#ifndef TRC_
#define TRC_

#ifdef __cplusplus
extern "C" {
#endif

/*
 *  ======== Trace Event Classes ========
 */
#define TRC_LOGSWI	0x0001
#define TRC_LOGPRD	0x0002
#define TRC_LOGCLK	0x0004

#define TRC_LOGTSK	0x0008		/* Reserved for SPOX */
#define TRC_LOGSWO	0x0010		/* Reserved for SPOX */

#define TRC_STSSWI	0x0020
#define TRC_STSPRD	0x0040
#define TRC_STSPIP	0x0080
#define TRC_STSHWI	0x0100

#define TRC_STSTSK	0x0200		/* Reserved for SPOX */
#define TRC_STSSWO	0x0400		/* Reserved for SPOX */
#define TRC_USER0	0x0800
#define TRC_USER1	0x1000
#define TRC_USER2	0x2000
#define TRC_GBLTARG	0x4000		/* set/cleared by target */
#define TRC_GBLHOST	0x8000		/* set/cleared by host */

/*
 *  ======== TRC_disable ========
 *  Clear the trace bits specified by mask.
 */
extern Void TRC_disable(Uns mask);

/*
 *  ======== TRC_enable ========
 *  Set the trace bits specified by mask.
 */
extern Void TRC_enable(Uns mask);

/*
 *  ======== TRC_query ========
 *  Returns 0 if all the trace bits specified by mask are set and both
 *  TRC_GBLTRG and TRC_GBLHOST are set; otherwise TRC_query returns a
 *  non-zero value.
 *
 *  For example,
 *	if (TRC_query(TRC_USER0 | TRC_USER1) == 0) {
 *	    LOG_printf("both user0 and user1 trace is enabled");
 *	}
 *
 */
extern Int TRC_query(Uns mask);

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif /* TRC_ */

⌨️ 快捷键说明

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