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

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

?? xgpio.c

?? 本程序用xilinx EDK9.1運行
?? C
字號:
/* $Id: xgpio.c,v 1.2 2006/02/17 21:33:42 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 - 2005 Xilinx Inc.*       All rights reserved.*******************************************************************************//*** @file xgpio.c** The implementation of the XGpio component's basic functionality. See xgpio.h* for more information about the component.** @note** None** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.00a rmm  02/04/02 First release* 2.00a jhl  12/16/02 Update for dual channel and interrupt support* 2.01a jvb  12/13/05 I changed Initialize() into CfgInitialize(), and made*                     CfgInitialize() take a pointer to a config structure*                     instead of a device id. I moved Initialize() into*                     xgpio_sinit.c, and had Initialize() call CfgInitialize()*                     after it retrieved the config structure using the device*                     id. I removed include of xparameters.h along with any*                     dependencies on xparameters.h and the _g.c config table.** </pre>******************************************************************************//***************************** Include Files ********************************/#include "xgpio.h"#include "xstatus.h"/************************** Constant Definitions ****************************//**************************** Type Definitions ******************************//***************** Macros (Inline Functions) Definitions ********************//************************** Variable Definitions ****************************//************************** Function Prototypes *****************************//****************************************************************************//*** Initialize the XGpio instance provided by the caller based on the* given configuration data.** Nothing is done except to initialize the InstancePtr.** @param InstancePtr is a pointer to an XGpio instance. The memory the pointer*        references must be pre-allocated by the caller. Further calls to*        manipulate the component through the XGpio API must be made with this*        pointer.** @param Config is a reference to a structure containing information about*        a specific GPIO device. This function initializes an InstancePtr object*        for a specific device specified by the contents of Config. This*        function can initialize multiple instance objects with the use of*        multiple calls giving different Config information on each call.** @param EffectiveAddr is the device base address in the virtual memory address*        space. The caller is responsible for keeping the address mapping*        from EffectiveAddr to the device physical base address unchanged*        once this function is invoked. Unexpected errors may occur if the*        address mapping changes after this function is called. If address*        translation is not used, use Config->BaseAddress for this parameters,*        passing the physical address instead.** @return** - XST_SUCCESS           Initialization was successfull.** @note** None.******************************************************************************/XStatus XGpio_CfgInitialize(XGpio *InstancePtr, XGpio_Config *Config,                            Xuint32 EffectiveAddr){    /*     * Assert arguments     */    XASSERT_NONVOID(InstancePtr != XNULL);    /*     * Set some default values.     */    InstancePtr->BaseAddress = EffectiveAddr;    InstancePtr->InterruptPresent = Config->InterruptPresent;    InstancePtr->IsDual = Config->IsDual;    /*     * Indicate the instance is now ready to use, initialized without error     */    InstancePtr->IsReady = XCOMPONENT_IS_READY;    return(XST_SUCCESS);}/****************************************************************************//*** Set the input/output direction of all discrete signals for the specified* GPIO channel.** @param InstancePtr is a pointer to an XGpio instance to be worked on.* @param Channel contains the channel of the GPIO (1 or 2) to operate on.* @param DirectionMask is a bitmask specifying which discretes are input and*        which are output. Bits set to 0 are output and bits set to 1 are input.** @return** None.** @note** The hardware must be built for dual channels if this function is used* with any channel other than 1.  If it is not, this function will assert.******************************************************************************/void XGpio_SetDataDirection(XGpio *InstancePtr, unsigned Channel,                            Xuint32 DirectionMask){    XASSERT_VOID(InstancePtr != XNULL);    XASSERT_VOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);    XASSERT_VOID((Channel == 1)  ||                 ((Channel == 2) &&                  (InstancePtr->IsDual == XTRUE)));    XGpio_mWriteReg(InstancePtr->BaseAddress,                    ((Channel - 1) * XGPIO_CHAN_OFFSET) + XGPIO_TRI_OFFSET,                    DirectionMask);}/****************************************************************************//*** Read state of discretes for the specified GPIO channnel.** @param InstancePtr is a pointer to an XGpio instance to be worked on.* @param Channel contains the channel of the GPIO (1 or 2) to operate on.** @return Current copy of the discretes register.** @note** The hardware must be built for dual channels if this function is used* with any channel other than 1.  If it is not, this function will assert.******************************************************************************/Xuint32 XGpio_DiscreteRead(XGpio *InstancePtr, unsigned Channel){    XASSERT_NONVOID(InstancePtr != XNULL);    XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);    XASSERT_NONVOID((Channel == 1)  ||                    ((Channel == 2) &&                     (InstancePtr->IsDual == XTRUE)));    return XGpio_mReadReg(InstancePtr->BaseAddress,                          ((Channel - 1) * XGPIO_CHAN_OFFSET) +                          XGPIO_DATA_OFFSET);}/****************************************************************************//*** Write to discretes register for the specified GPIO channel.** @param InstancePtr is a pointer to an XGpio instance to be worked on.* @param Channel contains the channel of the GPIO (1 or 2) to operate on.* @param Data is the value to be written to the discretes register.** @return** None.** @note** The hardware must be built for dual channels if this function is used* with any channel other than 1.  If it is not, this function will assert.* See also XGpio_DiscreteSet() and XGpio_DiscreteClear().******************************************************************************/void XGpio_DiscreteWrite(XGpio *InstancePtr, unsigned Channel, Xuint32 Data){    XASSERT_VOID(InstancePtr != XNULL);    XASSERT_VOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);    XASSERT_VOID((Channel == 1)  ||                 ((Channel == 2) &&                  (InstancePtr->IsDual == XTRUE)));    XGpio_mWriteReg(InstancePtr->BaseAddress,                    ((Channel - 1) * XGPIO_CHAN_OFFSET) + XGPIO_DATA_OFFSET,                    Data);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码一区二区免费| 制服视频三区第一页精品| 香蕉av福利精品导航| 久久精品夜色噜噜亚洲aⅴ| 欧美性大战久久久| 韩国午夜理伦三级不卡影院| 亚洲图片有声小说| 久久综合色婷婷| 日韩精品中午字幕| 91精品在线麻豆| 51精品久久久久久久蜜臀| 亚洲最新在线观看| 亚洲男人的天堂在线观看| 中文成人av在线| 国产精品久久综合| 肉肉av福利一精品导航| 五月天欧美精品| 亚洲成人自拍网| 免费的成人av| 国产一区视频在线看| 国产福利视频一区二区三区| 国产不卡一区视频| av午夜一区麻豆| 99国产一区二区三精品乱码| 色综合久久久久综合| 在线观看视频91| 欧美精品日日鲁夜夜添| 91精品综合久久久久久| 2017欧美狠狠色| 日韩美女啊v在线免费观看| 亚洲色图在线播放| 午夜精品免费在线观看| 九九九精品视频| 色噜噜狠狠一区二区三区果冻| 在线不卡中文字幕播放| 精品毛片乱码1区2区3区| 综合久久久久综合| 琪琪一区二区三区| 91原创在线视频| 欧美一区二区三区视频在线| 久久午夜老司机| 亚洲综合免费观看高清完整版在线| 日本aⅴ免费视频一区二区三区 | 色婷婷久久久久swag精品| 91麻豆精品国产91久久久资源速度| 久久久久久久久久看片| 婷婷久久综合九色综合绿巨人| 欧美精品1区2区3区| 亚洲欧美综合网| 国产91在线看| 久久综合九色综合久久久精品综合| 亚洲伊人色欲综合网| 一本在线高清不卡dvd| 国产女主播一区| 国产高清视频一区| 精品捆绑美女sm三区| 免费成人小视频| 911精品产国品一二三产区| 亚洲色图19p| 99精品欧美一区| 亚洲日本丝袜连裤袜办公室| 国产91在线观看| 国产精品久久一级| 国产丶欧美丶日本不卡视频| 2020日本不卡一区二区视频| 经典三级在线一区| 久久久不卡网国产精品二区| 黄色日韩网站视频| 国产三级欧美三级日产三级99 | 99精品桃花视频在线观看| 欧美极品xxx| 亚洲人成7777| fc2成人免费人成在线观看播放| 国产精品国产三级国产专播品爱网| 国产一级精品在线| 国产精品久久久久影视| 色视频成人在线观看免| 日韩在线a电影| 国产色一区二区| 在线亚洲免费视频| 免费亚洲电影在线| 国产精品网友自拍| 色猫猫国产区一区二在线视频| 亚洲午夜影视影院在线观看| 制服丝袜中文字幕亚洲| 国产aⅴ精品一区二区三区色成熟| 国产精品亲子伦对白| 欧美日韩综合一区| 国产精品一二一区| 亚洲成人黄色影院| 国产精品国产自产拍高清av| 91国产免费观看| 国产精品综合网| 视频一区二区三区中文字幕| 国产午夜亚洲精品午夜鲁丝片| 欧美优质美女网站| 国产99久久久久久免费看农村| 日日夜夜精品视频免费| 中文字幕在线一区| 精品成人一区二区三区四区| 日本高清不卡aⅴ免费网站| 国产麻豆精品一区二区| 免费av成人在线| 久久色视频免费观看| 亚洲私人黄色宅男| 久久综合国产精品| 欧美一区二区三区四区五区| 欧美色大人视频| 国产不卡在线播放| 国产美女一区二区三区| 免费av网站大全久久| 首页亚洲欧美制服丝腿| 亚洲精品ww久久久久久p站| 国产精品视频九色porn| 久久久久久97三级| 精品久久久久久亚洲综合网| 日韩午夜在线观看视频| 7777精品伊人久久久大香线蕉经典版下载| 99久久er热在这里只有精品15| 不卡一区中文字幕| 91丨porny丨首页| 欧美中文字幕一区二区三区 | 久久精品免费在线观看| 日韩一区二区高清| 久久综合色一综合色88| 亚洲国产精品高清| 亚洲情趣在线观看| 亚洲一区二区精品久久av| 婷婷成人激情在线网| 免费成人结看片| 国产999精品久久| 欧美视频一区二区三区在线观看| 欧美精品高清视频| 久久欧美中文字幕| 亚洲精品五月天| 老司机午夜精品| 91在线精品一区二区| 色94色欧美sute亚洲线路二| 亚洲大片在线观看| 亚洲成人免费电影| 国产精品一区二区在线观看不卡 | 国产精品一级片| 91福利在线导航| 精品日韩一区二区| 亚洲最大成人网4388xx| 国产成人在线免费| 7777精品伊人久久久大香线蕉完整版 | 国产精品三级视频| 麻豆一区二区在线| 91首页免费视频| 国产视频在线观看一区二区三区 | 国产精品私人影院| 肉色丝袜一区二区| 欧美在线免费播放| 久久女同精品一区二区| 性欧美疯狂xxxxbbbb| 94色蜜桃网一区二区三区| 久久久一区二区三区捆绑**| 亚洲成av人片一区二区梦乃 | 成人丝袜18视频在线观看| 久久精品男人的天堂| 国产九色精品成人porny| 亚洲精品一区二区三区香蕉| 亚洲国产综合91精品麻豆 | 91视频在线看| 亚洲女人的天堂| 91视频在线看| 一区二区三区中文字幕电影| 91在线精品一区二区三区| 中文字幕中文字幕在线一区 | 久久男人中文字幕资源站| 日本v片在线高清不卡在线观看| 欧美性大战久久久久久久蜜臀| 亚洲图片有声小说| 欧美精品视频www在线观看| 日本va欧美va精品发布| 亚洲精品一线二线三线| 成人综合婷婷国产精品久久蜜臀| 国产精品入口麻豆原神| 91国偷自产一区二区开放时间 | 日韩欧美国产综合一区| 精品在线一区二区| 中文字幕一区二区三中文字幕 | 色婷婷av久久久久久久| 欧美aⅴ一区二区三区视频| 亚洲精品一区二区在线观看| 蜜乳av一区二区| 亚洲国产精品av| 欧美日韩视频一区二区| 精品写真视频在线观看| 亚洲欧美日韩国产综合在线| 91精品国产综合久久蜜臀| www.在线欧美| 国产一区二区三区综合| 亚洲激情一二三区| 欧美v日韩v国产v| 日韩欧美久久久| 99麻豆久久久国产精品免费| 美女在线视频一区| 亚洲精品成人悠悠色影视|