📄 debug.h
字号:
//-----------------------------------------------------------------------------
// $Header:
// (C) Copyright 2001 Philips Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of Philips Corporation and is provided pursuant to a Software
// License Agreement. This code is the proprietary information of Philips
// Corporation and is confidential in nature. Its use and dissemination by
// any party other than Philips Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME: %M%
//
// DESCRIPTION: Function for the silicon demodulator TDA10093
//
// DOCUMENT REF: <References to specification or other documents related to
// this module>
//
// NOTES: %I% %G% %U%
//-----------------------------------------------------------------------------
//
#ifndef __DEBUG_H__
#define __DEBUG_H__
/*
* INCLUDE
******************************************************************************
*/
#include "..\..\Include\tmhalFEtypes.h"
/*
* PROTOTYPES
******************************************************************************
*/
void Trace(UInt16 wMsgId, UInt32 uValue);
/*
* EXTERNALS
******************************************************************************
*/
//#define BSL_DEBUG
//#define BSL_DEBUG_ALGO
//#define BSL_DEBUG_FREQ
//#define BSL_DEBUG_AGCRA
#define DEBUG_LINERETURN_ID 0x0000
#define DEBUG_OBJECTUSED_ID 0x0001
#define DEBUG_RESET_ID 0x0002
#define DEBUG_FREQUENCY_ID 0x8003
#define DEBUG_STARTALGO_ID 0x0004
#define DEBUG_WAIT_AGCA_CONV 0x8005
#define DEBUG_DECREMENT_AGCRA 0x0006
#define DEBUG_WAIT_AGCN_CONV 0x8007
#define DEBUG_WAIT_LOCK_DEMOD_ID 0x8008
#define DEBUG_WAIT_RXSIG_DEMOD_ID 0x8009
#define DEBUG_WAIT_ID 0x800a
#define DEBUG_AFCCORRECTION_ID 0x800b
#define DEBUG_ALGOSUCCESS_ID 0x000c
#define DEBUG_ALGOFAILED_ID 0x000d
#define DEBUG_AGCRAVAL_ID 0x800e
#ifdef BSL_DEBUG
#define SEND_TRACE(x,y) Trace(x,y)
#define GET_SEMAPHORE(pObject) \
{ if(pObject->IsUsed == True) \
SEND_TRACE(pObject->uHwId, DEBUG_OBJECTUSED_ID, 0);\
else \
pObject->IsUsed = True; \
}
#define RELEASE_SEMAPHORE(pObject) pObject->IsUsed = False
#else
#define SEND_TRACE(x,y,z)
#define GET_SEMAPHORE(pObject)
#define RELEASE_SEMAPHORE(pObject)
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -