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

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

?? tx_ta.c

?? ThreadX優秀的硬實時操作系統.This Express Start Guide is designed to help you install and use ThreadX for the
?? C
字號:
/**************************************************************************/ 
/*                                                                        */ 
/*            Copyright (c) 1996-2000 by Express Logic Inc.               */ 
/*                                                                        */ 
/*  This software is copyrighted by and is the sole property of Express   */ 
/*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
/*  in the software remain the property of Express Logic, Inc.  This      */ 
/*  software may only be used in accordance with the corresponding        */ 
/*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
/*  distribution, or disclosure of this software is expressly forbidden.  */ 
/*                                                                        */
/*  This Copyright notice may not be removed or modified without prior    */ 
/*  written consent of Express Logic, Inc.                                */ 
/*                                                                        */ 
/*  Express Logic, Inc. reserves the right to modify this software        */ 
/*  without notice.                                                       */ 
/*                                                                        */ 
/*  Express Logic, Inc.                                                   */
/*  11440 West Bernardo Court               info@expresslogic.com         */
/*  Suite 366                               http://www.expresslogic.com   */
/*  San Diego, CA  92127                                                  */
/*                                                                        */
/**************************************************************************/


/**************************************************************************/
/**************************************************************************/
/**                                                                       */ 
/** ThreadX Component                                                     */ 
/**                                                                       */
/**   Timer Management (TIM)                                              */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/

#define TX_SOURCE_CODE


/* Include necessary system files.  */

#include    "tx_api.h"
#include    "tx_tim.h"


/**************************************************************************/ 
/*                                                                        */ 
/*  FUNCTION                                               RELEASE        */ 
/*                                                                        */ 
/*    _tx_timer_activate                                  PORTABLE C      */ 
/*                                                           3.0f         */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This function places the specified internal timer in the proper     */ 
/*    place in the timer expiration list.  If the timer is already active */ 
/*    this function does nothing.                                         */ 
/*                                                                        */ 
/*  INPUT                                                                 */ 
/*                                                                        */ 
/*    timer_ptr                         Pointer to timer control block    */ 
/*                                                                        */ 
/*  OUTPUT                                                                */ 
/*                                                                        */ 
/*    TX_SUCCESS                        Always returns success            */ 
/*                                                                        */ 
/*  CALLS                                                                 */ 
/*                                                                        */ 
/*    None                                                                */ 
/*                                                                        */ 
/*  CALLED BY                                                             */ 
/*                                                                        */ 
/*    _tx_timer_thread_entry            Timer thread processing           */ 
/*    _tx_thread_sleep                  Thread sleep function             */ 
/*    -tx_timer_activate_api            Application timer activate        */ 
/*    Suspension Timeouts                                                 */ 
/*                                                                        */ 
/*  RELEASE HISTORY                                                       */ 
/*                                                                        */ 
/*    DATE              NAME                      DESCRIPTION             */ 
/*                                                                        */ 
/*  12-31-1996     William E. Lamie         Initial Version 3.0           */ 
/*  07-04-1997     William E. Lamie         Corrected a problem that left */ 
/*                                            an activated timer with a   */ 
/*                                            NULL head pointer.  This    */ 
/*                                            resulted in early timer     */ 
/*                                            expirations and other       */ 
/*                                            list management problems.   */ 
/*                                            The new version is 3.0a.    */ 
/*  11-11-1997     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0b.  */ 
/*  12-25-1997     William E. Lamie         Removed decrement of the      */ 
/*                                            timer's remaining ticks. It */ 
/*                                            is now done in the timer    */ 
/*                                            expiration processing,      */ 
/*                                            resulting in version 3.0c.  */ 
/*  01-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0e.  */ 
/*  11-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0f.  */ 
/*                                                                        */ 
/**************************************************************************/ 
UINT    _tx_timer_activate(TX_INTERNAL_TIMER *timer_ptr)
{

TX_INTERRUPT_SAVE_AREA

TX_INTERNAL_TIMER           **timer_list;
REG_3 UINT                  expiration_time;


    /* Disable interrupts.  */
    TX_DISABLE

    /* Determine if the timer still needs activation.  */
    if ((timer_ptr -> tx_remaining_ticks) && 
                                    (timer_ptr -> tx_list_head == TX_NULL))
    {

        /* Activate the timer.  */

        /* Calculate the amount of time remaining for the timer.  */
        if (timer_ptr -> tx_remaining_ticks > TX_TIMER_ENTRIES)
        {

            /* Set expiration time to the maximum number of entries.  */
            expiration_time =  TX_TIMER_ENTRIES - 1;
        }
        else
        {

            /* Timer value fits in the timer entries.  */

            /* Set the expiration time.  */
            expiration_time =  (UINT) timer_ptr -> tx_remaining_ticks - 1;
        }

        /* At this point, we are ready to put the timer on one of
           the timer lists.  */
    
        /* Calculate the proper place for the timer.  */
        timer_list =  _tx_timer_current_ptr + expiration_time;
        if (timer_list >= _tx_timer_list_end)
        {

            /* Wrap from the beginning of the list.  */
            timer_list =  _tx_timer_list_start +
                                        (timer_list - _tx_timer_list_end);
        }

        /* Now put the timer on this list.  */
        if (*timer_list)
        {

            /* This list is not NULL, add current timer to the end. */
            timer_ptr -> tx_active_next =                          *timer_list;
            timer_ptr -> tx_active_previous =                      (*timer_list) -> tx_active_previous;
            (timer_ptr -> tx_active_previous) -> tx_active_next =  timer_ptr;
            (*timer_list) -> tx_active_previous =                  timer_ptr;
            timer_ptr -> tx_list_head =                            timer_list;
        }
        else
        {
                
            /* This list is NULL, just put the new timer on it.  */

            /* Setup the links in this timer.  */
            timer_ptr -> tx_active_next =      timer_ptr;
            timer_ptr -> tx_active_previous =  timer_ptr;
            timer_ptr -> tx_list_head =        timer_list;

            /* Setup the list head pointer.  */
            *timer_list =  timer_ptr;
        }                
    }

    /* Restore interrupts.  */
    TX_RESTORE

    /* Return TX_SUCCESS.  */
    return(TX_SUCCESS);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品白丝在线| 久久精品国产久精国产| 国产美女娇喘av呻吟久久| 欧美在线观看18| 一区二区三区资源| 97久久精品人人做人人爽| 久久久精品黄色| 国产成人综合自拍| 欧美韩国日本不卡| 粉嫩蜜臀av国产精品网站| 国产午夜精品一区二区| 国产综合一区二区| 欧美—级在线免费片| 波多野结衣精品在线| 日韩理论片网站| 欧美综合视频在线观看| 亚洲福利一区二区三区| 国产精品日韩精品欧美在线| 成人欧美一区二区三区| 国产aⅴ综合色| 18成人在线观看| 欧美日韩夫妻久久| 视频一区二区三区中文字幕| 日韩欧美黄色影院| 国产成人无遮挡在线视频| 亚洲视频在线一区二区| 7777精品久久久大香线蕉| 国产乱码精品一区二区三区忘忧草| 久久天天做天天爱综合色| 色综合久久久久| 国产夫妻精品视频| 国产91丝袜在线观看| 日韩免费在线观看| av不卡免费在线观看| 亚洲成国产人片在线观看| 欧美电视剧在线观看完整版| 99久久精品99国产精品| 免费一级片91| 一区二区三区欧美久久| 久久综合九色综合欧美98| 欧美日韩精品一区二区| 成人午夜电影网站| 男人的天堂久久精品| 亚洲靠逼com| 亚洲国产精品久久人人爱| av一区二区不卡| 男男gaygay亚洲| 亚洲va欧美va人人爽| 亚洲婷婷综合久久一本伊一区| 精品久久国产97色综合| 欧美老肥妇做.爰bbww| 91福利资源站| 91麻豆国产福利在线观看| 国产精品香蕉一区二区三区| 日韩影院精彩在线| 男男视频亚洲欧美| 精品一区二区久久久| 日本va欧美va欧美va精品| 亚洲小说欧美激情另类| 亚洲激情在线激情| 久久你懂得1024| 欧美一区二区三区人| 欧美久久久一区| 日韩欧美中文字幕精品| 337p粉嫩大胆色噜噜噜噜亚洲| 久久影院午夜论| 欧美激情综合在线| 一区二区三区免费观看| 亚洲国产精品久久一线不卡| 一区二区三区视频在线观看| 一区二区三区四区在线| 婷婷六月综合网| 国产一区激情在线| 99久久精品99国产精品 | 555夜色666亚洲国产免| 日韩三级视频中文字幕| 一区二区免费看| 一区二区三区日韩| 久久草av在线| 日韩手机在线导航| 国产欧美一区二区精品婷婷| 亚洲精品中文字幕乱码三区| 日本成人中文字幕在线视频| 成人性生交大片免费看中文 | 日韩电影一区二区三区四区| 国产精品白丝jk黑袜喷水| 欧美亚洲一区二区三区四区| 久久亚洲影视婷婷| 日韩av在线播放中文字幕| 国产另类ts人妖一区二区| 欧美丝袜自拍制服另类| 欧美国产1区2区| 极品美女销魂一区二区三区免费| 97se亚洲国产综合自在线观| 欧美日韩dvd在线观看| 亚洲欧美偷拍三级| 国产91精品久久久久久久网曝门 | 91在线视频播放地址| 久久蜜桃一区二区| 九色porny丨国产精品| 欧美一区二区国产| 天堂久久一区二区三区| 777午夜精品视频在线播放| 亚洲精品视频自拍| 在线视频一区二区三| 一区二区三区日韩欧美精品| 欧美中文字幕一区二区三区亚洲 | 日韩欧美123| 国产精品美女一区二区| 香蕉久久一区二区不卡无毒影院| 亚洲欧美另类久久久精品| 日本美女一区二区三区视频| 欧美嫩在线观看| 裸体一区二区三区| 久久亚洲春色中文字幕久久久| 卡一卡二国产精品| 国产女主播视频一区二区| av在线这里只有精品| 尤物av一区二区| 日韩欧美高清一区| 成人午夜在线播放| 亚洲成av人片一区二区| 精品国产一二三| heyzo一本久久综合| 精品一区二区av| 久久精品一区蜜桃臀影院| 99视频在线观看一区三区| 一区二区三区成人| 色婷婷综合久久久| 免费成人小视频| 亚洲日本一区二区| 91精品国产乱| 91看片淫黄大片一级在线观看| 日韩激情一二三区| 亚洲人成精品久久久久久| 日韩一区二区三区高清免费看看| 成人美女视频在线看| 欧美aaa在线| 亚洲成a人片在线观看中文| 国产欧美日韩视频在线观看| 欧美一级淫片007| 欧美性高清videossexo| av亚洲精华国产精华精华| 国产超碰在线一区| 亚洲成人资源网| 一区二区视频在线看| 国产精品美女久久久久久2018| 精品美女一区二区三区| 欧美精品久久久久久久久老牛影院| 91蜜桃网址入口| 91影视在线播放| 色悠悠亚洲一区二区| eeuss鲁片一区二区三区 | 亚洲国产电影在线观看| 久久综合九色综合97婷婷| 欧美大片拔萝卜| 欧美成人r级一区二区三区| 精品日韩在线观看| 精品免费日韩av| 国产亚洲美州欧州综合国 | 国产福利一区二区三区视频 | 精品av久久707| 精品国产乱码久久久久久1区2区 | 亚洲欧美日韩综合aⅴ视频| 日韩一区日韩二区| 亚洲精品乱码久久久久久日本蜜臀| 一色桃子久久精品亚洲| 一区二区欧美视频| 日本v片在线高清不卡在线观看| 麻豆国产一区二区| 国产a区久久久| 欧美卡1卡2卡| 日本一区二区三区在线不卡| 亚洲男人天堂一区| 美国av一区二区| 99久久久久久| 精品久久一二三区| 1024亚洲合集| 久久99久久久欧美国产| 不卡的av在线| 久久新电视剧免费观看| 一区二区日韩av| 国产成a人亚洲| 精品动漫一区二区三区在线观看| 亚洲欧洲av一区二区三区久久| 日日夜夜免费精品| 色综合久久久久综合体| 国产色婷婷亚洲99精品小说| 亚洲地区一二三色| 日本福利一区二区| 一区二区中文字幕在线| 久草精品在线观看| 日韩欧美一级特黄在线播放| 亚洲国产欧美一区二区三区丁香婷| 国产一区二区精品在线观看| 日韩天堂在线观看| 亚洲一区免费在线观看| 色婷婷综合久久久中文字幕| 国产精品色一区二区三区| 国产在线麻豆精品观看|