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

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

?? s3c2410timer.c

?? ROM型的vxworksBSP包 編譯測試通過
?? C
?? 第 1 頁 / 共 2 頁
字號:
*/STATUS sysClkRateSet(int ticksPerSecond	    /* number of clock interrupts per second */){    if (ticksPerSecond < SYS_CLK_RATE_MIN || ticksPerSecond > SYS_CLK_RATE_MAX)	return ERROR;    sysClkTicksPerSecond = ticksPerSecond;    if (sysClkRunning)    {	sysClkDisable ();	sysClkEnable ();    }    return OK;}/********************************************************************************* sysAuxClkInt - handle an auxiliary clock interrupt** This routine handles an auxiliary clock interrupt.  It acknowledges the* interrupt and calls the routine installed by sysAuxClkConnect().** RETURNS: N/A*/LOCAL void sysAuxClkInt (void){    /* Acknowledge interrupt: any write to Clear Register clears interrupt */    /*AMBA_TIMER_WRITE (AUX_TIMER_CLEAR (AMBA_TIMER_BASE), 0);*/    /* If any routine attached via sysAuxClkConnect(), call it */    if (sysAuxClkRoutine != NULL)	(*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 also connects the clock error interrupt* service routine.** RETURNS: OK, or ERROR if the routine cannot be connected to the interrupt.** SEE ALSO: intConnect(), sysAuxClkEnable()*/STATUS sysAuxClkConnect(FUNCPTR routine,    /* routine called at each aux clock interrupt */                        int arg             /* argument with which to call routine        */){    sysAuxClkRoutine = NULL;	/* ensure routine not called with wrong arg */    sysAuxClkArg	= arg;    if (routine == NULL)	return OK;#if ((CPU_FAMILY == ARM) && ARM_THUMB)    /* set b0 so that sysAuxClkConnect() can be used from shell */    sysAuxClkRoutine = (FUNCPTR)((UINT32)routine | 1);#else    sysAuxClkRoutine	= routine;#endif /* CPU_FAMILY == ARM */    return OK;}/********************************************************************************* sysAuxClkDisable - turn off auxiliary clock interrupts** This routine disables auxiliary clock interrupts.** RETURNS: N/A** SEE ALSO: sysAuxClkEnable()*/void sysAuxClkDisable (void){    if (sysAuxClkRunning)    {	/*	 * Disable timer itself. Might as well leave it configured for	 * Periodic mode, divided by 16.	 */	/*AMBA_TIMER_WRITE(		   AUX_TIMER_CTRL (AMBA_TIMER_BASE), AMBA_TIMER_AUX_TC_DISABLE);*/	/* Disable the timer interrupt in the Interrupt Controller */	/*AMBA_TIMER_INT_DISABLE (AUX_TIMER_INT_LVL);*/		rTCON   = ((rTCON&0xfff0ffff)|0xa0000);		rINTMSK |= BIT_TIMER3;	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)    {	/* Set up in periodic mode, divide clock input by 16, enable timer */	/*AMBA_TIMER_WRITE(		    AUX_TIMER_CTRL (AMBA_TIMER_BASE), AMBA_TIMER_AUX_TC_ENABLE);*/		/*	 * Calculate the timer value	 * Note that it may take some ticks to reload the counter	 * so counter value = (clock rate / sysAuxClkTicksPerSecond) - num_ticks	 */	/*tc = (AUX_TIMER_CLK / sysAuxClkTicksPerSecond) - AMBA_RELOAD_TICKS;*/	/* Load Timer Reload value into Timer registers */	/*AMBA_TIMER_WRITE (AUX_TIMER_LOAD (AMBA_TIMER_BASE), tc);*/	/* enable clock interrupt in interrupt controller */	/*AMBA_TIMER_INT_ENABLE (AUX_TIMER_INT_LVL);*/		rTCNTB3 = ( rTCNTB3 & ~(0xffff) ) | ((PCLK/(TIMER_PRESCALER+1)/TIMER_DIVIDER)/sysAuxClkTicksPerSecond);	rTCON   = ((rTCON&0xfff0ffff)|0xa0000);        rTCON   = ((rTCON&0xfff0ffff)|0X90000);		rINTMSK &= (~BIT_TIMER3);	sysAuxClkRunning = TRUE;    }}/********************************************************************************* 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 unilaterally, but if the* auxiliary clock is currently enabled, the clock is disabled and then* re-enabled with the new rate.** RETURNS: OK or ERROR.** 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;    if (sysAuxClkRunning)    {	sysAuxClkDisable ();	sysAuxClkEnable ();    }    return OK;}#ifdef	INCLUDE_TIMESTAMP/********************************************************************************* 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: ERROR, always.*/STATUS sysTimestampConnect(FUNCPTR routine,    /* routine called at each timestamp timer interrupt */                           int arg             /* argument with which to call routine */){    return ERROR;}/********************************************************************************* sysTimestampEnable - enable a timestamp timer interrupt** This routine enables timestamp timer interrupts and resets the counter.** RETURNS: OK, always.** SEE ALSO: sysTimestampDisable()*/STATUS sysTimestampEnable (void){   if (sysTimestampRunning)   {      return OK;   }   if (!sysClkRunning)          /* timestamp timer is derived from the sysClk */      return ERROR;   sysTimestampRunning = TRUE;   return OK;}/********************************************************************************* sysTimestampDisable - disable a timestamp timer interrupt** This routine disables timestamp timer interrupts.** RETURNS: OK, always.** SEE ALSO: sysTimestampEnable()*/STATUS sysTimestampDisable (void){    if (sysTimestampRunning)        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){    /*     * The period of the timestamp depends on the clock rate of the system     * clock.     */    return ((UINT32)(SYS_TIMER_CLK / sysClkTicksPerSecond));}/********************************************************************************* 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.** NOTE: Because the system clock serves as the timestamp timer,* the system clock frequency is also the timestamp timer frequency.** RETURNS: The timestamp timer clock frequency, in ticks per second.*/UINT32 sysTimestampFreq (void){    return ((UINT32)SYS_TIMER_CLK);}/********************************************************************************* 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){    /*AMBA_TIMER_READ (SYS_TIMER_VALUE (AMBA_TIMER_BASE), t);*/    return (sysTimestampPeriod() );}/********************************************************************************* 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){    /*AMBA_TIMER_READ (SYS_TIMER_VALUE (AMBA_TIMER_BASE), t);*/    return (sysTimestampPeriod() );}#endif  /* INCLUDE_TIMESTAMP */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天综合网天天狠天天| 日日夜夜免费精品| 成人免费观看视频| 欧美国产1区2区| 99久久精品国产网站| 成人欧美一区二区三区白人 | 国产在线国偷精品免费看| 91精品国产色综合久久不卡电影| 日韩高清一级片| 精品国产91亚洲一区二区三区婷婷| 国产在线看一区| 午夜精品在线看| 7777精品伊人久久久大香线蕉经典版下载 | 国模冰冰炮一区二区| 久久精品亚洲乱码伦伦中文 | 一区二区三区中文在线观看| 在线观看日韩av先锋影音电影院| 午夜精品国产更新| 久久综合色8888| 色综合久久久网| 久久99精品久久久久| 国产欧美日韩精品在线| 91极品美女在线| 极品美女销魂一区二区三区| 日本一区二区三区高清不卡| 在线免费不卡视频| 国产主播一区二区| 一区二区三区欧美日韩| 日韩一区二区电影在线| 波多野结衣欧美| 日韩和欧美的一区| 亚洲国产精品成人综合| 欧美日韩免费视频| 高潮精品一区videoshd| 亚洲线精品一区二区三区八戒| 精品久久久久一区| 色美美综合视频| 国产精品一区一区三区| 亚洲老妇xxxxxx| 欧美成人欧美edvon| 色综合中文字幕国产 | 奇米综合一区二区三区精品视频| 中文字幕精品综合| 日韩免费一区二区| 在线观看一区二区精品视频| 国产一区二区三区在线观看免费 | 成人免费视频在线观看| 在线播放中文一区| 91视频xxxx| 国产在线视频不卡二| 亚洲最新在线观看| 国产精品久久久久久久久久免费看 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产精品99久久久久久宅男| 亚洲福利一区二区三区| 亚洲天堂免费在线观看视频| 日韩精品一区二区三区四区 | 337p日本欧洲亚洲大胆精品 | 久久久久久久久99精品| 欧美中文字幕一区二区三区| 国产成人av电影在线| 欧美bbbbb| 日韩黄色在线观看| 亚洲国产aⅴ成人精品无吗| 国产精品不卡在线| 亚洲国产精品成人综合色在线婷婷| 欧美一区二区三区播放老司机| 精品视频一区二区不卡| 一本久久综合亚洲鲁鲁五月天| 国产·精品毛片| 国产成人亚洲综合a∨婷婷| 久久精品国产999大香线蕉| 图片区小说区区亚洲影院| 亚洲一区二区三区不卡国产欧美| 一区二区三区国产精华| 亚洲欧美精品午睡沙发| 亚洲欧洲精品成人久久奇米网| 久久久激情视频| 久久久久久电影| 欧美国产日韩a欧美在线观看| 久久久久88色偷偷免费| 久久综合久久综合亚洲| 久久综合视频网| 中文字幕精品一区二区精品绿巨人| 久久精品夜色噜噜亚洲a∨| 欧美一级黄色片| 久久影院视频免费| 中文字幕第一区| 国产欧美视频一区二区| 国产精品美女视频| 一区二区三区在线观看动漫| 亚洲男人的天堂网| 亚洲成人av一区| 日韩和欧美一区二区三区| 男女激情视频一区| 成人性视频免费网站| 91香蕉国产在线观看软件| 在线观看日韩av先锋影音电影院| 18涩涩午夜精品.www| 夜夜揉揉日日人人青青一国产精品| 亚洲成人综合网站| 热久久一区二区| 成人av免费在线播放| 欧美伊人久久久久久午夜久久久久| 9191成人精品久久| 久久久不卡影院| 亚洲综合精品久久| 麻豆久久久久久久| 国产高清不卡一区| 91精彩视频在线| 精品美女被调教视频大全网站| 国产欧美一区二区三区鸳鸯浴| 亚洲免费观看在线观看| 视频在线观看一区二区三区| 狂野欧美性猛交blacked| 丁香网亚洲国际| 欧美久久久一区| 中文字幕第一区| 天天综合网天天综合色| 国产sm精品调教视频网站| 在线观看日产精品| 亚洲精品一区二区三区四区高清| 国产精品初高中害羞小美女文| 日韩精彩视频在线观看| 成人黄色大片在线观看| 欧美精品一卡二卡| 日韩一区在线播放| 免费观看久久久4p| 色呦呦网站一区| 国产网站一区二区| 日韩国产精品久久久| 成年人午夜久久久| 欧美大片国产精品| 三级一区在线视频先锋| 成人精品一区二区三区四区| 欧美视频一区二区三区在线观看| 精品国产一区二区三区四区四 | 91精品国产综合久久小美女| 中文字幕久久午夜不卡| 裸体歌舞表演一区二区| 在线观看一区二区精品视频| 国产午夜精品久久| 免费高清视频精品| 欧美浪妇xxxx高跟鞋交| 日韩毛片视频在线看| 国产精品一区二区男女羞羞无遮挡 | 亚洲成人动漫一区| 成人av在线网| 欧美经典一区二区| 国产精品一区二区久久不卡 | 国产成a人无v码亚洲福利| 日韩亚洲欧美在线| 亚洲高清视频在线| 欧美在线制服丝袜| 亚洲激情欧美激情| 91蝌蚪porny九色| 亚洲人成网站影音先锋播放| 懂色av一区二区三区免费看| 久久蜜桃一区二区| 国产在线看一区| 精品欧美一区二区久久| 婷婷夜色潮精品综合在线| 日本精品免费观看高清观看| 亚洲人午夜精品天堂一二香蕉| 成人97人人超碰人人99| 国产精品久久久久aaaa樱花| 国产精品一二三四区| 国产亚洲自拍一区| 成人黄色在线视频| 国产精品毛片大码女人| 国产成人av影院| 中文字幕一区在线观看| 99re8在线精品视频免费播放| 国产精品超碰97尤物18| caoporn国产精品| 亚洲精品免费在线| 欧美日韩免费在线视频| 天天做天天摸天天爽国产一区| 欧美精品在欧美一区二区少妇| 日韩av电影免费观看高清完整版在线观看| 欧美性色综合网| 日韩成人一区二区| 2023国产精品视频| 99精品久久只有精品| 亚洲乱码国产乱码精品精可以看 | 欧美精品丝袜中出| 男人的天堂亚洲一区| 日韩精品中文字幕在线一区| 韩国中文字幕2020精品| 中文字幕欧美一| 欧美日韩一级二级三级| 热久久一区二区| 国产日韩欧美精品在线| 99久久伊人网影院| 婷婷成人综合网| 国产欧美一区二区精品仙草咪| 99精品1区2区| 另类小说图片综合网| 国产精品免费观看视频| 欧美高清激情brazzers|