lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /***********************************************************************
|
| 2 | * Copyright (C) 2013, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: drvs_config.h
|
| 5 | * File Mark:
|
| 6 | * Description: drv configurate declaration.
|
| 7 | * Others:
|
| 8 | * Version: v1.0
|
| 9 | * Author: geanfeng
|
| 10 | * Date: 2013-04-03
|
| 11 |
|
| 12 | **********************************************************************/
|
| 13 | #ifndef _DRVS_CONFIG_H_
|
| 14 | #define _DRVS_CONFIG_H_
|
| 15 |
|
| 16 |
|
| 17 | /*************************************************************************
|
| 18 | * Include files *
|
| 19 | *************************************************************************/
|
| 20 |
|
| 21 | /****************************************************************************
|
| 22 | * Base Type
|
| 23 | ****************************************************************************/
|
| 24 | #define DRV_CONFIG(x) DRV_CONFIG_##x
|
| 25 |
|
| 26 | #ifdef DRV_CONFIG_C_DEFINE
|
| 27 | #define DRV_CONFIG_DEFINE(x) int DRV_CONFIG_##x;
|
| 28 | #else
|
| 29 | #ifdef DRV_CONFIG_WRITE_ENABLE
|
| 30 | #define DRV_CONFIG_DEFINE(x) extern int DRV_CONFIG_##x;
|
| 31 | #else
|
| 32 | #define DRV_CONFIG_DEFINE(x) extern const int DRV_CONFIG_##x;
|
| 33 | #endif
|
| 34 | #endif
|
| 35 | /**************************************************************************
|
| 36 | * Types *
|
| 37 | **************************************************************************/
|
| 38 | /*
|
| 39 | * INT
|
| 40 | */
|
| 41 |
|
| 42 |
|
| 43 | /*
|
| 44 | * TIMER
|
| 45 | */
|
| 46 |
|
| 47 | /*
|
| 48 | * USB
|
| 49 | */
|
| 50 | DRV_CONFIG_DEFINE(USB_HIGHSPEED)
|
| 51 | DRV_CONFIG_DEFINE(USB_VNIC_HALF_DL_BUFF_CNT)
|
| 52 | DRV_CONFIG_DEFINE(USB_IP_4BYTE_ALIGNMENT)
|
| 53 | DRV_CONFIG_DEFINE(USB_VNIC_ADJUST_MAXPKTNUM)
|
| 54 |
|
| 55 | /*
|
| 56 | * I2C
|
| 57 | */
|
| 58 | DRV_CONFIG_DEFINE(USE_PMIC_I2C)
|
| 59 | DRV_CONFIG_DEFINE(USE_I2C0)
|
| 60 | DRV_CONFIG_DEFINE(USE_I2C1)
|
| 61 |
|
| 62 | /*
|
| 63 | * FLASH TYPE
|
| 64 | */
|
| 65 | DRV_CONFIG_DEFINE(USE_NAND)
|
| 66 | DRV_CONFIG_DEFINE(USE_SPI_NAND)
|
| 67 | DRV_CONFIG_DEFINE(USE_MMC)
|
| 68 | DRV_CONFIG_DEFINE(USE_PART)
|
| 69 |
|
| 70 | /*
|
| 71 | * UART
|
| 72 | */
|
| 73 | DRV_CONFIG_DEFINE(USE_UART_AUTOBAUD)
|
| 74 | /**************************************************************************
|
| 75 | * Global Variable *
|
| 76 | **************************************************************************/
|
| 77 |
|
| 78 | /**************************************************************************
|
| 79 | * Function Prototypes *
|
| 80 | **************************************************************************/
|
| 81 | /****************************************************************************
|
| 82 | * Function: zDrvConfig_Initiate
|
| 83 | * Description: initialize drv configuration;
|
| 84 | * Parameters:
|
| 85 | * Input:
|
| 86 | * Output:
|
| 87 | *
|
| 88 | * Returns:
|
| 89 | * SINT32
|
| 90 | *
|
| 91 | * Others:
|
| 92 | ***************************************************************************/
|
| 93 | SINT32 zDrvConfig_Initiate(VOID);
|
| 94 |
|
| 95 | #endif /*_DRVS_CONFIG_H_*/
|