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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? tx_tda.c

?? ThreadX優(yōu)秀的硬實(shí)時(shí)操作系統(tǒng).This Express Start Guide is designed to help you install and use ThreadX for the
?? C
字號(hào):
/**************************************************************************/ 
/*                                                                        */ 
/*            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_deactivate_api                            PORTABLE C      */ 
/*                                                           3.0f         */ 
/*  AUTHOR                                                                */ 
/*                                                                        */ 
/*    William E. Lamie, Express Logic, Inc.                               */ 
/*                                                                        */ 
/*  DESCRIPTION                                                           */ 
/*                                                                        */ 
/*    This function deactivates the specified application timer.          */ 
/*                                                                        */ 
/*  INPUT                                                                 */ 
/*                                                                        */ 
/*    timer_ptr                         Pointer to timer control block    */ 
/*                                                                        */ 
/*  OUTPUT                                                                */ 
/*                                                                        */ 
/*    TX_SUCCESS                        Always returns success            */ 
/*                                                                        */ 
/*  CALLS                                                                 */ 
/*                                                                        */ 
/*    None                                                                */ 
/*                                                                        */ 
/*  CALLED BY                                                             */ 
/*                                                                        */ 
/*    Application Code                                                    */ 
/*                                                                        */ 
/*  RELEASE HISTORY                                                       */ 
/*                                                                        */ 
/*    DATE              NAME                      DESCRIPTION             */ 
/*                                                                        */ 
/*  12-31-1996     William E. Lamie         Initial Version 3.0           */ 
/*  11-11-1997     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0b.  */ 
/*  12-25-1997     William E. Lamie         Added logic to calculate and  */ 
/*                                            save the remaining time     */ 
/*                                            left before expiration,     */ 
/*                                            resulting in version 3.0c.  */ 
/*  03-01-1998     William E. Lamie         Replaced the timer deactivate */ 
/*                                            call with in-line logic,    */ 
/*                                            resulting in version 3.0d.  */ 
/*  01-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            resulting in version 3.0e.  */ 
/*  11-01-1999     William E. Lamie         Modified comment(s),          */ 
/*                                            added logic to track events,*/ 
/*                                            resulting in version 3.0f.  */ 
/*                                                                        */ 
/**************************************************************************/ 
UINT    _tx_timer_deactivate_api(TX_TIMER *timer_ptr)
{
TX_INTERRUPT_SAVE_AREA

REG_1  TX_INTERNAL_TIMER    *internal_ptr;              /* Internal timer pointer       */ 
REG_2  ULONG                ticks_left;                 /* Ticks left before expiration */ 

    
    /* Setup internal timer pointer.  */
    internal_ptr =  &(timer_ptr -> tx_timer_internal);

    /* Disable interrupts while the remaining time before expiration is
       calculated.  */
    TX_DISABLE

    /* Log this kernel call.  */
    TX_EL_TIMER_DEACTIVATE_INSERT

    /* Determine if the head pointer is within the timer expiration list.  */
    if ((internal_ptr -> tx_list_head >= _tx_timer_list_start) &&
        (internal_ptr -> tx_list_head < _tx_timer_list_end))
    {

        /* This timer is active and has not yet expired.  */

        /* Calculate the amount of time that has elapsed since the timer
           was activated.  */

        /* Is this timer's entry after the current timer pointer?  */
        if (internal_ptr -> tx_list_head >= _tx_timer_current_ptr)
        {

            /* Calculate ticks left to expiration - just the difference between this 
               timer's entry and the current timer pointer.  */
            ticks_left =  (internal_ptr -> tx_list_head - _tx_timer_current_ptr) + 1;
        }
        else
        {

            /* Calculate the ticks left with a wrapped list condition.  */
            ticks_left =  (internal_ptr -> tx_list_head - _tx_timer_list_start);
            ticks_left =  ticks_left + (_tx_timer_list_end - _tx_timer_current_ptr) + 1;
        }

        /* Adjust the remaining ticks accordingly.  */
        if (internal_ptr -> tx_remaining_ticks > TX_TIMER_ENTRIES)
        {
            
            /* Subtract off the last full pass throught the timer list and add the
               time left.  */
            internal_ptr -> tx_remaining_ticks =  
                    (internal_ptr -> tx_remaining_ticks - TX_TIMER_ENTRIES) + ticks_left;
        }
        else
        {

            /* Just put the ticks left into the timer's remaining ticks.  */
            internal_ptr -> tx_remaining_ticks =  ticks_left;
        }

    }

    /* Determine if the timer still needs deactivation.  */
    if (internal_ptr -> tx_list_head)
    {

        /* See if this is the only timer in the list.  */
        if (internal_ptr == internal_ptr -> tx_active_next)
        {

            /* Yes, the only timer on the list.  */

            /* Determine if the head pointer needs to be updated.  */
            if (*(internal_ptr -> tx_list_head) == internal_ptr)
            {

                /* Update the head pointer.  */
                *(internal_ptr -> tx_list_head) =  TX_NULL;
            }

            /* Clear the timer's list head pointer.  */
            internal_ptr -> tx_list_head =  TX_NULL;
        }
        else
        {

            /* At least one more timer is on the same expiration list.  */

            /* Update the links of the adjacent timers.  */
            (internal_ptr -> tx_active_next) -> tx_active_previous =  
                                                    internal_ptr -> tx_active_previous;
            (internal_ptr -> tx_active_previous) -> tx_active_next =
                                                    internal_ptr -> tx_active_next;

            /* Determine if the head pointer needs to be updated.  */
            if (*(internal_ptr -> tx_list_head) == internal_ptr)
            {

                /* Update the next timer in the list with the list head 
                   pointer.  */
                (internal_ptr -> tx_active_next) -> tx_list_head =  internal_ptr -> tx_list_head;

                /* Update the head pointer.  */
                *(internal_ptr -> tx_list_head) =  internal_ptr -> tx_active_next;
            }

            /* Clear the timer's list head pointer.  */
            internal_ptr -> tx_list_head =  TX_NULL;
        }
    }

    /* Restore interrupts to previous posture.  */
    TX_RESTORE

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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品一区四区| 成人av资源在线观看| 精品理论电影在线| 99re在线视频这里只有精品| 日产精品久久久久久久性色| 中文一区二区在线观看| 一区二区三区不卡视频 | 亚洲成人你懂的| 亚洲精品在线三区| av亚洲精华国产精华精华| 亚洲成人激情综合网| 久久精品人人做人人综合 | 国产91对白在线观看九色| 亚洲成人动漫精品| 国产精品福利影院| 精品国产电影一区二区| 欧美日韩www| 一本在线高清不卡dvd| 国产美女视频91| 日本亚洲最大的色成网站www| 亚洲免费av高清| 久久午夜免费电影| 欧美一级二级三级蜜桃| 欧美视频三区在线播放| 99久久亚洲一区二区三区青草| 精品一区二区免费看| 亚洲mv在线观看| 一区二区三区中文在线观看| 国产精品久久久久久久第一福利 | 视频一区二区三区入口| 亚洲精品中文在线影院| 国产精品久久久久影院亚瑟| 精品粉嫩超白一线天av| 日韩一区二区三区高清免费看看| 欧美日韩视频一区二区| 91激情五月电影| 91女神在线视频| 99麻豆久久久国产精品免费| 岛国一区二区三区| 成人午夜短视频| 成人免费视频免费观看| 国产精品一品二品| 国产aⅴ精品一区二区三区色成熟| 国产裸体歌舞团一区二区| 黑人精品欧美一区二区蜜桃| 久久不见久久见免费视频1| 麻豆91免费观看| 免费不卡在线视频| 九色综合国产一区二区三区| 久久精品国产精品亚洲精品| 九九九久久久精品| 国产乱人伦偷精品视频不卡| 国产精品综合网| 成人高清免费观看| heyzo一本久久综合| 91视频观看视频| 欧美亚洲国产一区二区三区| 欧美午夜电影网| 日韩一区二区三区电影| 久久中文字幕电影| 国产精品全国免费观看高清| av电影天堂一区二区在线观看| 成人av在线一区二区三区| 99综合电影在线视频| 91久久久免费一区二区| 欧美三级资源在线| 欧美第一区第二区| 国产欧美一区二区精品性色超碰| 国产精品乱码一区二区三区软件 | 久久综合给合久久狠狠狠97色69| 欧美精选午夜久久久乱码6080| 欧美精品日日鲁夜夜添| 69p69国产精品| 久久久亚洲欧洲日产国码αv| 国产精品每日更新在线播放网址 | 国产精品区一区二区三区| 亚洲精品欧美专区| 日韩av电影天堂| 国产91精品精华液一区二区三区 | 欧美曰成人黄网| 欧美一级理论性理论a| 国产午夜久久久久| 一区二区三区蜜桃| 久久精品理论片| 99re在线视频这里只有精品| 欧美高清激情brazzers| 国产欧美日韩在线视频| 亚洲午夜精品在线| 国产激情91久久精品导航| 在线观看一区日韩| 久久久久九九视频| 午夜精品影院在线观看| 国产女人水真多18毛片18精品视频 | 国产欧美日产一区| 亚洲不卡av一区二区三区| 国产精品自拍三区| 欧美精品一卡两卡| 中文字幕亚洲区| 久久精品国产亚洲a| 色婷婷精品大视频在线蜜桃视频 | 亚洲男人的天堂网| 极品美女销魂一区二区三区| 91视频观看免费| 2021中文字幕一区亚洲| 亚洲国产日韩精品| 成人一区二区三区在线观看| 91精品黄色片免费大全| 中文字幕视频一区二区三区久| 日韩av电影天堂| 色婷婷久久久综合中文字幕| 久久精品视频免费观看| 日本亚洲一区二区| 91国产成人在线| 国产精品美女久久久久久久网站| 美日韩一区二区| 欧美日韩视频在线第一区| 国产精品久久久久7777按摩| 免费高清视频精品| 亚洲国产日韩a在线播放性色| 国产成人久久精品77777最新版本| 51精品久久久久久久蜜臀| 亚洲美女淫视频| caoporen国产精品视频| 久久婷婷色综合| 欧美体内she精高潮| 国产成人av电影免费在线观看| 欧美日韩国产一区| 亚洲精品成人在线| 成人a区在线观看| 久久久国产综合精品女国产盗摄| 麻豆精品视频在线观看视频| 在线播放视频一区| 亚洲va欧美va人人爽午夜| 在线观看免费成人| 樱桃视频在线观看一区| 97精品久久久久中文字幕 | 久久精品亚洲精品国产欧美| 久久99久久99精品免视看婷婷| 制服丝袜中文字幕一区| 天天综合网 天天综合色| 欧美色网站导航| 亚洲午夜一二三区视频| 欧美色精品天天在线观看视频| 亚洲尤物视频在线| 欧美网站一区二区| 天天影视色香欲综合网老头| 欧美高清视频在线高清观看mv色露露十八 | 免费观看成人鲁鲁鲁鲁鲁视频| 91精品国产免费| 久久国产欧美日韩精品| 337p粉嫩大胆噜噜噜噜噜91av| 成人免费av网站| 国产精品视频看| a4yy欧美一区二区三区| 99久久免费国产| 亚洲综合一区二区三区| 欧美日韩一区二区在线观看| 日韩精品成人一区二区三区| 制服.丝袜.亚洲.另类.中文| 久久国产尿小便嘘嘘尿| 国产欧美日韩综合| 91丨九色丨尤物| 亚洲gay无套男同| 日韩一区二区免费视频| 国产福利电影一区二区三区| 国产精品日韩精品欧美在线| 在线精品亚洲一区二区不卡| 日韩精品欧美成人高清一区二区| 日韩写真欧美这视频| 国产91清纯白嫩初高中在线观看| 亚洲欧美日韩一区二区| 欧美日韩国产欧美日美国产精品| 久久99精品久久久久久动态图| 国产精品三级视频| 欧美日韩国产另类一区| 国产一区二区主播在线| 亚洲精品乱码久久久久久| 视频一区二区中文字幕| 欧美国产日韩一二三区| 欧美性受xxxx黑人xyx| 久久99国产精品尤物| 亚洲欧洲色图综合| 欧美一卡二卡三卡四卡| 国产精品的网站| 日韩一级免费观看| 国产精品一区二区三区网站| 亚洲色图20p| 欧美一区二区私人影院日本| 懂色中文一区二区在线播放| 亚洲综合久久久| 久久只精品国产| 精品视频一区二区不卡| 国产成a人无v码亚洲福利| 亚洲国产色一区| 中文一区一区三区高中清不卡| 欧美电影在哪看比较好| 99麻豆久久久国产精品免费优播| 蜜臀av性久久久久av蜜臀妖精| 综合激情成人伊人| 26uuu另类欧美|