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

📄 cameradbg.h

📁 Microsoft WinCE 6.0 BSP FINAL release source code for use with the i.MX27ADS TO2 WCE600_FINAL_MX27_S
💻 H
字号:
//
// Copyright (C) 2003-2004, MOTOROLA, INC. All Rights Reserved
// THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
// BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
// MOTOROLA, INC.
//
//------------------------------------------------------------------------------
//
// Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
//
//------------------------------------------------------------------------------
//
// File: cameradbg.h
//
// Debug zone definitions for the camera driver
//
//------------------------------------------------------------------------------

#ifndef __CAMERADBG_H__
#define __CAMERADBG_H__

//------------------------------------------------------------------------------
// Defines

#ifndef DEBUG
#define DEBUG                // always turn on debug output
#endif // DEBUG

#ifdef DEBUG

#define DEBUGMASK(bit)       (1 << (bit))

// Debug zone bit positions
#define ZONEID_ERROR      0
#define ZONEID_WARN       1
#define ZONEID_INIT       2
#define ZONEID_FUNCTION   3
#define ZONEID_IOCTL      4
#define ZONEID_DEVICE     5

// Debug zone masks
#define ZONEMASK_ERROR    (1<<ZONEID_ERROR)
#define ZONEMASK_WARN     (1<<ZONEID_WARN)
#define ZONEMASK_INIT     (1<<ZONEID_INIT)
#define ZONEMASK_FUNCTION (1<<ZONEID_FUNCTION)
#define ZONEMASK_IOCTL    (1<<ZONEID_IOCTL)
#define ZONEMASK_DEVICE   (1<<ZONEID_DEVICE)

// Debug zone args to DEBUGMSG
#ifdef ZONE_ERROR
#undef ZONE_ERROR 
#endif // ZONE_ERROR

#define ZONE_ERROR        DEBUGZONE(ZONEID_ERROR)
#define ZONE_WARN         DEBUGZONE(ZONEID_WARN)
#define ZONE_INIT         DEBUGZONE(ZONEID_INIT)
#define ZONE_FUNCTION     DEBUGZONE(ZONEID_FUNCTION)
#define ZONE_IOCTL        DEBUGZONE(ZONEID_IOCTL)
#define ZONE_DEVICE       DEBUGZONE(ZONEID_DEVICE)

#ifdef CAMINTERFACE
DBGPARAM dpCurSettings = {
    _T("CAM"), 
    {
        _T("Errors"), _T("Warnings"), _T("Init"), _T("Function"), 
        _T("Ioctl"), _T("Device"), _T("Activity"), _T(""),
        _T(""),_T(""),_T(""),_T(""),
        _T(""),_T(""),_T(""),_T("") 
    },
    ZONEMASK_ERROR | ZONEMASK_WARN 
    // | ZONEMASK_INIT | ZONEMASK_IOCTL | ZONEMASK_FUNCTION | ZONEMASK_DEVICE
}; 
#else
extern DBGPARAM dpCurSettings;
#endif // CAMINTERFACE

#endif // DEBUG

//------------------------------------------------------------------------------
// Types


//------------------------------------------------------------------------------
// Functions

#endif   // __CAMERADBG_H_

⌨️ 快捷键说明

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