亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
韩国女主播一区| 亚洲日本免费电影| 在线不卡一区二区| 91黄视频在线观看| www.亚洲免费av| 成人动漫中文字幕| www.亚洲免费av| 91麻豆精东视频| 欧美写真视频网站| 欧美日韩一区二区在线观看| 欧美性xxxxx极品少妇| 欧美系列日韩一区| 91精品国产综合久久久久久久 | 免费视频最近日韩| 秋霞av亚洲一区二区三| 日本aⅴ精品一区二区三区| 麻豆成人久久精品二区三区红 | 亚洲国产精品精华液2区45| 国产亚洲欧美日韩俺去了| 久久网站热最新地址| 国产亚洲福利社区一区| 亚洲欧洲国产日韩| 亚洲第一福利视频在线| 秋霞电影网一区二区| 国产成人在线免费| 99免费精品视频| 欧美日韩高清在线| 欧美成人性福生活免费看| 国产亚洲精品超碰| 亚洲成人在线网站| 国产乱码一区二区三区| 97久久超碰国产精品电影| 欧美日韩三级在线| 久久久久久久精| 综合久久一区二区三区| 午夜精品在线视频一区| 国产精品888| 欧美日韩精品一区二区三区| 精品国产伦一区二区三区观看体验| 精品国一区二区三区| 亚洲天堂久久久久久久| 久久99精品久久久久久国产越南 | 99精品视频免费在线观看| 欧美日韩在线播放三区四区| 欧美精品一区二区久久久| 亚洲精品视频在线观看网站| 久久精品国产99国产精品| 91麻豆精品在线观看| 精品国产在天天线2019| 亚洲一区中文日韩| 粉嫩av一区二区三区粉嫩| 5566中文字幕一区二区电影 | 亚洲视频中文字幕| 美女一区二区在线观看| 在线免费精品视频| 国产精品福利av| 国产一区福利在线| 9191国产精品| 一区二区三区在线免费播放| 国产美女精品在线| 精品理论电影在线观看 | 亚洲动漫第一页| 成人深夜福利app| 久久免费午夜影院| 麻豆免费看一区二区三区| 欧美三级一区二区| 一区二区三区在线观看动漫| 国产1区2区3区精品美女| 欧美一级在线免费| 免费成人性网站| 欧美日韩一区在线观看| 亚洲视频免费看| 91在线码无精品| ...av二区三区久久精品| 粉嫩一区二区三区在线看| 久久天天做天天爱综合色| 久久精品99国产精品日本| 91精品国产综合久久蜜臀| 日韩av电影免费观看高清完整版 | 国产欧美日本一区视频| 精品一区二区在线免费观看| 日韩亚洲欧美在线| 免费成人小视频| 日韩欧美中文字幕一区| 久久精品国产秦先生| 精品国产乱子伦一区| 国产一区二区三区av电影 | 久久中文娱乐网| 久久 天天综合| 精品国产乱码久久久久久浪潮 | 精品国产3级a| 国产一区视频导航| 久久久三级国产网站| 国产iv一区二区三区| 国产精品久久久久久久久免费丝袜| 成人一区二区三区在线观看| 中文字幕一区二区三区在线不卡 | 一区二区三区**美女毛片| 日本大香伊一区二区三区| 天天色天天爱天天射综合| 日韩午夜在线影院| 国产成人亚洲综合a∨婷婷| 国产精品免费av| 欧美日韩视频专区在线播放| 美腿丝袜亚洲一区| 国产精品欧美精品| 69堂成人精品免费视频| 精品系列免费在线观看| 国产精品每日更新在线播放网址| 在线免费不卡电影| 国产在线不卡视频| 亚洲激情中文1区| 日韩一区二区免费在线观看| 国产成人日日夜夜| 亚洲精品久久久蜜桃| 日韩欧美国产一区在线观看| 成人91在线观看| 男女男精品视频| 国产精品你懂的| 欧美一区二区三区系列电影| 丁香婷婷综合色啪| 亚洲国产成人av| 国产精品国产三级国产aⅴ原创| 欧美丝袜第三区| 成人国产精品免费观看动漫| 日韩精品国产精品| 亚洲视频狠狠干| 久久精品亚洲乱码伦伦中文| 在线不卡a资源高清| 99久久99久久久精品齐齐| 麻豆中文一区二区| 亚洲国产精品一区二区久久| 久久九九久久九九| 日韩一级二级三级| 欧美亚洲综合网| 成人污视频在线观看| 国产曰批免费观看久久久| 亚洲成人在线免费| 亚洲免费观看在线观看| 国产精品国模大尺度视频| 久久久久久电影| 亚洲精品一区二区三区影院| 欧美三片在线视频观看 | 亚洲福利视频导航| 中文字幕日韩欧美一区二区三区| 精品国产凹凸成av人导航| 欧美午夜电影网| 色婷婷综合久久久久中文| 99精品一区二区三区| www.99精品| 国产成人午夜电影网| 国产一区二区三区香蕉| 久久精品国产亚洲aⅴ| 免费在线看成人av| 久久国产精品99精品国产| 免费观看成人av| 麻豆精品在线观看| 黄页视频在线91| 国内精品在线播放| 国产成人在线看| 99久久婷婷国产综合精品| 成人国产视频在线观看| 99久久久国产精品| 91久久精品一区二区三| 色噜噜狠狠一区二区三区果冻| 97成人超碰视| 欧美婷婷六月丁香综合色| 欧美视频在线一区二区三区| 欧美日韩另类一区| 91精品视频网| 久久综合中文字幕| 欧美极品少妇xxxxⅹ高跟鞋 | 8x福利精品第一导航| 在线播放91灌醉迷j高跟美女| 在线播放亚洲一区| 欧美v日韩v国产v| 中文字幕免费一区| 亚洲裸体xxx| 偷拍一区二区三区| 国产乱淫av一区二区三区| 99国产精品久久久久| 69精品人人人人| 亚洲国产精品av| 亚洲午夜精品网| 国产在线麻豆精品观看| 99视频超级精品| 欧美一区欧美二区| 国产精品麻豆99久久久久久| 亚洲综合丝袜美腿| 国产精品一二三区| 色8久久精品久久久久久蜜| 欧美精品久久一区| 国产亚洲精品aa| 天天做天天摸天天爽国产一区| 精品一区二区三区在线播放| 一本色道久久综合亚洲精品按摩| 欧美一区2区视频在线观看| 中文字幕免费观看一区| 日本三级亚洲精品| 91免费看片在线观看|