blob: 63d2d38d16287460067ca32398b07a1391d4172f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*******************************************************************************
2 * Copyright (C) 2007, ZTE Corporation.
3 *
4 * File Name:
5 * File Mark:
6 * Description:
7 * Others:
8 * Version: 1.0
9 * Author: geanfeng
10 * Date: 2013-09-25
11 * History 1:
12 * Date:
13 * Version:
14 * Author:
15 * Modification:
16 * History 2:
17 ********************************************************************************/
18
19#ifndef _DRVS_DEBUG_H_
20#define _DRVS_DEBUG_H_
21
22/****************************************************************************
23* Include files
24****************************************************************************/
25#include "drvs_general.h"
26
27/****************************************************************************
28* Macros
29****************************************************************************/
30
31/****************************************************************************
32* Types
33****************************************************************************/
34typedef enum _T_DRV_DEBUG_PRINT_CHANNEL
35{
36 DRV_DEBUG_PRINT_ZOSS,
37 DRV_DEBUG_PRINT_DCC
38}T_DRV_DEBUG_PRINT_CHANNEL;
39
40/****************************************************************************
41* Constants
42****************************************************************************/
43
44/****************************************************************************
45* Global Variables
46****************************************************************************/
47extern volatile T_DRV_DEBUG_PRINT_CHANNEL g_debugPrintChnSel;
48/****************************************************************************
49* Function Prototypes
50****************************************************************************/
51SINT32 debug_Print(const VOID *pFormat, ... );
52/*******************************************************************************
53* Function:zDrvDebug_Printf
54* Description: log´òÓ¡
55* Parameters:
56* pFormat:¸ñʽ»¯×Ö·û´®
57* Output:
58*
59* Returns:
60*
61*
62* Others:
63********************************************************************************/
64#ifdef _OS_WIN
65#define zDrvDebug_Printf
66#else
67#define zDrvDebug_Printf(s...) \
68{ \
69 if (g_debugPrintChnSel == DRV_DEBUG_PRINT_ZOSS)\
70 {\
71 zOss_Printf(SUBMDL_HAL, PRINT_LEVEL_NORMAL, s);\
72 }\
73 else \
74 {\
75 debug_Print(s);\
76 }\
77}
78#endif
79
80#endif/*_DRVS_IO_H_*/
81