lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /*******************************************************************************
|
| 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 | ****************************************************************************/
|
| 34 | typedef 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 | ****************************************************************************/
|
| 47 | extern volatile T_DRV_DEBUG_PRINT_CHANNEL g_debugPrintChnSel;
|
| 48 | /****************************************************************************
|
| 49 | * Function Prototypes
|
| 50 | ****************************************************************************/
|
| 51 | SINT32 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 | #define zDrvDebug_Printf(s...) \
|
| 65 | { \
|
| 66 | if (g_debugPrintChnSel == DRV_DEBUG_PRINT_ZOSS)\
|
| 67 | {\
|
| 68 | zOss_Printf(SUBMDL_HAL, PRINT_LEVEL_NORMAL, s);\
|
| 69 | }\
|
| 70 | else \
|
| 71 | {\
|
| 72 | debug_Print(s);\
|
| 73 | }\
|
| 74 | }
|
| 75 |
|
| 76 | #endif/*_DRVS_IO_H_*/
|
| 77 |
|