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

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

?? xtmrctr.h

?? ucos2在macroblaze上的移植代碼
?? H
字號:
/* $Id: xtmrctr.h,v 1.10 2002/05/03 17:13:57 linnj 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 xtmrctr.h** The Xilinx timer/counter component. This component supports the Xilinx* timer/counter. More detailed description of the driver operation can* be found in the xtmrctr.c file.** The Xilinx timer/counter supports the following features:*   - Polled mode.*   - Interrupt driven mode*   - enabling and disabling specific timers*   - PWM operation** The driver does not currently support the PWM operation of the device.** The timer counter operates in 2 primary modes, compare and capture. In* either mode, the timer counter may count up or down, with up being the* default.** Compare mode is typically used for creating a single time period or multiple* repeating time periods in the auto reload mode, such as a periodic interrupt.* When started, the timer counter loads an initial value, referred to as the* compare value, into the timer counter and starts counting down or up. The* timer counter expires when it rolls over/under depending upon the mode of* counting. An external compare output signal may be configured such that a* pulse is generated with this signal when it hits the compare value.** Capture mode is typically used for measuring the time period between* external events. This mode uses an external capture input signal to cause* the value of the timer counter to be captured. When started, the timer* counter loads an initial value, referred to as the compare value,* The timer can be configured to either cause an interrupt when the count* reaches the compare value in compare mode or latch the current count* value in the capture register when an external input is asserted* in capture mode. The external capture input can be enabled/disabled using the* XTmrCtr_SetOptions function. While in compare mode, it is also possible to* drive an external output when the compare value is reached in the count* register The external compare output can be enabled/disabled using the* XTmrCtr_SetOptions function.** <b>Interrupts</b>** It is the responsibility of the application to connect the interrupt* handler of the timer/counter to the interrupt source. The interrupt* handler function, XTmrCtr_InterruptHandler, is visible such that the user* can connect it to the interrupt source. Note that this interrupt handler* does not provide interrupt context save and restore processing, the user* must perform this processing.** The driver services interrupts and passes timeouts to the upper layer* software through callback functions. The upper layer software must register* its callback functions during initialization. The driver requires callback* functions for timers.** @note* The default settings for the timers are:*   - Interrupt generation disabled*   - Count up mode*   - Compare mode*   - Hold counter (will not reload the timer)*   - External compare output disabled*   - External capture input disabled*   - Pulse width modulation disabled*   - Timer disabled, waits for Start function to be called* <br><br>* A timer counter device may contain multiple timer counters. The symbol* XTC_DEVICE_TIMER_COUNT defines the number of timer counters in the device.* The device currently contains 2 timer counters.* <br><br>* 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.** <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* </pre>*******************************************************************************/#ifndef XTMRCTR_H /* prevent circular inclusions */#define XTMRCTR_H /* by using protection macros *//***************************** Include Files *********************************/#include "xbasic_types.h"#include "xstatus.h"#include "xtmrctr_l.h"/************************** Constant Definitions *****************************//** * @name Configuration options * These options are used in XTmrCtr_SetOptions() and XTmrCtr_GetOptions() * @{ *//** * Used to configure the timer counter device. * <pre> * XTC_ENABLE_ALL_OPTION     Enables all timer counters at once. * XTC_DOWN_COUNT_OPTION     Configures the timer counter to count down from *                           start value, the default is to count up. * XTC_CAPTURE_MODE_OPTION   Configures the timer to capture the timer counter *                           value when the external capture line is asserted. *                           The default mode is compare mode. * XTC_INT_MODE_OPTION       Enables the timer counter interrupt output. * XTC_AUTO_RELOAD_OPTION    In compare mode, configures the timer counter to *                           reload from the compare value. The default mode *                           causes the timer counter to hold when the compare *                           value is hit. *                           In capture mode, configures the timer counter to *                           not hold the previous capture value if a new event *                           occurs. The default mode cause the timer counter *                           to hold the capture value until recognized. * XTC_EXT_COMPARE_OPTION    Enables the external compare output signal. * </pre> */#define XTC_ENABLE_ALL_OPTION    0x00000040UL#define XTC_DOWN_COUNT_OPTION    0x00000020UL#define XTC_CAPTURE_MODE_OPTION  0x00000010UL#define XTC_INT_MODE_OPTION      0x00000008UL#define XTC_AUTO_RELOAD_OPTION   0x00000004UL#define XTC_EXT_COMPARE_OPTION   0x00000002UL/*@}*//**************************** Type Definitions *******************************//** * This typedef contains configuration information for the device. */typedef struct{    Xuint16 DeviceId;       /**< Unique ID  of device */    Xuint32 BaseAddress;    /**< Register base address */} XTmrCtr_Config;/** * Signature for the callback function. * * @param CallBackRef 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. Its type is unimportant to the *        driver, so it is a void pointer. * @param TmrCtrNumber is the number of the timer/counter within the device. *        The device typically contains at least two timer/counters. The *        timer number is a zero based number with a range of 0 to *        (XTC_DEVICE_TIMER_COUNT - 1). */typedef void (*XTmrCtr_Handler)(void *CallBackRef, Xuint8 TmrCtrNumber);/** * Timer/Counter statistics */typedef struct{    Xuint32 Interrupts;      /**< The number of interrupts that have occurred */} XTmrCtrStats;/** * The XTmrCtr driver instance data. The user is required to allocate a * variable of this type for every timer/counter device in the system. A * pointer to a variable of this type is then passed to the driver API * functions. */typedef struct{    XTmrCtrStats Stats;         /* Component Statistics */    Xuint32 BaseAddress;        /* Base address of registers */    Xuint32 IsReady;            /* Device is initialized and ready */    XTmrCtr_Handler Handler;    /* Callback function */    void *CallBackRef;          /* Callback reference for handler */} XTmrCtr;/***************** Macros (Inline Functions) Definitions *********************//************************** Function Prototypes ******************************//* * Required functions, in file xtmrctr.c */XStatus XTmrCtr_Initialize(XTmrCtr *InstancePtr, Xuint16 DeviceId);void XTmrCtr_Start(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);void XTmrCtr_Stop(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);Xuint32 XTmrCtr_GetValue(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);void XTmrCtr_SetResetValue(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber,                           Xuint32 ResetValue);Xuint32 XTmrCtr_GetCaptureValue(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);Xboolean XTmrCtr_IsExpired(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);void XTmrCtr_Reset(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);XTmrCtr_Config *XTmrCtr_LookupConfig(Xuint16 DeviceId);/* * Functions for options, in file xtmrctr_options.c */void XTmrCtr_SetOptions(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber,                        Xuint32 Options);Xuint32 XTmrCtr_GetOptions(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);/* * Functions for statistics, in file xtmrctr_stats.c */void XTmrCtr_GetStats(XTmrCtr *InstancePtr, XTmrCtrStats *StatsPtr);void XTmrCtr_ClearStats(XTmrCtr *InstancePtr);/* * Functions for self-test, in file xtmrctr_selftest.c */XStatus XTmrCtr_SelfTest(XTmrCtr *InstancePtr, Xuint8 TmrCtrNumber);/* * Functions for interrupts, in file xtmrctr_intr.c */void XTmrCtr_SetHandler(XTmrCtr *InstancePtr, XTmrCtr_Handler FuncPtr,                        void *CallBackRef);void XTmrCtr_InterruptHandler(void *InstancePtr);#endif            /* end of protection macro */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一二三四区在线| 国产91丝袜在线18| 8x福利精品第一导航| 亚洲一区二区三区小说| 91传媒视频在线播放| 一区二区三区蜜桃网| 欧洲另类一二三四区| 天堂久久久久va久久久久| 欧美精品自拍偷拍动漫精品| 视频一区二区中文字幕| 欧美大片免费久久精品三p| 狠狠久久亚洲欧美| 中文字幕欧美激情一区| 99精品视频中文字幕| 亚洲午夜日本在线观看| 欧美日本在线一区| 九九在线精品视频| 国产精品国产精品国产专区不片| 亚洲国产精品久久久久婷婷884 | 欧美电影精品一区二区| 国产一区二区三区电影在线观看| 国产亚洲欧美激情| 色屁屁一区二区| 美女视频黄免费的久久| 欧美国产激情一区二区三区蜜月 | 色域天天综合网| 五月天丁香久久| 26uuu国产电影一区二区| av影院午夜一区| 天堂精品中文字幕在线| 欧美精彩视频一区二区三区| 欧美色区777第一页| 国产一区二三区| 亚洲另类春色国产| 26uuu久久天堂性欧美| 一本一道波多野结衣一区二区| 日韩专区在线视频| 国产欧美一二三区| 91麻豆精品91久久久久同性| 福利电影一区二区| 天堂久久一区二区三区| 亚洲色图在线播放| 精品99999| 欧美午夜精品一区二区蜜桃| 高清不卡在线观看av| 日韩电影在线观看网站| 一区在线播放视频| 欧美电影免费观看高清完整版| 在线影视一区二区三区| 国产精品1024| 美女网站色91| 亚洲国产精品久久不卡毛片| 日韩伦理电影网| 久久亚洲二区三区| 911精品产国品一二三产区| 91在线云播放| 成人在线综合网| 国产精品综合一区二区| 日韩电影在线免费观看| 亚洲综合免费观看高清在线观看| 欧美激情一区在线观看| www国产精品av| 欧美一区二区国产| 欧美日韩和欧美的一区二区| 成人白浆超碰人人人人| 久久国产剧场电影| 五月婷婷激情综合网| 一区二区免费在线| 亚洲人成伊人成综合网小说| 国产精品视频九色porn| 亚洲伦理在线免费看| 国产欧美一区二区精品忘忧草| 日韩视频免费直播| 日韩午夜电影在线观看| 91精品免费在线观看| 欧美另类videos死尸| 欧美色区777第一页| 欧美午夜影院一区| 欧美视频自拍偷拍| 色欧美片视频在线观看| 色欧美乱欧美15图片| 色综合久久久久久久久久久| 成人动漫视频在线| 91免费版在线| 欧洲国内综合视频| 欧美日韩国产系列| 91精品国产综合久久精品麻豆| 欧美高清激情brazzers| 日韩一区二区在线免费观看| 91精品婷婷国产综合久久竹菊| 91精品欧美综合在线观看最新| 欧美日本免费一区二区三区| 欧美一区二区三区啪啪| 日韩欧美国产高清| 久久欧美中文字幕| 国产欧美综合在线| 综合在线观看色| 综合电影一区二区三区 | 亚洲精品一区二区三区99| 久久色在线观看| 欧美国产日韩a欧美在线观看| 亚洲欧洲精品天堂一级| 亚洲一区二区视频| 精品午夜一区二区三区在线观看| 国产成人午夜视频| 在线免费一区三区| 欧美精品自拍偷拍| 26uuu久久综合| 亚洲乱码国产乱码精品精的特点| 午夜电影久久久| 国产一区二区三区久久悠悠色av| 99久久99久久精品免费观看| 欧美日韩国产色站一区二区三区| 欧美一区永久视频免费观看| 久久九九久精品国产免费直播| 椎名由奈av一区二区三区| 香港成人在线视频| 国产精华液一区二区三区| 色综合久久久久| 久久新电视剧免费观看| 一区二区免费看| 激情综合网激情| 91香蕉视频mp4| 欧美成va人片在线观看| 亚洲男人的天堂网| 国产在线视频一区二区| 色老头久久综合| 国产校园另类小说区| 午夜电影网一区| 99久精品国产| 欧美精品一区二区三区蜜桃| 一区二区三区高清| 国产一区91精品张津瑜| 欧美日韩免费视频| 国产精品免费丝袜| 久久99久久99| 欧美日韩电影在线| 国产精品理伦片| 极品少妇一区二区| 欧美精品一级二级| 自拍偷拍国产精品| 成人免费黄色在线| 久久久久久综合| 日本不卡一区二区三区高清视频| 91色婷婷久久久久合中文| 亚洲精品一线二线三线| 日韩精品欧美精品| 在线免费观看视频一区| 中文字幕一区二区5566日韩| 久久国产尿小便嘘嘘| 欧美精品在线视频| 亚洲综合一区在线| 91麻豆福利精品推荐| 久久精品夜色噜噜亚洲a∨| 青青国产91久久久久久| 欧美最猛性xxxxx直播| 亚洲欧洲无码一区二区三区| 成人性生交大片免费看视频在线| 日韩女同互慰一区二区| 日韩高清不卡一区二区| 欧美美女bb生活片| 亚洲国产精品人人做人人爽| 欧美性大战久久久| 一区二区三区产品免费精品久久75| gogogo免费视频观看亚洲一| 欧美国产一区二区| 成人小视频免费在线观看| 久久九九影视网| 成人性视频免费网站| 国产精品免费av| 成人午夜激情在线| 国产精品美女视频| 粉嫩av一区二区三区在线播放| 26uuu欧美| 成人免费视频网站在线观看| 久久嫩草精品久久久精品| 精品无码三级在线观看视频| 久久综合九色综合欧美98 | 国产精品全国免费观看高清 | 日韩精品中文字幕在线不卡尤物| 亚洲成人av电影在线| 欧美日韩精品久久久| 日本 国产 欧美色综合| 日韩免费性生活视频播放| 精品一区二区免费看| 久久久亚洲精华液精华液精华液| 国产91富婆露脸刺激对白| 国产精品久久久久影院| 91亚洲精品久久久蜜桃| 婷婷久久综合九色国产成人 | 成人高清在线视频| 亚洲人成人一区二区在线观看| 在线观看不卡一区| 日本成人在线视频网站| 国产丝袜在线精品| 91免费版pro下载短视频| 亚洲国产日韩综合久久精品| 91精品国产综合久久精品app| 久久精品国产77777蜜臀| 国产精品日产欧美久久久久|