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

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

?? xuartlite.h

?? ucos2在macroblaze上的移植代碼
?? H
字號:
/* $Id: xuartlite.h,v 1.10 2002/07/24 22:35:28 robertm 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 Xilinx Inc.*       All rights reserved.******************************************************************************//****************************************************************************//**** @file xuartlite.h** This component contains the implementation of the XUartLite component which is* the driver for the Xilinx UART Lite device. This UART is a minimal hardware* implementation with minimal features.  Most of the features, including baud* rate, parity, and number of data bits are only configurable when the hardware* device is built, rather than at run time by software.** The device has 16 byte transmit and receive FIFOs and supports interrupts.* The device does not have any way to disable the receiver such that the* receive FIFO may contain unwanted data.  The FIFOs are not flushed when the* driver is initialized, but a function is provided to allow the user to* reset the FIFOs if desired.** The driver defaults to no interrupts at initialization such that interrupts* must be enabled if desired. An interrupt is generated when the transmit FIFO* transitions from having data to being empty or when any data is contained in* the receive FIFO.** In order to use interrupts, it's necessary for the user to connect the driver* interrupt handler, XUartLite_InterruptHandler, to the interrupt system of the* application.  This function does not save and restore the processor context* such that the user must provide it.  Send and receive handlers may be set for* the driver such that the handlers are called when transmit and receive* interrupts occur.  The handlers are called from interrupt context and are* designed to allow application specific processing to be performed.** The functions, XUartLite_Send and XUartLite_Recv, are provided in the driver* to allow data to be sent and received. They are designed to be used in* polled or interrupt modes.** The driver provides a status for each received byte indicating any parity* frame or overrun error. The driver provides statistics which allow visibility* into these errors.** <b>RTOS Independence</b>** This driver is intended to be RTOS and processor independent.  It works* with physical addresses only.  Any needs for dynamic memory management,* threads or thread mutual exclusion, virtual memory, or cache control must* be satisfied by the layer above this driver.** @note** The driver is partitioned such that a minimal implementation may be used.* More features require additional files to be linked in.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.00a ecm  08/31/01 First release* 1.00b jhl  02/21/02 Repartitioned the driver for smaller files* </pre>******************************************************************************/#ifndef XUARTLITE_H /* prevent circular inclusions */#define XUARTLITE_H /* by using protection macros *//***************************** Include Files ********************************/#include "xbasic_types.h"#include "xstatus.h"/************************** Constant Definitions ****************************//**************************** Type Definitions ******************************//** * Callback function.  The first argument is a callback reference passed in by * the upper layer when setting the callback functions, and passed back to the * upper layer when the callback is invoked. * The second argument is the ByteCount which is the number of bytes that * actually moved from/to the buffer provided in the _Send/_Receive call. */typedef void (*XUartLite_Handler)(void *CallBackRef, unsigned int ByteCount);/** * Statistics for the XUartLite driver */typedef struct{    Xuint32 TransmitInterrupts;     /**< Number of transmit interrupts */    Xuint32 ReceiveInterrupts;      /**< Number of receive interrupts */    Xuint32 CharactersTransmitted;  /**< Number of characters transmitted */    Xuint32 CharactersReceived;     /**< Number of characters received */    Xuint32 ReceiveOverrunErrors;   /**< Number of receive overruns */    Xuint32 ReceiveParityErrors;    /**< Number of receive parity errors */    Xuint32 ReceiveFramingErrors;   /**< Number of receive framing errors */} XUartLite_Stats;/** * The following data type is used to manage the buffers that are handled * when sending and receiving data in the interrupt mode. It is intended * for internal use only. */typedef struct{    Xuint8 *NextBytePtr;    unsigned int RequestedBytes;    unsigned int RemainingBytes;} XUartLite_Buffer;/** * This typedef contains configuration information for the device. */typedef struct{    Xuint16 DeviceId;       /**< Unique ID  of device */    Xuint32 RegBaseAddr;    /**< Register base address */    Xuint32 BaudRate;       /**< Fixed baud rate */    Xuint8  UseParity;      /**< Parity generator enabled when XTRUE */    Xuint8  ParityOdd;      /**< Parity generated is odd when XTRUE, even when                                 XFALSE */    Xuint8  DataBits;       /**< Fixed data bits */} XUartLite_Config;/** * The XUartLite driver instance data. The user is required to allocate a * variable of this type for every UART Lite device in the system. A pointer * to a variable of this type is then passed to the driver API functions. */typedef struct{    XUartLite_Stats Stats;      /* Component Statistics */    Xuint32 RegBaseAddress;     /* Base address of registers */    Xuint32 IsReady;            /* Device is initialized and ready */    XUartLite_Buffer SendBuffer;    XUartLite_Buffer ReceiveBuffer;    XUartLite_Handler RecvHandler;    void *RecvCallBackRef;          /* Callback reference for recv handler */    XUartLite_Handler SendHandler;    void *SendCallBackRef;          /* Callback reference for send handler */} XUartLite;/***************** Macros (Inline Functions) Definitions ********************//************************** Function Prototypes *****************************//* * Required functions, in file xuart.c */XStatus XUartLite_Initialize(XUartLite *InstancePtr, Xuint16 DeviceId);void XUartLite_ResetFifos(XUartLite *InstancePtr);unsigned int XUartLite_Send(XUartLite *InstancePtr, Xuint8 *DataBufferPtr,                            unsigned int NumBytes);unsigned int XUartLite_Recv(XUartLite *InstancePtr, Xuint8 *DataBufferPtr,                            unsigned int NumBytes);Xboolean XUartLite_IsSending(XUartLite *InstancePtr);XUartLite_Config *XUartLite_LookupConfig(Xuint16 DeviceId);/* * Functions for statistics, in file xuartlite_stats.c */void XUartLite_GetStats(XUartLite *InstancePtr, XUartLite_Stats *StatsPtr);void XUartLite_ClearStats(XUartLite *InstancePtr);/* * Functions for self-test, in file xuartlite_selftest.c */XStatus XUartLite_SelfTest(XUartLite *InstancePtr);/* * Functions for interrupts, in file xuartlite_intr.c */void XUartLite_EnableInterrupt(XUartLite *InstancePtr);void XUartLite_DisableInterrupt(XUartLite *InstancePtr);void XUartLite_SetRecvHandler(XUartLite *InstancePtr, XUartLite_Handler FuncPtr,                              void *CallBackRef);void XUartLite_SetSendHandler(XUartLite *InstancePtr, XUartLite_Handler FuncPtr,                              void *CallBackRef);void XUartLite_InterruptHandler(XUartLite *InstancePtr);#endif            /* end of protection macro */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久影院| 六月丁香婷婷久久| 热久久免费视频| 成人激情动漫在线观看| 欧美精品亚洲一区二区在线播放| 久久蜜桃av一区二区天堂| 亚洲综合色噜噜狠狠| 国产毛片精品视频| 欧美日韩久久不卡| 综合激情成人伊人| 国产精品综合一区二区| 欧美日韩极品在线观看一区| 国产精品成人在线观看| 极品少妇一区二区| 欧美日韩一区二区三区免费看 | 欧美日韩一区二区三区四区 | 亚洲欧美日韩国产另类专区| 国产高清无密码一区二区三区| 欧美巨大另类极品videosbest | 成人18精品视频| 亚洲精品一线二线三线 | 亚洲国产成人私人影院tom | 亚洲少妇中出一区| 精品一区二区三区在线播放| 在线观看三级视频欧美| 国产精品乱码久久久久久| 韩国三级电影一区二区| 日韩欧美国产综合在线一区二区三区| 亚洲黄色小视频| av电影一区二区| 国产精品免费视频观看| 成人一区二区三区在线观看| 久久综合九色综合欧美就去吻| 男女视频一区二区| 91.麻豆视频| 蜜臀久久99精品久久久久久9| 欧美日韩国产精选| 免费三级欧美电影| 欧美va亚洲va| 国产成人在线视频网址| 国产亚洲人成网站| 丁香另类激情小说| 亚洲另类春色国产| 欧美日韩一区高清| 日韩国产欧美在线观看| 欧美一区二区三区色| 裸体歌舞表演一区二区| 久久久久久久久久久久久女国产乱| 国产剧情一区在线| 国产精品国产三级国产aⅴ中文| 99久久99久久精品免费看蜜桃| 亚洲乱码日产精品bd| 欧美日韩精品一区二区三区 | 亚洲午夜久久久久中文字幕久| 91国在线观看| 五月天一区二区三区| 日韩免费高清视频| 成人午夜私人影院| 亚洲综合久久av| 欧美α欧美αv大片| 成人性视频免费网站| 亚洲狼人国产精品| 欧美一区二区三区在线观看| 免费在线观看视频一区| 国产欧美日韩精品一区| 欧美性高清videossexo| 久热成人在线视频| 中文字幕在线不卡视频| 欧美一区二区在线免费观看| 久久成人麻豆午夜电影| 亚洲日本va在线观看| 欧美一区二区啪啪| 成人ar影院免费观看视频| 全部av―极品视觉盛宴亚洲| 中文字幕免费不卡在线| 制服丝袜中文字幕一区| 国产91在线|亚洲| 日韩激情视频在线观看| 欧美国产97人人爽人人喊| 欧美日本在线一区| 成人国产精品免费网站| 日日夜夜免费精品| 中文字幕在线不卡| 日韩一区二区精品葵司在线| 97久久精品人人做人人爽| 日韩精品一二区| 亚洲少妇屁股交4| 久久九九久久九九| 欧美一区二区三区播放老司机| 97se亚洲国产综合自在线| 蜜桃视频在线观看一区二区| 一区二区三区日本| 久久精品男人天堂av| 日韩一区二区三区视频在线观看| 91蝌蚪国产九色| 国产91精品露脸国语对白| 欧美aaaaaa午夜精品| 亚洲国产欧美在线| 亚洲一区二区三区四区在线观看 | 亚洲伊人伊色伊影伊综合网| 久久精品亚洲精品国产欧美 | 欧美久久久久久久久中文字幕| 99国产精品国产精品久久| 国产精品一色哟哟哟| 麻豆精品精品国产自在97香蕉| 午夜亚洲国产au精品一区二区| 亚洲精品中文在线| 亚洲三级免费观看| 国产精品盗摄一区二区三区| 国产亚洲精品7777| 日本一区二区三区在线不卡| 2024国产精品| 久久免费看少妇高潮| 日韩女优毛片在线| 欧美大胆一级视频| 欧美一卡二卡在线| 91精品国产综合久久精品麻豆| 在线观看日韩精品| 欧美日韩国产高清一区二区| 欧美亚洲一区二区在线| 欧美色涩在线第一页| 欧美色网站导航| 欧美日本一区二区在线观看| 欧美在线不卡一区| 色中色一区二区| 欧美日本视频在线| 91麻豆精品国产| 精品国产免费人成在线观看| 91精品在线一区二区| 欧美一区二区在线不卡| 精品蜜桃在线看| 国产女同互慰高潮91漫画| 日韩美女精品在线| 一区二区免费在线| 无码av免费一区二区三区试看| 午夜激情一区二区三区| 蜜桃视频在线观看一区| 狠狠色丁香婷婷综合| 国产大陆a不卡| 色综合一个色综合亚洲| 欧美伦理视频网站| 欧美大片在线观看一区| 亚洲国产精品黑人久久久| 成人欧美一区二区三区视频网页 | 亚洲影视在线观看| 免费观看在线综合| 成人精品国产免费网站| 色婷婷香蕉在线一区二区| 日韩欧美中文字幕公布| 久久精品欧美一区二区三区麻豆| 1000部国产精品成人观看| 亚洲午夜一区二区三区| 国产麻豆午夜三级精品| 日本久久精品电影| 欧美tickling网站挠脚心| 国产目拍亚洲精品99久久精品| 国产一区二区三区四| 一本久久a久久精品亚洲| 欧美电影一区二区| 国产精品久久久久影院色老大| 五月天中文字幕一区二区| 国产不卡视频在线观看| 欧美精品久久一区二区三区| 久久久www成人免费毛片麻豆| 一区二区三区高清不卡| 国产在线视频一区二区三区| 91网站在线播放| 精品理论电影在线| 香蕉久久一区二区不卡无毒影院| 国产一区二区三区日韩| 欧美日韩高清一区二区| 国产欧美日韩精品在线| 视频精品一区二区| 一本到高清视频免费精品| 日韩欧美三级在线| 依依成人精品视频| 99精品久久99久久久久| 欧美xxxxxxxx| 性久久久久久久久| 91国偷自产一区二区开放时间 | 国产精品12区| 日韩一区二区在线免费观看| 中文字幕日韩欧美一区二区三区| 伦理电影国产精品| 欧美电影一区二区三区| 一二三四区精品视频| 国产.欧美.日韩| 欧美电影免费观看高清完整版在线 | 欧美三电影在线| 自拍偷拍欧美精品| 国产电影一区在线| 26uuu欧美日本| 激情文学综合插| 日韩一级免费观看| 水野朝阳av一区二区三区| 欧美在线免费播放| 亚洲欧美一区二区三区极速播放| 高清不卡在线观看| 国产亚洲一二三区| 成人手机电影网|