亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
青青草97国产精品免费观看无弹窗版 | 国产伦精一区二区三区| 国产91精品在线观看| 欧美日韩高清在线| 中日韩免费视频中文字幕| 日韩av一区二| 色噜噜狠狠成人中文综合| 久久久久久久久蜜桃| 奇米四色…亚洲| 91丨porny丨蝌蚪视频| 久久久久国产精品人| 视频一区二区三区中文字幕| 91论坛在线播放| 国产亚洲成年网址在线观看| 日本欧美肥老太交大片| 欧美性受xxxx黑人xyx性爽| 亚洲欧洲av在线| 国产精品99精品久久免费| 日韩三级电影网址| 婷婷成人综合网| 欧美日韩免费一区二区三区 | 亚洲精品一区二区三区福利 | 欧美大片拔萝卜| 丝袜美腿亚洲色图| 欧美日韩亚洲综合在线| 亚洲成人资源网| 欧美综合色免费| 樱花草国产18久久久久| 色一区在线观看| 亚洲男同1069视频| av日韩在线网站| 亚洲日本成人在线观看| 91久久精品一区二区三区| 亚洲日本va在线观看| 在线观看一区日韩| 亚洲一本大道在线| 91精品麻豆日日躁夜夜躁| 奇米精品一区二区三区在线观看一| 欧美日韩精品二区第二页| 亚洲一区精品在线| 欧美日韩小视频| 美日韩一区二区| 久久精品夜色噜噜亚洲aⅴ| 国产aⅴ精品一区二区三区色成熟| 久久在线免费观看| av中文字幕不卡| 亚洲免费电影在线| 欧美精品tushy高清| 麻豆成人综合网| 久久久久国产精品厨房| 99视频有精品| 婷婷国产v国产偷v亚洲高清| 欧美mv日韩mv国产| 北条麻妃一区二区三区| 亚洲成人在线免费| 久久亚洲春色中文字幕久久久| 岛国一区二区在线观看| 一区二区三区中文在线| 日韩欧美一区二区在线视频| 国产呦萝稀缺另类资源| 亚洲青青青在线视频| 日韩午夜在线影院| 高清国产一区二区三区| 亚洲va在线va天堂| 国产亚洲一区字幕| 欧美性大战久久久| 国产一区二区三区美女| 亚洲午夜影视影院在线观看| 久久先锋资源网| 欧美天堂一区二区三区| 国产91丝袜在线播放| 亚洲综合激情小说| wwwwww.欧美系列| 欧美亚洲自拍偷拍| 国产成人啪免费观看软件| 午夜欧美在线一二页| 久久精品一区四区| 欧美日韩一二三| 99久久久无码国产精品| 激情综合五月婷婷| 亚洲国产sm捆绑调教视频 | 不卡的av网站| 奇米综合一区二区三区精品视频| 中文字幕视频一区| 久久久久久久久久久黄色| 欧美少妇性性性| 成人av电影在线网| 国产美女在线观看一区| 婷婷激情综合网| 亚洲图片激情小说| 国产精品美女www爽爽爽| 精品黑人一区二区三区久久| 欧美日韩成人综合在线一区二区| 成人一区二区三区| 狠狠色伊人亚洲综合成人| 天堂蜜桃91精品| 亚洲一区二区影院| 成人免费在线播放视频| 国产日产亚洲精品系列| 精品美女一区二区| 日韩一区二区三区av| 欧美日韩国产乱码电影| 色婷婷综合久久久中文字幕| 国产成人8x视频一区二区| 激情久久久久久久久久久久久久久久| 亚洲成a人片在线不卡一二三区 | 视频一区国产视频| 午夜精品福利视频网站| 亚洲一区二区三区四区的| 综合分类小说区另类春色亚洲小说欧美| 精品日韩一区二区三区免费视频| 欧美另类一区二区三区| 欧美三级电影在线看| 欧美色图12p| 欧美日韩成人在线| 欧美色视频一区| 欧美日韩亚洲高清一区二区| 欧美三级资源在线| 欧美日韩国产中文| 制服.丝袜.亚洲.另类.中文 | 青椒成人免费视频| 人人狠狠综合久久亚洲| 美女在线视频一区| 国产精品一区二区久激情瑜伽| 国产在线精品免费av| 国产精品一区二区在线播放 | 91精品国产一区二区三区蜜臀 | 国产精品久线在线观看| 国产精品超碰97尤物18| 亚洲精品国产a久久久久久| 亚洲一卡二卡三卡四卡| 日本不卡免费在线视频| 韩国女主播成人在线| 成人精品国产一区二区4080| 色悠久久久久综合欧美99| 欧美日本高清视频在线观看| 日韩欧美久久久| 中文字幕av不卡| 一区二区三区四区精品在线视频| 午夜欧美大尺度福利影院在线看 | 香蕉久久一区二区不卡无毒影院| 青青青伊人色综合久久| 国产一区美女在线| 93久久精品日日躁夜夜躁欧美| 欧美在线一区二区| 精品国产123| 亚洲欧洲日韩综合一区二区| 午夜精品久久久久久久久| 国产一区二区免费在线| 在线视频国产一区| 精品福利一区二区三区免费视频| 亚洲天堂精品在线观看| 日本91福利区| 色香蕉久久蜜桃| 日韩精品影音先锋| 亚洲精品视频在线| 久久精品99国产国产精| 色欧美88888久久久久久影院| 91精品国产综合久久香蕉麻豆| 国产精品免费久久久久| 日韩avvvv在线播放| 91丨porny丨首页| 精品国产一区二区在线观看| 一个色综合av| 国产传媒日韩欧美成人| 欧美中文字幕一二三区视频| 久久久一区二区三区捆绑**| 亚洲综合色网站| 福利电影一区二区| 欧美一级视频精品观看| 亚洲精品美腿丝袜| 成人午夜又粗又硬又大| 亚洲精品一线二线三线| 一区二区三区色| av午夜精品一区二区三区| 久久久久久久久99精品| 奇米综合一区二区三区精品视频| 在线视频一区二区三区| 国产精品久久久久7777按摩| 国产精品中文字幕日韩精品| 91精品国产综合久久久蜜臀粉嫩| 91麻豆福利精品推荐| 日韩黄色小视频| 久久一二三国产| 国产日韩欧美精品综合| 青青草精品视频| 欧美日韩亚洲高清一区二区| 亚洲人成伊人成综合网小说| 国产在线精品一区二区不卡了| 欧美一区午夜精品| 一区二区三区日韩| 色综合久久综合网97色综合| 国产精品久久免费看| 成人激情小说乱人伦| 国产精品你懂的在线| 不卡的av网站| 综合激情网...| 一本高清dvd不卡在线观看| 亚洲色图在线看| 色综合夜色一区|