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

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

?? xintc.c

?? 關于xilinx大學計劃配需教程實驗五源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* $Id: xintc.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.c** Contains required functions for the XIntc driver for the Xilinx Interrupt* Controller. See xintc.h for a detailed description of the driver.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- --------------------------------------------------------* 1.00a ecm  08/16/01 First release* 1.00b jhl  02/21/02 Repartitioned the driver for smaller files* 1.00b jhl  04/24/02 Made LookupConfig global and compressed ack before table*                     in the configuration into a bit mask* 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/23/04 Removed check in XIntc_Connect for a previously connected*                     handler. Always overwrite the vector table handler with*                     the handler provided as an argument.* </pre>*******************************************************************************//***************************** Include Files *********************************/#include "xbasic_types.h"#include "xintc.h"#include "xintc_l.h"#include "xintc_i.h"/************************** Constant Definitions *****************************//**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Variable Definitions *****************************//* * array of masks associated with the bit position, improves performance * in the ISR and acknowledge functions, this table is shared between all * instances of the driver, this table is not statically initialized because * the size of the table is based upon the maximum used interrupt id */Xuint32 XIntc_BitPosMask[XPAR_INTC_MAX_NUM_INTR_INPUTS];/************************** Function Prototypes ******************************/static void StubHandler(void *CallBackRef);/*****************************************************************************//**** Initialize a specific interrupt controller instance/driver. The* initialization entails:** - Initialize fields of the XIntc structure* - Initial vector table with stub function calls* - All interrupt sources are disabled* - Interrupt output is disabled** @param    InstancePtr is a pointer to the XIntc instance to be worked on.* @param    DeviceId is the unique id of the device controlled by this XIntc*           instance.  Passing in a device id associates the generic XIntc*           instance to a specific device, as chosen by the caller or*           application developer.** @return** - XST_SUCCESS if initialization was successful* - XST_DEVICE_IS_STARTED if the device has already been started* - XST_DEVICE_NOT_FOUND if device configuration information was not found for*   a device with the supplied device ID.** @note** None.*******************************************************************************/XStatus XIntc_Initialize(XIntc *InstancePtr, Xuint16 DeviceId){    Xuint8  Id;    XIntc_Config *CfgPtr;    Xuint32 NextBitMask = 1;        XASSERT_NONVOID(InstancePtr != XNULL);    /*     * If the device is started, disallow the initialize and return a status     * indicating it is started.  This allows the user to stop the device     * and reinitialize, but prevents a user from inadvertently initializing     */    if (InstancePtr->IsStarted == XCOMPONENT_IS_STARTED)    {        return XST_DEVICE_IS_STARTED;    }    /*     * Lookup the device configuration in the CROM table. Use this     * configuration info down below when initializing this component.     */    CfgPtr = XIntc_LookupConfig(DeviceId);    if (CfgPtr == XNULL)    {        return XST_DEVICE_NOT_FOUND;    }    /*     * Set some default values     */    InstancePtr->IsReady = 0;    InstancePtr->IsStarted = 0;                 /* not started */    InstancePtr->CfgPtr = CfgPtr;        InstancePtr->CfgPtr->Options = XIN_SVC_SGL_ISR_OPTION;    /*     * save the base address pointer such that the registers of the interrupt     * can be accessed     */    InstancePtr->BaseAddress = CfgPtr->BaseAddress;      /*     * initialize all the data needed to perform interrupt processing for     * each interrupt ID up to the maximum used     */    for (Id = 0; Id < XPAR_INTC_MAX_NUM_INTR_INPUTS; Id++)    {        /* Initalize the handler to point to a stub to handle an interrupt         * which has not been connected to a handler. Only initialize it         * if the handler is 0 or XNullHandler, which means it was not         * initialized statically by the tools/user. Set the callback         * reference to this instance so that unhandled interrupts can be         * tracked.         */        if ((InstancePtr->CfgPtr->HandlerTable[Id].Handler == 0) ||            (InstancePtr->CfgPtr->HandlerTable[Id].Handler == XNullHandler))        {            InstancePtr->CfgPtr->HandlerTable[Id].Handler = StubHandler;        }        InstancePtr->CfgPtr->HandlerTable[Id].CallBackRef = InstancePtr;        /* initialize the bit position mask table such that bit positions         * are lookups only for each interrupt id, with 0 being a special         * case (XIntc_BitPosMask[] = { 1, 2, 4, 8, ... })         */        XIntc_BitPosMask[Id] = NextBitMask;        NextBitMask *= 2;    }    /*     * disable IRQ output signal     * disable all interrupt sources     * acknowledge all sources     */    XIntc_Out32(InstancePtr->BaseAddress + XIN_MER_OFFSET, 0);    XIntc_Out32(InstancePtr->BaseAddress + XIN_IER_OFFSET, 0);    XIntc_Out32(InstancePtr->BaseAddress + XIN_IAR_OFFSET, 0xFFFFFFFF);    /*     * indicate the instance is now ready to use, successfully initialized     */    InstancePtr->IsReady = XCOMPONENT_IS_READY;    return XST_SUCCESS;}/*****************************************************************************//**** Starts the interrupt controller by enabling the output from the controller* to the processor. Interrupts may be generated by the interrupt controller* after this function is called.** It is necessary for the caller to connect the interrupt handler of this* component to the proper interrupt source.** @param    InstancePtr is a pointer to the XIntc instance to be worked on.* @param    Mode determines if software is allowed to simulate interrupts or*           real interrupts are allowed to occur. Note that these modes are*           mutually exclusive. The interrupt controller hardware resets in*           a mode that allows software to simulate interrupts until this mode*           is exited. It cannot be reentered once it has been exited. One of*           the following values should be used for the mode.**           - XIN_SIMULATION_MODE enables simulation of interrupts only*           - XIN_REAL_MODE enables hardware interrupts only** @return** - XST_SUCCESS if the device was started successfully* - XST_FAILURE if simulation mode was specified and it could not be set*   because real mode has already been entered.** @note** Must be called after XIntc initialization is completed.*******************************************************************************/XStatus XIntc_Start(XIntc *InstancePtr, Xuint8 Mode){    Xuint32 MasterEnable = XIN_INT_MASTER_ENABLE_MASK;    /*     * assert the arguments     */    XASSERT_NONVOID(InstancePtr != XNULL);    XASSERT_NONVOID((Mode == XIN_SIMULATION_MODE) || (Mode == XIN_REAL_MODE))    XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);    /*     *     */    if (Mode == XIN_SIMULATION_MODE)    {        if (MasterEnable & XIN_INT_HARDWARE_ENABLE_MASK)        {            return XST_FAILURE;        }    }    else    {        MasterEnable |= XIN_INT_HARDWARE_ENABLE_MASK;    }    /*     * Indicate the instance is ready to be used and is started before we     * enable the device.     */    InstancePtr->IsStarted = XCOMPONENT_IS_STARTED;    XIntc_Out32(InstancePtr->BaseAddress + XIN_MER_OFFSET, MasterEnable);    return XST_SUCCESS;}/*****************************************************************************//**** Stops the interrupt controller by disabling the output from the controller* so that no interrupts will be caused by the interrupt controller.** @param    InstancePtr is a pointer to the XIntc instance to be worked on.** @return** None.** @note** None.*******************************************************************************/void XIntc_Stop(XIntc *InstancePtr){    /*     * assert the arguments     */    XASSERT_VOID(InstancePtr != XNULL);    XASSERT_VOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);    /* stop all interrupts from occurring thru the interrupt controller by     * disabling all interrupts in the MER register     */    XIntc_Out32(InstancePtr->BaseAddress + XIN_MER_OFFSET, 0);    InstancePtr->IsStarted = 0;}/*****************************************************************************//**** Makes the connection between the Id of the interrupt source and the* associated handler that is to run when the interrupt is recognized. The* argument provided in this call as the Callbackref is used as the argument* for the handler when it is called.*

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合九色综合97婷婷| 久久亚洲影视婷婷| 国产黄色精品网站| 亚洲一区二区在线免费观看视频 | 日韩av一区二区三区四区| 26uuu国产一区二区三区| 欧美最新大片在线看| 国产精品影视网| 日韩av一级片| 亚洲一区视频在线观看视频| 欧美国产日韩在线观看| 欧美一区二区观看视频| 色婷婷综合视频在线观看| 国产黑丝在线一区二区三区| 亚洲成av人在线观看| 中文字幕在线不卡| 国产亚洲一区二区在线观看| 制服.丝袜.亚洲.中文.综合| 色94色欧美sute亚洲线路一ni| 国产高清精品久久久久| 日本欧美在线观看| 亚洲在线视频免费观看| 亚洲欧美日韩系列| 国产农村妇女毛片精品久久麻豆| 欧美顶级少妇做爰| 欧美日韩免费视频| 欧美在线视频全部完| 91啪九色porn原创视频在线观看| 国产乱码精品一区二区三区av| 蜜臀久久99精品久久久画质超高清| 一区二区三区四区不卡视频| 亚洲丝袜美腿综合| 国产精品毛片久久久久久| 国产欧美在线观看一区| 久久久精品黄色| 国产日韩欧美精品电影三级在线| 日韩欧美国产一区二区三区 | 精品日韩欧美在线| 91精品国产美女浴室洗澡无遮挡| 欧美三级视频在线播放| 欧美日精品一区视频| 欧美三级日本三级少妇99| 欧美日韩一二三| 欧美日韩色综合| 在线综合亚洲欧美在线视频| 欧美电影影音先锋| 日韩一区二区电影在线| 精品国产乱码久久久久久久久| 欧美一区二区视频观看视频| 日韩亚洲欧美成人一区| 精品三级av在线| 国产调教视频一区| 亚洲天堂免费看| 亚洲一区二区三区不卡国产欧美| 亚洲国产欧美另类丝袜| 日韩av午夜在线观看| 蜜臀av性久久久久av蜜臀妖精| 激情欧美一区二区三区在线观看| 国产一区二区三区四区在线观看| 国产精品亚洲第一| 91麻豆免费在线观看| 欧美午夜片在线观看| 日韩限制级电影在线观看| 久久欧美中文字幕| 亚洲男同1069视频| 午夜精品爽啪视频| 激情伊人五月天久久综合| 国产黄色精品网站| 色天使色偷偷av一区二区| 欧美影视一区在线| 精品久久久久久久人人人人传媒 | 欧美午夜视频网站| 日韩一级大片在线| 国产精品女主播av| 舔着乳尖日韩一区| 国产成人免费xxxxxxxx| 色94色欧美sute亚洲线路二| 日韩一区二区三区免费观看| 中文天堂在线一区| 视频一区免费在线观看| 顶级嫩模精品视频在线看| 欧美在线一二三四区| 久久这里只有精品视频网| 亚洲精品乱码久久久久久黑人| 麻豆国产精品777777在线| 99精品视频在线播放观看| 日韩欧美国产一二三区| 亚洲啪啪综合av一区二区三区| 麻豆视频观看网址久久| 色综合久久精品| 久久精品视频免费观看| 亚洲成人av福利| 成人福利视频在线看| 日韩一区二区视频在线观看| 亚洲手机成人高清视频| 国产一区二区电影| 欧美精品一二三四| 亚洲精品视频在线观看网站| 国产乱理伦片在线观看夜一区| 欧美色图第一页| 亚洲免费在线观看视频| 国产经典欧美精品| 欧美一区二区在线看| 亚洲人吸女人奶水| 国产一区在线观看麻豆| 欧美日韩综合在线| 欧美激情一区二区三区四区| 丝袜诱惑亚洲看片| 色婷婷精品大在线视频| 亚洲精品一区二区三区在线观看| 亚洲精品欧美激情| 国产精品自产自拍| 欧美精品一级二级三级| 亚洲黄色尤物视频| 国产成人在线免费观看| 91精品国产91热久久久做人人| 国产精品国产三级国产| 日本午夜精品视频在线观看| 成人性生交大片免费看视频在线 | 午夜一区二区三区在线观看| 国产精品一线二线三线| 精品国产免费久久| 夜夜精品视频一区二区| 国产乱码精品一品二品| 91精品国产综合久久精品图片| 国产精品久久久久久久久动漫| 奇米色一区二区| 91精品久久久久久久久99蜜臂| 亚洲免费观看高清完整版在线| 国内国产精品久久| 在线精品视频一区二区三四| 精品久久国产老人久久综合| 亚洲大型综合色站| 色婷婷精品久久二区二区蜜臀av| 中文字幕av一区二区三区高 | 亚洲国产wwwccc36天堂| 色呦呦网站一区| 中文字幕av不卡| 成人丝袜18视频在线观看| 国产亚洲自拍一区| 国产精品一区二区黑丝| 欧美成人一级视频| 美日韩一级片在线观看| 在线不卡免费欧美| 亚州成人在线电影| 在线精品视频一区二区三四| 天堂av在线一区| 欧美一级二级三级乱码| 日日摸夜夜添夜夜添国产精品| 欧美日免费三级在线| 亚洲午夜激情网页| 91精品国产综合久久香蕉麻豆| 亚洲第一搞黄网站| 欧美精品九九99久久| 日本亚洲视频在线| 9191成人精品久久| 久久爱www久久做| 26uuu精品一区二区| 国产尤物一区二区| 国产亚洲成年网址在线观看| 国产盗摄女厕一区二区三区| 国产亚洲一区字幕| 国内国产精品久久| 专区另类欧美日韩| 91黄视频在线观看| 亚洲成人在线观看视频| 欧美一区二区国产| 国产精品69久久久久水密桃| 国产精品高清亚洲| 在线观看视频一区| 美女高潮久久久| 欧美国产综合色视频| 色素色在线综合| 日韩精品一级中文字幕精品视频免费观看| 色综合久久久久综合99| 美女视频黄免费的久久 | 99视频精品全部免费在线| 亚洲男同性视频| 3d成人h动漫网站入口| 精品一区二区三区在线播放| 国产欧美在线观看一区| 色国产综合视频| 日韩国产精品大片| 久久免费看少妇高潮| 91在线porny国产在线看| 美女视频网站黄色亚洲| 国产欧美一区二区三区沐欲| 91久久奴性调教| 久久精品国产精品亚洲精品| 欧美精品一区二区三区蜜臀| 在线视频你懂得一区二区三区| 免费观看日韩av| 国产精品免费观看视频| 欧美日韩成人高清| 99r精品视频| 麻豆成人在线观看| 中文字幕日韩一区| 欧美日韩aaa| 粉嫩aⅴ一区二区三区四区 | 亚洲在线视频一区|