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

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

?? sngks32ctimer.c

?? Vxworks下BSP源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
    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;        if (sysAuxClkRunning)        {        /* disable timer interrupt in the timer */                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;    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.         */        SNGKS32C_TIMER_REG_WRITE (SNGKS32C_TIMER_TDATA_1, sysAuxClkTicks);        /* enable timer 1 */        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);    }#endif/* it is my defination*/#if 0#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);    /* 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 */#endif /*it is my define*/#if 0void myDelay(){	int i;		*(volatile UINT32 *)0xfffff800 = 0x35;	*(volatile UINT32 *)0xfffff810 = 0x35;		while(1)	{	*(volatile UINT32 *)0xfffff834 = 0x35;/*lit*/		for(i=0;i<1000000;i++);		*(volatile UINT32 *)0xfffff830 = 0x35;		for(i=0;i<1000000;i++);		}}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美麻豆| 国产拍揄自揄精品视频麻豆| 国产精一区二区三区| 亚洲香肠在线观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 色综合天天做天天爱| 蜜桃视频一区二区三区在线观看| 中文字幕五月欧美| 欧美成人vps| 精品视频在线视频| 不卡的av中国片| 国产麻豆精品在线| 亚洲欧美日本韩国| 91天堂素人约啪| 国产日本欧美一区二区| 国产米奇在线777精品观看| 国产欧美一区二区精品性色| 韩国理伦片一区二区三区在线播放| 欧美一级日韩免费不卡| 蜜桃久久久久久| 久久久久国产精品人| 99久久久精品| 麻豆精品视频在线观看| 精品人在线二区三区| 激情综合五月天| 亚洲不卡一区二区三区| 成人av电影在线| 国产亚洲成aⅴ人片在线观看| 日本成人中文字幕在线视频| 93久久精品日日躁夜夜躁欧美| 成人免费高清视频| 亚洲另类春色国产| 国产999精品久久久久久| 日韩欧美一区二区不卡| 国产99久久久久久免费看农村| 亚洲免费观看高清完整版在线观看| 久久久久国产精品人| 亚洲女性喷水在线观看一区| 国产999精品久久久久久| 久久精工是国产品牌吗| 日本aⅴ亚洲精品中文乱码| 丝袜国产日韩另类美女| 婷婷综合五月天| 视频一区在线播放| 日本欧美肥老太交大片| 国产亚洲欧美激情| 久久夜色精品一区| 欧美美女直播网站| 色婷婷久久99综合精品jk白丝| 成人黄色av电影| 亚洲成在线观看| 亚洲欧美日韩久久| 久久网站热最新地址| 4438x成人网最大色成网站| 欧美精品vⅰdeose4hd| 亚洲欧洲美洲综合色网| 日本欧美在线看| 日韩欧美第一区| 久久久久久影视| 国产欧美日韩精品一区| 最新日韩av在线| 亚洲高清中文字幕| 日本少妇一区二区| 国产精品一级片在线观看| 成人福利电影精品一区二区在线观看| 99久久综合狠狠综合久久| 欧美色偷偷大香| 久久久高清一区二区三区| 国产精品传媒视频| 亚洲va国产天堂va久久en| 免费观看在线综合色| 国产精品香蕉一区二区三区| 日本久久电影网| 欧美一区欧美二区| 欧美国产禁国产网站cc| 亚洲欧美电影院| 久久狠狠亚洲综合| 91免费国产视频网站| 宅男噜噜噜66一区二区66| 国产人久久人人人人爽| 亚洲成人一区二区在线观看| 国模无码大尺度一区二区三区| av不卡免费电影| 日韩视频免费观看高清完整版| 国产精品伦理在线| 秋霞电影一区二区| 99久久综合狠狠综合久久| 欧美一区二区精品| 亚洲图片另类小说| 麻豆精品一二三| 色婷婷一区二区三区四区| 久久先锋影音av鲁色资源| 亚洲精品免费在线| 国产福利一区二区三区视频| 欧美色网一区二区| 中文字幕在线观看一区| 秋霞成人午夜伦在线观看| 色综合久久六月婷婷中文字幕| 日韩精品在线一区| 亚洲图片欧美一区| 成人午夜在线免费| 欧美大尺度电影在线| 午夜视频在线观看一区二区三区| 国产成人午夜99999| 日韩三级高清在线| 免费看欧美女人艹b| 国产成人精品亚洲日本在线桃色| 欧美性大战久久久久久久蜜臀| 久久精品一区二区三区不卡| 青青国产91久久久久久| 日韩欧美在线123| 日韩电影在线观看网站| 欧美剧在线免费观看网站 | 午夜av电影一区| 一本色道久久综合亚洲91| ...xxx性欧美| 91香蕉国产在线观看软件| 成人免费在线播放视频| 国产suv精品一区二区三区| 亚洲欧洲精品成人久久奇米网| 老司机精品视频在线| 亚洲国产精品传媒在线观看| 精品一区二区三区免费| 夜夜嗨av一区二区三区中文字幕 | 国产成人鲁色资源国产91色综| 欧美三片在线视频观看| 亚洲一区影音先锋| 国产精品第四页| 亚洲一区在线看| 亚洲一区二区欧美日韩| 午夜电影网亚洲视频| 欧美日韩一本到| 一级特黄大欧美久久久| 欧美性做爰猛烈叫床潮| 亚洲高清在线精品| 欧美人牲a欧美精品| 日韩精彩视频在线观看| 欧美一区午夜视频在线观看| 麻豆精品视频在线| 精品国产一二三| 国产精品影音先锋| 国产蜜臀97一区二区三区| 成人动漫视频在线| 亚洲乱码一区二区三区在线观看| 色综合色狠狠天天综合色| 亚洲国产日韩av| 制服丝袜亚洲精品中文字幕| 蜜桃视频免费观看一区| 久久综合九色综合欧美就去吻| 另类综合日韩欧美亚洲| ww久久中文字幕| 成人av小说网| 亚洲成人免费看| 日韩一区二区三区免费观看| 狠狠色丁香久久婷婷综| 国产日韩欧美激情| 91国产丝袜在线播放| 日本在线观看不卡视频| 久久久久久一级片| 色综合久久天天| 人人狠狠综合久久亚洲| 久久精品亚洲国产奇米99| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 亚洲一区二区精品视频| 欧美一区二区三区在线视频| 国产精品18久久久久久久网站| 国产精品成人免费在线| 欧美老肥妇做.爰bbww| 国产精品一区二区不卡| 亚洲综合视频在线| 亚洲精品在线观看网站| 91美女蜜桃在线| 另类小说视频一区二区| 最新欧美精品一区二区三区| 欧美一区二区精品在线| 成人午夜伦理影院| 亚洲6080在线| 久久精品夜夜夜夜久久| 欧美日韩亚洲综合在线| 国产毛片精品国产一区二区三区| 亚洲精品乱码久久久久久久久 | 日本一区二区不卡视频| 欧美卡1卡2卡| eeuss影院一区二区三区| 日本在线不卡视频一二三区| 中文一区一区三区高中清不卡| 欧美高清视频一二三区| 成人精品在线视频观看| 蜜桃视频免费观看一区| 日韩美女视频一区| 久久蜜桃av一区精品变态类天堂| 色综合网色综合| 国产精品正在播放| 免费观看久久久4p| 亚洲码国产岛国毛片在线| 久久精品一区二区三区不卡| 8v天堂国产在线一区二区| 色综合中文综合网| 欧美电视剧在线看免费| 欧美日韩在线播放一区|