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

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

?? sngks32ctimer.c

?? tornado開發 三星s3c44b0x開發板 bsp
?? C
?? 第 1 頁 / 共 2 頁
字號:
    {    /* call auxiliary clock service routine */    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 does not enable auxiliary clock interrupts.** 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 to auxiliary clock interrupt routine */    )    {    sysAuxClkRoutine    = NULL;    sysAuxClkArg        = arg;#if ((CPU_FAMILY == ARM) && ARM_THUMB)    /* set b0 so that sysClkConnect() 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)    {    /*UINT32 oier;*/		/* Amine: deleted */        if (sysAuxClkRunning)        {        /* disable timer interrupt in the timer */		/* Amine: deleted */        /*SNGKS32C_TIMER_REG_READ (SNGKS32C_TIMER_TMOD, oier);*/        /*SNGKS32C_TIMER_REG_WRITE (SNGKS32C_TIMER_TMOD, oier & ~(1 << 3));*/        /* disable timer interrupt in the interrupt controller */        SNGKS32C_TIMER_INT_DISABLE (AUX_TIMER_INT_LVL);        sysAuxClkRunning = FALSE;        }    }/********************************************************************************* sysAuxClkEnable - turn on auxiliary clock interrupts** This routine enables auxiliary clock interrupts.** RETURNS: N/A** SEE ALSO: sysAuxClkConnect(), sysAuxClkDisable(), sysAuxClkRateSet()*/void sysAuxClkEnable (void)    {    /*UINT32 oier;*/	/* Amine: deleted */    static BOOL connected = FALSE;    if (!connected)        {        intConnect (INUM_TO_IVEC (INT_LVL_TIMER1), sysAuxClkInt, 0);        connected = TRUE;        }    if (!sysAuxClkRunning)        {        /*         * Calculate the number of ticks of the timer clock that this         * period requires.  Do this once, here, so that the timer interrupt         * routine does not need to perform a division.         */        sysAuxClkTicks = (AUX_TIMER_CLK / sysAuxClkTicksPerSecond);        /*         * Load the match register with a new value calculated by         * adding the ticks per interrupt to the current value of the         * counter register.  Note that this may wraparound to a value         * less than the current counter value but that's OK.         */		/* Amine: deleted */        /*SNGKS32C_TIMER_REG_WRITE (SNGKS32C_TIMER_TDATA_1, sysAuxClkTicks);*/        /* enable timer 1 */		/* Amine: deleted */        /*SNGKS32C_TIMER_REG_READ (SNGKS32C_TIMER_TMOD, oier);*/        /*SNGKS32C_TIMER_REG_WRITE (SNGKS32C_TIMER_TMOD, oier | 8);*/        /* enable clock interrupt in interrupt controller */        SNGKS32C_TIMER_INT_ENABLE (AUX_TIMER_INT_LVL);        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.** 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;    if (sysAuxClkRunning)        {        sysAuxClkDisable ();        sysAuxClkEnable ();        }    return (OK);    }#ifdef  INCLUDE_TIMESTAMP/********************************************************************************* sysTimestampInt - timestamp timer interrupt handler** This routine 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)    {    if (sysTimestampRunning && sysTimestampRoutine != NULL)        (*sysTimestampRoutine)(sysTimestampArg);    }/********************************************************************************* sysTimestampConnect - connect a user routine to the timestamp timer interrupt** This routine specifies the user interrupt routine to be called at each* timestamp timer interrupt.  It does not enable the timestamp timer itself.** RETURNS: OK, or ERROR if sysTimestampInt() interrupt handler is not used.*/STATUS sysTimestampConnect    (    FUNCPTR routine,    /* routine called at each timestamp timer interrupt */    int arg     /* argument with which to call routine */    )    {    return ERROR;    /* System clock tick specifies a rollover event */    }/********************************************************************************* sysTimestampEnable - initialize and enable the timestamp timer** This routine connects the timestamp timer interrupt and initializes the* counter registers.  If the timestamp timer is already running, this routine* merely resets the timer counter.** The rate of the timestamp timer should be set explicitly within the BSP,* in the sysHwInit() routine.  This routine does not initialize the timer* rate.** RETURNS: OK, or ERROR if hardware cannot be enabled.*/STATUS sysTimestampEnable (void)    {    if (!sysTimestampRunning)        {        sysTimestampRunning = TRUE;        }    sysClkEnable();    /* make sure that system clock is running */    return (OK);    }/********************************************************************************* sysTimestampDisable - disable the timestamp timer** This routine disables the timestamp timer.  Interrupts are not disabled,* although the tick counter will not increment after the timestamp timer* is disabled, thus interrupts will no longer be generated.** RETURNS: OK, or ERROR if timer cannot be disabled.*/STATUS sysTimestampDisable (void)    {    if (sysTimestampRunning)        sysTimestampRunning = FALSE;    return (OK);    }/********************************************************************************* sysTimestampPeriod - get the timestamp timer period** This routine returns the period of the timestamp timer in ticks.* The period, or terminal count, is the number of ticks to which the timestamp* timer will count before rolling over and restarting the counting process.** RETURNS: The period of the timestamp timer in counter ticks.*/UINT32 sysTimestampPeriod (void)    {    return (SYS_TIMER_CLK / sysClkTicksPerSecond);    }/********************************************************************************* sysTimestampFreq - get the timestamp timer clock frequency** This routine returns the frequency of the timer clock, in ticks per second.** RETURNS: The timestamp timer clock frequency, in ticks per second.*/UINT32 sysTimestampFreq (void)    {    return (SYS_TIMER_CLK);    }/********************************************************************************* sysTimestamp - get the 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 by the return of* sysTimestampFreq().** This routine should be called with interrupts locked.  If interrupts are* not already locked, sysTimestampLock() should be used instead.** RETURNS: The current timestamp timer tick count.** SEE ALSO: sysTimestampLock()*/UINT32 sysTimestamp (void)    {    UINT32 count;    /*SNGKS32C_TIMER_REG_READ (SNGKS32C_TIMER_TCNT_0, count);*/	/* Amine: deleted and added */	SNGKS32C_TIMER_REG_READ (S3C44B0X_TCNTO0, count);	    /* timer counts down to 0 from sysClkTicks load value */    return (sysTimestampPeriod() - count);    }/********************************************************************************* sysTimestampLock - get the 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 by the return of* sysTimestampFreq().** This routine locks interrupts for cases where it is necessary to stop the* tick counter in order to read it, or when two independent counters must* be read.  If interrupts are already locked, sysTimestamp() should be* used instead.** RETURNS: The current timestamp timer tick count.** SEE ALSO: sysTimestamp()*/UINT32 sysTimestampLock (void)    {    UINT32 result;    result = sysTimestamp ();    return (result);    }#endif  /* INCLUDE_TIMESTAMP */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米色777欧美一区二区| 2023国产一二三区日本精品2022| 亚洲中国最大av网站| 欧美视频一区二区三区| 天堂蜜桃一区二区三区| 久久女同性恋中文字幕| 99久久精品国产导航| 亚洲高清视频中文字幕| 精品国产凹凸成av人网站| 99久久免费视频.com| 午夜久久久影院| 久久久久亚洲综合| 91色视频在线| 国产剧情av麻豆香蕉精品| 亚洲男人的天堂网| 欧美一区二区网站| 一区av在线播放| 久久人人97超碰com| 在线观看av一区| 日韩一级成人av| 久久久久久久av麻豆果冻| 91香蕉国产在线观看软件| 日韩电影免费一区| 国产精品久久久久久亚洲毛片 | 日本sm残虐另类| 日韩一级片网站| 一本色道亚洲精品aⅴ| 国产一区二区精品在线观看| 99在线精品免费| 亚洲国产精品尤物yw在线观看| 久久久久久久免费视频了| 欧美吻胸吃奶大尺度电影| 一区二区三区四区五区视频在线观看| 精品一区精品二区高清| 国产精品国产三级国产普通话三级 | 一本久久综合亚洲鲁鲁五月天| 精品中文字幕一区二区| 亚洲精品视频在线观看免费| 中文乱码免费一区二区| 亚洲精品一区二区三区四区高清| 欧美图片一区二区三区| jizz一区二区| aaa亚洲精品一二三区| 99久久久精品| av在线不卡免费看| 93久久精品日日躁夜夜躁欧美| 久久久精品tv| 久久久久国产精品麻豆ai换脸| 精品国产露脸精彩对白| 久久婷婷一区二区三区| xf在线a精品一区二区视频网站| 2017欧美狠狠色| 国产精品日日摸夜夜摸av| 毛片不卡一区二区| 国产一区不卡视频| 成人午夜在线播放| 日本久久一区二区三区| 911国产精品| 久久久久久久久蜜桃| 中文字幕一区在线观看| 亚洲第一搞黄网站| 黄色日韩网站视频| 欧美精品一区二区三区在线 | 丁香天五香天堂综合| 成人av午夜影院| 欧美日韩第一区日日骚| 日韩一区二区三区视频| 国产精品女同一区二区三区| **欧美大码日韩| 裸体歌舞表演一区二区| 成人免费观看男女羞羞视频| 欧美日韩国产高清一区二区| 国产亚洲欧美色| 亚洲成人av一区二区三区| 国产九色sp调教91| 色婷婷激情一区二区三区| 欧美精品一区二区三区很污很色的 | 欧美大片在线观看一区二区| 亚洲欧美偷拍卡通变态| 国产成人免费视频网站高清观看视频| 91免费国产视频网站| 国产精品一区二区三区乱码| 欧美aaaaa成人免费观看视频| 韩国一区二区三区| 99精品欧美一区二区三区综合在线| 欧美激情综合五月色丁香| 久久久国产一区二区三区四区小说 | 91香蕉视频黄| 欧美日韩久久不卡| 色综合天天天天做夜夜夜夜做| 在线日韩国产精品| 91豆麻精品91久久久久久| 亚洲免费色视频| 婷婷开心激情综合| 成人ar影院免费观看视频| 欧美色老头old∨ideo| 亚洲视频你懂的| 日日摸夜夜添夜夜添国产精品| 成人精品视频一区二区三区 | 国产精品电影院| 午夜国产精品一区| 99久久精品国产精品久久| 欧美精品一区二区三区高清aⅴ| 亚洲日本中文字幕区| 久久国产精品无码网站| 精品国产1区二区| 人人超碰91尤物精品国产| 日韩欧美专区在线| 蜜桃视频一区二区三区| 91麻豆精品国产| 亚洲精品ww久久久久久p站| 国产精品主播直播| 91.麻豆视频| 亚洲精品一卡二卡| 午夜精品视频在线观看| 成人午夜电影久久影院| 精品福利视频一区二区三区| 欧美国产97人人爽人人喊| 成人av电影免费观看| 欧美天天综合网| 日日夜夜一区二区| 蜜桃av一区二区| 国产人伦精品一区二区| 国产伦精品一区二区三区免费迷 | 91在线精品一区二区三区| 亚洲国产精品人人做人人爽| 日本欧美在线观看| 久久嫩草精品久久久久| 粉嫩蜜臀av国产精品网站| 亚洲精品成人天堂一二三| 色综合欧美在线视频区| 免费久久99精品国产| 欧美一区二区精品在线| 韩国精品免费视频| 久久久www免费人成精品| 色噜噜久久综合| 高清国产一区二区| 丝袜亚洲另类丝袜在线| 精品国产三级a在线观看| 99国产精品国产精品毛片| 亚洲精品水蜜桃| 欧美不卡一区二区三区| 美女视频一区二区三区| 亚洲在线中文字幕| 91黄色免费观看| 国产v综合v亚洲欧| 中文字幕一区二区日韩精品绯色| 99re8在线精品视频免费播放| 久久精品国产网站| 亚洲欧美一区二区视频| 久久女同互慰一区二区三区| 91精彩视频在线观看| 东方欧美亚洲色图在线| 亚洲电影第三页| 日韩久久一区二区| 性欧美大战久久久久久久久| 欧美美女激情18p| 国产成人精品www牛牛影视| 久久91精品久久久久久秒播| 国产精品久久久久久福利一牛影视 | 同产精品九九九| 亚洲精品视频免费看| 欧美色图天堂网| 久久电影网电视剧免费观看| 日韩不卡一区二区三区 | 日韩成人精品在线观看| 日本aⅴ亚洲精品中文乱码| ●精品国产综合乱码久久久久| 最近中文字幕一区二区三区| 日韩精品一区二区三区蜜臀| 日韩精品一区二区三区在线观看 | 911精品国产一区二区在线| 91麻豆国产在线观看| 91老师国产黑色丝袜在线| 丁香婷婷综合网| 91色九色蝌蚪| 色综合欧美在线| 欧美日韩和欧美的一区二区| 91亚洲男人天堂| 一本一本久久a久久精品综合麻豆| 国产精品成人免费| 亚洲另类春色校园小说| 欧美一级在线观看| 色狠狠色狠狠综合| 欧美日韩欧美一区二区| 99久久精品免费看国产免费软件| 成人午夜激情片| 高清不卡一区二区| 中文一区一区三区高中清不卡| 精品国产一区二区三区久久久蜜月| 国产福利一区二区三区视频| 大尺度一区二区| 欧美裸体一区二区三区| 精品国产乱码久久久久久影片| 欧美成人精品1314www| 国产精品美女久久久久久久久 | 91福利在线播放| 久久久不卡网国产精品二区 | 日产精品久久久久久久性色| 一区二区国产盗摄色噜噜|