亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xintc_l.c

?? 關于xilinx大學計劃配需教程實驗五源代碼
?? C
字號:
/* $Id: xintc_l.c,v 1.4 2005/01/04 17:48:57 moleres Exp $ *//********************************************************************************       XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"*       AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND*       SOLUTIONS FOR XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE,*       OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,*       APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION*       THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,*       AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE*       FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY*       WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE*       IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR*       REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF*       INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS*       FOR A PARTICULAR PURPOSE.**       (c) Copyright 2002-2004 Xilinx Inc.*       All rights reserved.*******************************************************************************//*****************************************************************************//**** @file xintc_l.c** This file contains low-level driver functions that can be used to access the* device.  The user should refer to the hardware device specification for more* details of the device operation.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -------------------------------------------------------* 1.00b jhl  04/24/02 First release* 1.00c rpm  10/17/03 New release. Support the static vector table created*                     in the xintc_g.c configuration table.* 1.00c rpm  04/09/04 Added conditional compilation around the old handler*                     XIntc_LowLevelInterruptHandler(). This handler will only*                     be include/compiled if XPAR_INTC_SINGLE_DEVICE_ID is*                     defined.* </pre>*******************************************************************************//***************************** Include Files *********************************/#include "xparameters.h"#include "xbasic_types.h"#include "xintc.h"#include "xintc_i.h"/************************** Constant Definitions *****************************//**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Function Prototypes ******************************/static XIntc_Config *LookupConfigByBaseAddress(Xuint32 BaseAddress);/************************** Variable Definitions *****************************//*****************************************************************************//**** Interrupt handler for the low level driver used when there can be no argument* passed to the handler.  In this case, we just use the globally defined device* ID for the interrupt controller. This function is provided mostly for backward* compatibility. The user should use XIntc_DeviceInterruptHandler() if possible.** This function does not support multiple interrupt controller instances to be* handled.** The user must connect this function to the interrupt system such that it is* called whenever the devices which are connected to it cause an interrupt.** @return** None.** @note** The constant XPAR_INTC_SINGLE_DEVICE_ID must be defined for this handler* to be included in the driver compilation.*******************************************************************************/#ifdef XPAR_INTC_SINGLE_DEVICE_IDvoid XIntc_LowLevelInterruptHandler(void){    /*     * A level of indirection here because the L0 interrupt handler needs     * to remain void - no arguments.  So we need the globally defined     * device ID of THE interrupt controller.     */    XIntc_DeviceInterruptHandler((void *)XPAR_INTC_SINGLE_DEVICE_ID);}#endif/*****************************************************************************//**** This function is the primary interrupt handler for the driver.  It must be* connected to the interrupt source such that is called when an interrupt of* the interrupt controller is active. It will resolve which interrupts are* active and enabled and call the appropriate interrupt handler. It uses* the AckBeforeService flag in the configuration data to determine when to* acknowledge the interrupt. Highest priority interrupts are serviced first.* The driver can be configured to service only the highest priority interrupt* or all pending interrupts using the Level 1 XIntc_SetOptions() function or* the Level 0 XIntc_SetIntrSrvOption() function.** This function assumes that an interrupt vector table has been previously* initialized.  It does not verify that entries in the table are valid before* calling an interrupt handler.** @param** DeviceId is the zero-based device ID defined in xparameters.h of the* interrupting interrupt controller. It is used as a direct index into the* configuration data, which contains the vector table for the interrupt* controller. Note that even though the argument is a void pointer, the* value is not a pointer but the actual device ID.  The void pointer type* is necessary to meet the XInterruptHandler typedef for interrupt handlers.** @return** None.** @note** The constant XPAR_INTC_MAX_NUM_INTR_INPUTS must be setup for this to compile.* Interrupt IDs range from 0 - 31 and correspond to the interrupt input signals* for the interrupt controller. XPAR_INTC_MAX_NUM_INTR_INPUTS specifies the* highest numbered interrupt input signal that is used.*******************************************************************************/void XIntc_DeviceInterruptHandler(void *DeviceId) {    Xuint32 IntrStatus;    Xuint32 IntrMask = 1;    int IntrNumber;    XIntc_Config *CfgPtr;      /* Get the configuration data using the device ID */    CfgPtr = &XIntc_ConfigTable[(Xuint32)DeviceId];      /* Get the interrupts that are waiting to be serviced */    IntrStatus = XIntc_mGetIntrStatus(CfgPtr->BaseAddress);      /* Service each interrupt that is active and enabled by checking each     * bit in the register from LSB to MSB which corresponds to an interrupt     * intput signal     */    for (IntrNumber = 0; IntrNumber < XPAR_INTC_MAX_NUM_INTR_INPUTS;         IntrNumber++)    {        if (IntrStatus & 1)        {            XIntc_VectorTableEntry *TablePtr;                  /* If the interrupt has been setup to acknowledge it before             * servicing the interrupt, then ack it             */            if (CfgPtr->AckBeforeService & IntrMask)            {                XIntc_mAckIntr(CfgPtr->BaseAddress, IntrMask);            }                  /* The interrupt is active and enabled, call the interrupt             * handler that was setup with the specified parameter             */            TablePtr = &(CfgPtr->HandlerTable[IntrNumber]);            TablePtr->Handler(TablePtr->CallBackRef);                  /* If the interrupt has been setup to acknowledge it after it             * has been serviced then ack it             */            if ((CfgPtr->AckBeforeService & IntrMask) == 0)            {                XIntc_mAckIntr(CfgPtr->BaseAddress, IntrMask);            }            /*             * If only the highest priority interrupt is to be serviced,             * exit loop and return after servicing interrupt             */            if (CfgPtr->Options == XIN_SVC_SGL_ISR_OPTION)            {                return;            }        }                /* Move to the next interrupt to check */        IntrMask <<= 1;        IntrStatus >>= 1;              /* If there are no other bits set indicating that all interrupts         * have been serviced, then exit the loop         */        if (IntrStatus == 0)        {            break;        }    }}/*****************************************************************************//**** Set the interrupt service option, which can configure the driver so that it* services only a single interrupt at a time when an interrupt occurs, or* services all pending interrupts when an interrupt occurs. The default* behavior when using a Level 1 driver is to service only a single interrupt,* whereas the default behavior when using a Level 0 driver is to service all* outstanding interrupts when an interrupt occurs.** @param** BaseAddress is the unique identifier for a device.** Option is XIN_SVC_SGL_ISR_OPTION if you want only a single interrupt* serviced when an interrupt occurs, or XIN_SVC_ALL_ISRS_OPTION if you want* all pending interrupts serviced when an interrupt occurs.** @return** None.** @note** Note that this function has no effect if the input base address is invalid.*******************************************************************************/void XIntc_SetIntrSvcOption(Xuint32 BaseAddress, int Option){    XIntc_Config *CfgPtr;        CfgPtr = LookupConfigByBaseAddress(BaseAddress);    if (CfgPtr != XNULL)    {        CfgPtr->Options = Option;    }}/*****************************************************************************//**** Register a handler function for a specific interrupt ID.  The vector table* of the interrupt controller is updated, overwriting any previous handler.* The handler function will be called when an interrupt occurs for the given* interrupt ID.** This function can also be used to remove a handler from the vector table* by passing in the XIntc_DefaultHandler() as the handler and XNULL as the* callback reference.** @param** BaseAddress is the base address of the interrupt controller whose vector* table will be modified.** InterruptId is the interrupt ID to be associated with the input handler.** Handler is the function pointer that will be added to the vector table* for the given interrupt ID.  It adheres to the XInterruptHandler signature* found in xbasic_types.h.** CallBackRef is the argument that will be passed to the new handler function* when it is called. This is user-specific.** @return** None.** @note** Note that this function has no effect if the input base address is invalid.*******************************************************************************/void XIntc_RegisterHandler(Xuint32 BaseAddress, int InterruptId,                           XInterruptHandler Handler, void *CallBackRef) {    XIntc_Config *CfgPtr;      CfgPtr = LookupConfigByBaseAddress(BaseAddress);    if (CfgPtr != XNULL)    {        CfgPtr->HandlerTable[InterruptId].Handler = Handler;        CfgPtr->HandlerTable[InterruptId].CallBackRef = CallBackRef;    }}/*****************************************************************************//**** Looks up the device configuration based on the base address of the device.* A table contains the configuration info for each device in the system.** @param    BaseAddress is the unique identifier for a device.** @return** A pointer to the configuration structure for the specified device, or* XNULL if the device was not found.** @note** None.*******************************************************************************/static XIntc_Config *LookupConfigByBaseAddress(Xuint32 BaseAddress){    XIntc_Config *CfgPtr = XNULL;    int i;    for (i=0; i < XPAR_XINTC_NUM_INSTANCES; i++)    {        if (XIntc_ConfigTable[i].BaseAddress == BaseAddress)        {            CfgPtr = &XIntc_ConfigTable[i];            break;        }    }    return CfgPtr;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人精品在线观看| 国产精品第四页| 日韩欧美在线影院| 日韩精品影音先锋| 国产欧美一区二区三区沐欲| aaa欧美色吧激情视频| 国产一区二区毛片| 波多野洁衣一区| 欧美日韩在线播放三区四区| 日韩精品专区在线影院观看 | 91在线视频免费91| 欧美男人的天堂一二区| 久久精品一区二区| 亚洲不卡一区二区三区| 国产风韵犹存在线视精品| 欧美综合色免费| 久久色在线视频| 香蕉乱码成人久久天堂爱免费| 国产精品香蕉一区二区三区| 色视频成人在线观看免| 久久中文字幕电影| 欧美丝袜丝交足nylons图片| 日韩和欧美的一区| 国产69精品一区二区亚洲孕妇| 91香蕉视频污| 久久影院电视剧免费观看| 亚洲精品免费播放| 国产精品白丝jk黑袜喷水| 欧美日韩不卡视频| 亚洲欧美激情在线| 国产高清在线观看免费不卡| 91精品国产麻豆| 一区二区三区精品久久久| 国产精品996| 久久蜜臀中文字幕| 久久69国产一区二区蜜臀| 欧美性色黄大片| 亚洲色欲色欲www在线观看| 国产麻豆一精品一av一免费 | 欧美性感一区二区三区| 亚洲最大成人综合| 高潮精品一区videoshd| 欧美一区在线视频| 午夜久久久久久久久| 91视频精品在这里| 精品成人一区二区三区| 婷婷国产在线综合| 久久精品99国产精品| 欧美伦理电影网| 日本91福利区| 欧美精品一区二区在线播放| 国产做a爰片久久毛片| 国产拍欧美日韩视频二区| 成人avav影音| 亚洲一区自拍偷拍| www国产成人| 91原创在线视频| 天涯成人国产亚洲精品一区av| 91精品欧美久久久久久动漫| 国产精品一区二区91| 色呦呦网站一区| 亚洲四区在线观看| 欧美色图激情小说| 激情综合色播五月| 亚洲女与黑人做爰| 欧美一级二级三级乱码| 国产91对白在线观看九色| 亚洲综合激情小说| 久久久久综合网| 欧美日韩在线精品一区二区三区激情| 麻豆精品视频在线观看| 国产精品国产a| 91精品国产综合久久精品图片| 国产精品一区二区久久精品爱涩| 亚洲精品一二三区| www亚洲一区| 欧美亚一区二区| 成人va在线观看| 日韩电影在线一区| 悠悠色在线精品| 久久久精品免费免费| 欧美色图12p| 99久精品国产| 国产精品一区二区免费不卡| 午夜av一区二区三区| 国产欧美精品一区| 欧美一区二区三区电影| 91国偷自产一区二区三区成为亚洲经典| 日本成人在线网站| 一区二区三区精品视频在线| 中文字幕欧美三区| 精品久久国产字幕高潮| 欧美精品三级在线观看| 色天使色偷偷av一区二区| 国产**成人网毛片九色| 久久99精品国产91久久来源| 亚洲第一狼人社区| 亚洲欧美偷拍卡通变态| 国产日韩精品视频一区| 精品国产亚洲在线| 在线播放中文字幕一区| 欧美在线观看视频一区二区三区| 成人手机在线视频| 国产精品亚洲综合一区在线观看| 免费久久精品视频| 日韩黄色一级片| 五月激情综合色| 天堂蜜桃91精品| 婷婷激情综合网| 日韩av一区二| 青青青伊人色综合久久| 日本成人在线视频网站| 青草国产精品久久久久久| 午夜激情久久久| 日韩av中文字幕一区二区三区| 婷婷久久综合九色国产成人| 日日骚欧美日韩| 免费高清在线一区| 老司机精品视频在线| 极品尤物av久久免费看| 国产精品一区二区视频| 国产sm精品调教视频网站| 成人午夜在线免费| 99riav一区二区三区| 在线视频你懂得一区| 欧美日韩三级视频| 欧美电影精品一区二区| 精品成人在线观看| 国产精品国产a级| 一区二区三区在线观看动漫 | 成人精品视频一区二区三区| 粉嫩高潮美女一区二区三区 | 久久国产精品无码网站| 狠狠色伊人亚洲综合成人| 国产高清精品在线| 97se亚洲国产综合自在线观| 一本大道av一区二区在线播放 | 成人av影院在线| 91捆绑美女网站| 欧美视频三区在线播放| 欧美成人午夜电影| 国产精品污www在线观看| 亚洲美女屁股眼交3| 青青青伊人色综合久久| 国产精品88888| 一本大道久久a久久综合婷婷| 在线成人av网站| 亚洲国产成人私人影院tom| 亚洲小少妇裸体bbw| 精品一区二区精品| 色狠狠综合天天综合综合| 欧美一卡二卡三卡四卡| 国产人成一区二区三区影院| 一区二区三区欧美视频| 日本中文字幕不卡| 粉嫩久久99精品久久久久久夜| 欧美在线视频你懂得| 久久久蜜臀国产一区二区| 亚洲一区在线观看免费观看电影高清| 美腿丝袜亚洲一区| 色一区在线观看| 精品福利一二区| 亚洲成人自拍一区| 国产精品18久久久久久久网站| 欧美在线视频不卡| 国产精品麻豆视频| 韩国精品主播一区二区在线观看 | 日韩欧美国产综合| 亚洲人成网站精品片在线观看| 美女网站一区二区| 欧美伊人久久大香线蕉综合69| 久久久蜜臀国产一区二区| 男女性色大片免费观看一区二区| 91麻豆国产精品久久| 国产午夜亚洲精品午夜鲁丝片| 日韩一区精品视频| 在线精品亚洲一区二区不卡| 国产精品色在线| 韩国精品主播一区二区在线观看 | 亚洲欧洲日韩在线| 国产精品一区免费视频| 日韩一区二区在线看片| 亚洲在线视频一区| 91麻豆swag| 日韩美女视频一区二区| 成人在线视频首页| 久久久久国产一区二区三区四区| 免费一级片91| 日韩一区和二区| 蜜桃精品视频在线| 日韩欧美一级二级| 美女被吸乳得到大胸91| 91麻豆精品国产91久久久| 日韩激情中文字幕| 日韩一区二区在线免费观看| 五月激情综合色| 日韩一区二区在线看| 青青草视频一区| 日韩精品综合一本久道在线视频| 日日嗨av一区二区三区四区|