/*********************************************************************** | |
* Copyright (C) 2014, ZTE Corporation. | |
* | |
* File Name: drvs_pcu.h | |
* File Mark: | |
* Description: pcu control interface declaration. | |
* Others: | |
* Version: v1.0 | |
* Author: limeifeng | |
* Date: 2014-01-22 | |
* | |
* History 1: | |
* Date: | |
* Version: | |
* Author: | |
* Modification: | |
**********************************************************************/ | |
#ifndef DRVS_PCU_H | |
#define DRVS_PCU_H | |
/************************************************************************* | |
* Include files * | |
*************************************************************************/ | |
#include "drvs_general.h" | |
/**************************************************************************** | |
* macro | |
****************************************************************************/ | |
/**************************************************************************** | |
* Type | |
****************************************************************************/ | |
/************************************************************************** | |
* Global Variable * | |
**************************************************************************/ | |
/************************************************************************** | |
* Function Prototypes * | |
**************************************************************************/ | |
/******************************************************************************* | |
* Function: zDrvPcu_InitIntType | |
* Description:ÉèÖþ¹ýPCUµÄÖжÏÔ´Í·ÀàÐͲ¢ÇåÖжϣ¬GPIOĬÈÏΪµçƽ´¥·¢¡£ | |
* Parameters: | |
* Input: | |
* | |
* Output: | |
* | |
* Returns: | |
* | |
* Others:´Ëº¯ÊýÖ»¹©ÖжÏÄ£¿éµ÷Óã¬ÆäËüÄ£¿éÇ벻ҪʹÓÃ! | |
********************************************************************************/ | |
VOID zDrvPcu_InitIntType(VOID); | |
/******************************************************************************* | |
* Function: zDrvPcu_SetWakeInt | |
* Description: | |
* ÉèÖÃij¸öÖжÏÊÇ·ñΪ»½ÐÑÖÐ¶Ï | |
* Parameters: | |
* Input: | |
* intLine: ÖжϺŠ| |
* isWakeInt: ÊÇ·ñΪ»½ÐÑÖжϣ¬0 »½ÐÑÖÐ¶Ï 1 ·Ç»½ÐÑÖÐ¶Ï | |
* Output: | |
* | |
* Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£ | |
* | |
* Others: | |
********************************************************************************/ | |
SINT32 zDrvPcu_SetWakeInt(UINT32 intLine, BOOL isWakeInt); | |
/******************************************************************************* | |
* Function: zDrvPcu_ClrInt | |
* Description:Çå³ýÖжÏÔÚPCUµÄÖжÏ״̬¡£ | |
* Èç¹û¶ÔÓ¦ÖжϾ¹ýPCUÇÒÖжÏÔ´Í·ÀàÐÍΪ±ßÑØ´¥·¢£¬ | |
* ÔòÐèÒªÔÚÖжϻص÷º¯ÊýISRÀïµ÷Óô˺¯ÊýÇå³ýÖжÏ״̬¡£ | |
* Parameters: | |
* Input: | |
* intSel: T_PCUINT_SELö¾ÙÀàÐÍ,ÒªÇå³ýµÄÖжϡ£ | |
* Output: | |
* | |
* Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£ | |
* | |
* Others: | |
********************************************************************************/ | |
//SINT32 zDrvPcu_ClearInt(UINT32 intLine); | |
/******************************************************************************* | |
* Function: zDrvPcu_SetIntLevel | |
* Description: | |
* 1.¶ÔÓÚPCU²à¹Ì¶¨´¥·¢·½Ê½µÄÖжϲ»ÐèÒªµ÷Óô˺¯Êý | |
* ÒÑÔÚÖжÏÄ£¿é³õʼ»¯Ê±ÅäÖᣠ| |
* 2.´Ëº¯ÊýÖ÷Òª¸øÍⲿÖжÏÀàÐÍ¿ÉÉèÖõÄGPIO_EX_INTºÍEX_INT¸ù¾Ý | |
* ʵ¼Ê´¥·¢·½Ê½½øÐÐÅäÖᣠ| |
* Parameters: | |
* Input: | |
* intSel: T_IntPCURegö¾ÙÀàÐÍ | |
* level: PCU²àµÄÖжϴ¥·¢·½Ê½ | |
* Output: | |
* | |
* Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£ | |
* | |
* Others: | |
********************************************************************************/ | |
//SINT32 zDrvPcu_SetIntLevel(UINT32 intLine,T_zDrvIntLineLevel level); | |
/******************************************************************************* | |
* Function: zDrvPcu_Clear8in1Int | |
* Description:EX8IN1_INT0_PCU~EX8IN1_INT7_PCUÐèÒª¶îÍâµ÷Óô˺¯ÊýÇå³ýÖÐ¶Ï | |
* Parameters: | |
* Input: | |
* intSel: T_PCUINT_SELö¾ÙÀàÐÍ,ÒªÇå³ýµÄÖжϡ£ | |
* Output: | |
* | |
* Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERR_INVALID_PARAM¡£ | |
* | |
* Others: | |
********************************************************************************/ | |
//SINT32 zDrvPcu_Clear8in1Int(VOID); | |
#endif /* DRVS_PCU_H */ |