lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /***********************************************************************
|
| 2 | * Copyright (C) 2014, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: drvs_pcu.h
|
| 5 | * File Mark:
|
| 6 | * Description: pcu control interface declaration.
|
| 7 | * Others:
|
| 8 | * Version: v1.0
|
| 9 | * Author: limeifeng
|
| 10 | * Date: 2014-01-22
|
| 11 | *
|
| 12 | * History 1:
|
| 13 | * Date:
|
| 14 | * Version:
|
| 15 | * Author:
|
| 16 | * Modification:
|
| 17 |
|
| 18 | **********************************************************************/
|
| 19 | #ifndef DRVS_PCU_H
|
| 20 | #define DRVS_PCU_H
|
| 21 |
|
| 22 | /*************************************************************************
|
| 23 | * Include files *
|
| 24 | *************************************************************************/
|
| 25 | #include "drvs_general.h"
|
| 26 | /****************************************************************************
|
| 27 | * macro
|
| 28 | ****************************************************************************/
|
| 29 |
|
| 30 | /****************************************************************************
|
| 31 | * Type
|
| 32 | ****************************************************************************/
|
| 33 | /**************************************************************************
|
| 34 | * Global Variable *
|
| 35 | **************************************************************************/
|
| 36 |
|
| 37 | /**************************************************************************
|
| 38 | * Function Prototypes *
|
| 39 | **************************************************************************/
|
| 40 | /*******************************************************************************
|
| 41 | * Function: zDrvPcu_InitIntType
|
| 42 | * Description:ÉèÖþ¹ýPCUµÄÖжÏÔ´Í·ÀàÐͲ¢ÇåÖжϣ¬GPIOĬÈÏΪµçƽ´¥·¢¡£
|
| 43 | * Parameters:
|
| 44 | * Input:
|
| 45 | *
|
| 46 | * Output:
|
| 47 | *
|
| 48 | * Returns:
|
| 49 | *
|
| 50 | * Others:´Ëº¯ÊýÖ»¹©ÖжÏÄ£¿éµ÷Óã¬ÆäËüÄ£¿éÇ벻ҪʹÓÃ!
|
| 51 | ********************************************************************************/
|
| 52 | VOID zDrvPcu_InitIntType(VOID);
|
| 53 |
|
| 54 | /*******************************************************************************
|
| 55 | * Function: zDrvPcu_SetWakeInt
|
| 56 | * Description:
|
| 57 | * ÉèÖÃij¸öÖжÏÊÇ·ñΪ»½ÐÑÖжÏ
|
| 58 | * Parameters:
|
| 59 | * Input:
|
| 60 | * intLine: ÖжϺÅ
|
| 61 | * isWakeInt: ÊÇ·ñΪ»½ÐÑÖжϣ¬0 »½ÐÑÖÐ¶Ï 1 ·Ç»½ÐÑÖжÏ
|
| 62 | * Output:
|
| 63 | *
|
| 64 | * Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£
|
| 65 | *
|
| 66 | * Others:
|
| 67 | ********************************************************************************/
|
| 68 | SINT32 zDrvPcu_SetWakeInt(UINT32 intLine, BOOL isWakeInt);
|
| 69 |
|
| 70 | /*******************************************************************************
|
| 71 | * Function: zDrvPcu_ClrInt
|
| 72 | * Description:Çå³ýÖжÏÔÚPCUµÄÖжÏ״̬¡£
|
| 73 | * Èç¹û¶ÔÓ¦ÖжϾ¹ýPCUÇÒÖжÏÔ´Í·ÀàÐÍΪ±ßÑØ´¥·¢£¬
|
| 74 | * ÔòÐèÒªÔÚÖжϻص÷º¯ÊýISRÀïµ÷Óô˺¯ÊýÇå³ýÖжÏ״̬¡£
|
| 75 | * Parameters:
|
| 76 | * Input:
|
| 77 | * intSel: T_PCUINT_SELö¾ÙÀàÐÍ,ÒªÇå³ýµÄÖжϡ£
|
| 78 | * Output:
|
| 79 | *
|
| 80 | * Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£
|
| 81 | *
|
| 82 | * Others:
|
| 83 | ********************************************************************************/
|
| 84 | //SINT32 zDrvPcu_ClearInt(UINT32 intLine);
|
| 85 |
|
| 86 |
|
| 87 | /*******************************************************************************
|
| 88 | * Function: zDrvPcu_SetIntLevel
|
| 89 | * Description:
|
| 90 | * 1.¶ÔÓÚPCU²à¹Ì¶¨´¥·¢·½Ê½µÄÖжϲ»ÐèÒªµ÷Óô˺¯Êý
|
| 91 | * ÒÑÔÚÖжÏÄ£¿é³õʼ»¯Ê±ÅäÖá£
|
| 92 | * 2.´Ëº¯ÊýÖ÷Òª¸øÍⲿÖжÏÀàÐÍ¿ÉÉèÖõÄGPIO_EX_INTºÍEX_INT¸ù¾Ý
|
| 93 | * ʵ¼Ê´¥·¢·½Ê½½øÐÐÅäÖá£
|
| 94 | * Parameters:
|
| 95 | * Input:
|
| 96 | * intSel: T_IntPCURegö¾ÙÀàÐÍ
|
| 97 | * level: PCU²àµÄÖжϴ¥·¢·½Ê½
|
| 98 | * Output:
|
| 99 | *
|
| 100 | * Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERROR¡£
|
| 101 | *
|
| 102 | * Others:
|
| 103 | ********************************************************************************/
|
| 104 | //SINT32 zDrvPcu_SetIntLevel(UINT32 intLine,T_zDrvIntLineLevel level);
|
| 105 |
|
| 106 | /*******************************************************************************
|
| 107 | * Function: zDrvPcu_Clear8in1Int
|
| 108 | * Description:EX8IN1_INT0_PCU~EX8IN1_INT7_PCUÐèÒª¶îÍâµ÷Óô˺¯ÊýÇå³ýÖжÏ
|
| 109 | * Parameters:
|
| 110 | * Input:
|
| 111 | * intSel: T_PCUINT_SELö¾ÙÀàÐÍ,ÒªÇå³ýµÄÖжϡ£
|
| 112 | * Output:
|
| 113 | *
|
| 114 | * Returns: ³É¹¦·µ»ØDRV_SUCCESS£¬Ê§°Ü·µ»ØDRV_ERR_INVALID_PARAM¡£
|
| 115 | *
|
| 116 | * Others:
|
| 117 | ********************************************************************************/
|
| 118 | //SINT32 zDrvPcu_Clear8in1Int(VOID);
|
| 119 |
|
| 120 | #endif /* DRVS_PCU_H */
|