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

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

?? ixp425timer.c

?? INTEL IXP425的VXWORKS BSP
?? C
?? 第 1 頁 / 共 2 頁
字號:
** This routine handles an auxiliary clock interrupt.  It acknowledges the* interrupt and calls the routine installed by sysAuxClkConnect().** RETURNS: N/A*/void sysAuxClkInt (void)    {        /* Clear Pending Interrupt by writing '1' to it */    IXP425_REG_TIMER_WRITE(IXP425_OSST, IXP425_OSST_TIMER_2_PEND);    /* And again to avoid another interrupt */    IXP425_REG_TIMER_WRITE(IXP425_OSST, IXP425_OSST_TIMER_2_PEND);    /* call auxiliary clock service routine */    (*sysAuxClkRoutine) (sysAuxClkArg);    }/***************************************************************************** sysAuxClkConnect - connect a routine to the auxiliary clock interrupt** This routine specifies the interrupt service routine to be called at each* auxiliary clock interrupt.  It does not enable auxiliary clock interrupts.** RETURNS: OK** SEE ALSO: intConnect(), sysAuxClkEnable()*/STATUS sysAuxClkConnect    (    FUNCPTR routine,	/* routine called at each aux. clock interrupt */    int	    arg		/* argument with which to call routine	       */    )    {    /* temporarily set to dummy function so old routine is not accidently called     * with the new argument while we are in the process of reconnecting     */    sysAuxClkRoutine   = (FUNCPTR)sysAuxClkDummyRoutine;    sysAuxClkArg       = arg;    sysAuxClkRoutine   = routine;    if(!sysAuxClkConnected)	{        (void)intConnect ((void *)INT_VEC_TIMER2, sysAuxClkInt, 0);        sysAuxClkConnected = TRUE;	}    return (OK);    }/***************************************************************************** sysAuxClkDisconnect - clear the auxiliary clock routine** This routine disables the auxiliary clock interrupt, stops the timer,* and disconnects the routine currently connected to the auxiliary clock* interrupt.** RETURNS: N/A** SEE ALSO: sysAuxClkConnect(), sysAuxClkEnable()*/void sysAuxClkDisconnect (void)    {    if (sysAuxClkRunning)        {        /* disable the auxiliary clock interrupt */        sysAuxClkDisable ();        sysAuxClkRoutine = (FUNCPTR)sysAuxClkDummyRoutine;        sysAuxClkRunning = FALSE;        }    }/***************************************************************************** sysAuxClkDisable - turn off auxiliary clock interrupts** This routine disables auxiliary clock interrupts.** RETURNS: N/A** SEE ALSO: sysAuxClkEnable()*/void sysAuxClkDisable (void)    {    if (sysAuxClkRunning)	{	IXP425_REG_TIMER_WRITE( IXP425_OSRT2 , IXP425_OST_DISABLED );	intDisable(INT_VEC_TIMER2);	sysAuxClkRunning = FALSE;	}    }/***************************************************************************** sysAuxClkEnable - turn on auxiliary clock interrupts** This routine enables auxiliary clock interrupts.** RETURNS: N/A** SEE ALSO: sysAuxClkDisable()*/void sysAuxClkEnable (void)    {    if (!sysAuxClkRunning && sysAuxClkConnected)	{	sysAuxClkRunning  = TRUE;	IXP425_REG_TIMER_WRITE( IXP425_OSRT2 ,                                ((sysAuxClkRollOver & ~IXP425_OST_RELOAD_MASK)                                 |  IXP425_OST_ENABLE )  );	intEnable(INT_VEC_TIMER2);	}    }/***************************************************************************** sysAuxClkRateGet - get the auxiliary clock rate** This routine returns the interrupt rate of the auxiliary clock.** RETURNS: The number of ticks per second of the auxiliary clock.** SEE ALSO: sysAuxClkEnable(), sysAuxClkRateSet()*/int sysAuxClkRateGet (void)    {    return (sysAuxClkTicksPerSecond);    }/***************************************************************************** sysAuxClkRateSet - set the auxiliary clock rate** This routine sets the interrupt rate of the auxiliary clock.	It does not* enable auxiliary clock interrupts.** RETURNS: OK, or ERROR if the tick rate is invalid or the timer cannot be set.** SEE ALSO: sysAuxClkEnable(), sysAuxClkRateGet()*/STATUS sysAuxClkRateSet    (    int ticksPerSecond	    /* number of clock interrupts per second */    )    {    if (ticksPerSecond < AUX_CLK_RATE_MIN || ticksPerSecond > AUX_CLK_RATE_MAX)        return (ERROR);    sysAuxClkTicksPerSecond = ticksPerSecond;    sysAuxClkRollOver = ((TIMER_APB_CLOCK_MHZ * 0x1000000)                         / sysAuxClkTicksPerSecond);    return (OK);    }#ifdef INCLUDE_TIMESTAMP/********************************************************************************* sysTimestampInt - timestamp timer interrupt handler** This rountine handles the timestamp timer interrupt.  A user routine is* called, if one was connected by sysTimestampConnect().** RETURNS: N/A** SEE ALSO: sysTimestampConnect()*/void sysTimestampInt (void)    {     /* Clear Pending Interrupt by writing '1' to it */     IXP425_REG_TIMER_WRITE(IXP425_OSST, IXP425_OSST_TIMER_TS_PEND);    if (sysTimestampRunning && sysTimestampRoutine != NULL)        (*sysTimestampRoutine)(sysTimestampArg);    }/**************************************************************************** sysTimestampConnect - connect a user routine to a timestamp timer interrupt** This routine specifies the user interrupt routine to be called at each* timestamp timer interrupt.** RETURNS: OK, or ERROR if sysTimestampInt() has not been used.** SEE ALSO: sysTimestampEnable()*/STATUS sysTimestampConnect    (    FUNCPTR routine, /* routine called at each timestamp timer interrupt */    int arg	     /* argument with which to call routine */    )    {    static BOOL connected = FALSE;    sysTimestampRoutine = NULL;    sysTimestampArg = arg;    sysTimestampRoutine = routine;    if (!connected)        {        (void)intConnect ((void *)INT_VEC_TIMESTAMP, sysTimestampInt, 0);        connected = TRUE;        }    return OK;    }/**************************************************************************** sysTimestampEnable - enable a timestamp timer interrupt** This routine enables timestamp timer interrupts and resets the counter.** RETURNS: OK, or ERROR if the timestamp timer cannot be enabled.** SEE ALSO: sysTimestampDisable()*/STATUS sysTimestampEnable(void)    {    if(!sysTimestampRunning)	{	sysTimestampRunning = TRUE;	intEnable(INT_VEC_TIMESTAMP);	}    return (OK);    }/**************************************************************************** sysTimestampDisable - disable a timestamp timer interrupt** This routine disables the timestamp timer.  It does not directly disable* interrupts.  However, the tick counter does not increment once the* timestamp timer is disabled, thus, interrupts are no longer generated.* This routine merely resets the timer counter.** RETURNS: OK, ERROR if the timestamp timer cannot be disabled.** SEE ALSO: sysTimestampEnable()*/STATUS sysTimestampDisable (void)    {    if (sysTimestampRunning)	{	intDisable(INT_VEC_TIMESTAMP);	sysTimestampRunning = FALSE;	}    return (OK);    }/**************************************************************************** sysTimestampPeriod - get the period of a timestamp timer** This routine gets the period of the timestamp timer, in ticks.  The* period, or terminal count, is the number of ticks to which the timestamp* timer counts before rolling over and restarting the counting process.** RETURNS: The period of the timestamp timer in counter ticks.*/UINT32 sysTimestampPeriod (void)    {    /*     * Return the timestamp timer period here.     * The highest period (maximum terminal count) should be used so     * that rollover interrupts are kept to a minimum.     *     */    return (clkPeriod());    }/**************************************************************************** sysTimestampFreq - get a timestamp timer clock frequency** This routine gets the frequency of the timer clock, in ticks per* second.  The rate of the timestamp timer is set explicitly by the* hardware and typically cannot be altered.** RETURNS: The timestamp timer clock frequency, in ticks per second.*/UINT32 sysTimestampFreq (void)    {    /*     * Return the timestamp tick output frequency here.     * This value can be determined from the following equation:     *	   timerFreq = clock input frequency / prescaler     *     * When possible, read the clock input frequency and prescaler values     * directly from chip registers.     */    return (clkFreq());    }/**************************************************************************** sysTimestamp - get a timestamp timer tick count** This routine returns the current value of the timestamp timer tick counter.* The tick count can be converted to seconds by dividing it by the return of* sysTimestampFreq().** This routine should be called with interrupts locked.	 If interrupts are* not locked, sysTimestampLock() should be used instead.** RETURNS: The current timestamp timer tick count.** SEE ALSO: sysTimestampFreq(), sysTimestampLock()*/UINT32 sysTimestamp (void)    {    UINT32 ticks = 0;    if (sysTimestampRunning)    {    /* Read the timer counter register */    ticks = clkTimestamp();    }    /* return the timestamp timer tick count here */    return (ticks);    }/**************************************************************************** sysTimestampLock - lock interrupts and get the timestamp timer tick count** This routine locks interrupts when the tick counter must be stopped* in order to read it or when two independent counters must be read.* It then returns the current value of the timestamp timer tick* counter.** The tick count can be converted to seconds by dividing it by the return of* sysTimestampFreq().** If interrupts are already locked, sysTimestamp() should be* used instead.** RETURNS: The current timestamp timer tick count.** SEE ALSO: sysTimestampFreq(), sysTimestamp()*/UINT32 sysTimestampLock (void)    {    int locKey;    UINT32 ticks = 0;    if (sysTimestampRunning)    {    /* Lock Interrupts */    locKey = intLock();    /* Read the timer counter register */    ticks = clkTimestamp();    /* UnLock Interrupts */    intUnlock (locKey);    }    /* return the timestamp timer tick count here */    return (ticks);    }#endif	 /* INCLUDE_TIMESTAMP */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区男女天堂| 夫妻av一区二区| 欧美日韩不卡在线| 亚洲成人精品影院| 欧美丰满少妇xxxxx高潮对白| 亚洲bt欧美bt精品| 欧美久久一二三四区| 日本午夜精品视频在线观看 | 日韩精品一区二区三区在线观看| 蜜臀av一区二区| 国产欧美综合在线| 91久久一区二区| 蜜桃一区二区三区四区| 国产午夜精品在线观看| 99re66热这里只有精品3直播| 一区二区三区免费在线观看| 欧美人狂配大交3d怪物一区 | 午夜视黄欧洲亚洲| 精品国产精品网麻豆系列| 99久久99久久综合| 日韩黄色一级片| 欧美激情综合五月色丁香小说| 91久久久免费一区二区| 美女高潮久久久| 中文字幕制服丝袜一区二区三区 | 国产精品一区在线| 亚洲人成伊人成综合网小说| 777午夜精品视频在线播放| 国产一区二区三区高清播放| 亚洲一级二级三级在线免费观看| 精品久久久久久无| 日本高清不卡aⅴ免费网站| 久久成人免费网| 亚洲一区在线观看视频| 久久久久国色av免费看影院| 欧美视频在线播放| 国产成人午夜精品影院观看视频 | 秋霞av亚洲一区二区三| 国产精品久久久久久久浪潮网站| 7777精品伊人久久久大香线蕉最新版| 福利一区在线观看| 人人狠狠综合久久亚洲| 亚洲老妇xxxxxx| 国产视频一区二区三区在线观看| 欧美日韩亚洲综合| 99久久精品情趣| 国产一区不卡精品| 免费欧美在线视频| 亚洲在线免费播放| 国产精品久久久久影院| 欧美精品一区二区三区在线| 欧美日韩亚洲综合一区 | 亚洲1区2区3区视频| 国产精品久久久久久久裸模| 久久久久亚洲蜜桃| 欧美一区二区三区视频| 欧美色中文字幕| 91黄色小视频| www.视频一区| 成人激情午夜影院| 国产一区二区三区免费播放| 另类的小说在线视频另类成人小视频在线 | 8x福利精品第一导航| 91视频在线看| 成人av电影观看| 国产成人在线视频网址| 精品综合免费视频观看| 免费人成精品欧美精品 | 国产做a爰片久久毛片| 日韩国产欧美一区二区三区| 偷拍一区二区三区| 日韩经典中文字幕一区| 婷婷综合五月天| 天堂蜜桃91精品| 日本欧美在线看| 久久99国产精品久久99| 久久99热这里只有精品| 韩国精品久久久| 高清不卡在线观看| 不卡电影一区二区三区| 91在线播放网址| 欧洲av一区二区嗯嗯嗯啊| 一本色道久久综合亚洲aⅴ蜜桃| 91麻豆国产在线观看| 91老师片黄在线观看| 91久久精品一区二区三区| 欧美日韩综合一区| 91精品国产乱| 久久天天做天天爱综合色| 久久久久久久久久电影| 国产日韩综合av| 亚洲丝袜另类动漫二区| 亚洲v中文字幕| 麻豆精品精品国产自在97香蕉| 狠狠色2019综合网| 成人av网站在线| 欧美日韩久久久久久| 日韩欧美电影一区| 中文字幕久久午夜不卡| 亚洲影院理伦片| 久久9热精品视频| 成年人网站91| 欧美精品日韩精品| 国产亚洲精品中文字幕| 亚洲特级片在线| 视频在线观看91| 国产一区二区伦理| 日本韩国一区二区三区视频| 制服视频三区第一页精品| 久久久久久综合| 亚洲午夜久久久久中文字幕久| 美女性感视频久久| 成人免费观看av| 欧美一区日本一区韩国一区| 久久精品一区二区三区不卡牛牛 | 国产精品久久久一区麻豆最新章节| 一二三区精品视频| 久久精品国产精品亚洲精品| 99国产欧美另类久久久精品| 欧美一级在线视频| 中文字幕一区二区三区在线不卡| 欧美a一区二区| 91一区在线观看| 欧美一级国产精品| 一区二区三区资源| 国产一区不卡在线| 91精品国产美女浴室洗澡无遮挡| 国产精品久久二区二区| 美女视频一区在线观看| 色琪琪一区二区三区亚洲区| 26uuu国产日韩综合| 婷婷中文字幕一区三区| 99国产欧美另类久久久精品| 欧美草草影院在线视频| 一区二区三区在线观看视频 | www.日韩在线| 精品国产百合女同互慰| 亚洲国产cao| 色猫猫国产区一区二在线视频| 久久九九影视网| 日韩av一区二区在线影视| 91蜜桃在线免费视频| 国产欧美日韩亚州综合 | 亚洲欧洲一区二区在线播放| 九九国产精品视频| 日韩一区二区在线观看| 亚洲国产成人精品视频| 91浏览器入口在线观看| 欧美激情一区二区三区全黄| 久久er99精品| 欧美大胆人体bbbb| 日韩国产成人精品| 欧美日韩视频在线第一区| 亚洲人123区| 91亚洲大成网污www| 日本一区二区三级电影在线观看| 国产一区二区在线影院| 日韩一区二区三区视频在线观看| 亚洲成人av电影| 欧美日韩一本到| 天天综合天天综合色| 欧美日韩另类一区| 亚洲一卡二卡三卡四卡五卡| 国产精品久久久久影院亚瑟| 国产成人午夜99999| 国产三级一区二区三区| 激情都市一区二区| 久久午夜羞羞影院免费观看| 国模无码大尺度一区二区三区| 久久综合久久综合久久综合| 久久99久久精品| 久久综合网色—综合色88| 国产裸体歌舞团一区二区| 2023国产精品自拍| 国产mv日韩mv欧美| 中文字幕在线不卡一区| 日本二三区不卡| 午夜视频一区二区| 欧美电影免费观看高清完整版在 | 国产99久久久国产精品潘金 | 久久久高清一区二区三区| 粉嫩一区二区三区在线看| 国产精品视频免费看| 色视频欧美一区二区三区| 亚洲不卡在线观看| 日韩免费高清电影| 成人高清视频免费观看| 亚洲人妖av一区二区| 欧美中文字幕一二三区视频| 美女在线一区二区| 中文一区二区在线观看| 91蝌蚪国产九色| 免费在线观看精品| 国产精品女主播av| 欧美三区免费完整视频在线观看| 日韩高清欧美激情| 久久亚洲精精品中文字幕早川悠里| 国产·精品毛片| 亚洲午夜日本在线观看| 精品国偷自产国产一区|