blob: f497362809c6f2b2dcef3ddfa72b5fe7fc7bf944 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2007, ZTE Corporation.
*
* File Name: drvs_uart_ref.h
* File Mark:
* Description:
* Others:
* Version: V0.1
* Author: yangjupei
* Date: 2013-08-26
* History 1:
* Date:
* Version:
* Author:
* Modification:
* History 2:
********************************************************************************/
#ifndef __DRVS_UART_REF_H_
#define __DRVS_UART_REF_H_
#define _UART3_SUPPORT
/****************************************************************************
* Include files
****************************************************************************/
#include "drvs_general.h"
/****************************************************************************
* Types
****************************************************************************/
//define uart ifac type
typedef enum _T_zDrvUart_Port
{
UART_PORT1 =0,
UART_PORT2,
#ifdef _UART3_SUPPORT
UART_PORT3,
#endif
UART_MAX_PORT_NUM
}
T_zDrvUart_Port;
/*******************************************************************************
* Function: zDrvUart_SetInstance
* Description: set uartConfig,and regist uart oprations to dd level
* Parameters:
* Input: N/A
*
* Output: N/A
* Returns: N/A
********************************************************************************/
VOID zDrvUart_SetInstance(VOID);
/*******************************************************************************
* Function: zDrvUart_SetGPIOforUart
* Description: set pins
* Parameters:
* Input: N/A
*
* Output: N/A
* Returns: N/A
********************************************************************************/
VOID zDrvUart_SetGPIOforUart(T_zDrvUart_Port UartNum);
/*******************************************************************************
* Function: zDrvUart_SetGPIOforGPIO
* Description: set pins
* Parameters:
* Input: N/A
*
* Output: N/A
* Returns: N/A
********************************************************************************/
VOID zDrvUart_SetGPIOforGPIO(T_zDrvUart_Port UartNum);
#endif