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

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

?? tmc.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):

    /* Start the specified timer.  */
    TMC_Start_Timer(timer, time);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TMC_Stop_Task_Timer                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function is responsible for stopping a task timer.  Note    */
/*      that there are some special protection considerations since      */
/*      this function is called from the task control component.  This   */
/*      routine must be called from Supervisor mode in a Supervisor/User */
/*      mode switching kernel.                                           */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      TCC_Resume_Task                     Resume task function         */
/*      TCC_Terminate_Task                  Terminate task function      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      TMC_Stop_Timer                      Stop the timer               */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      timer                               Timer control block pointer  */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Removed protection logic since                   */
/*                      system protect is in force at                    */
/*                      the time this function is                        */
/*                      called, resulting in                             */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
VOID  TMC_Stop_Task_Timer(TM_TCB *timer)
{

    /* Stop the specified timer - if it is still active.  */
    if (timer -> tm_next_timer)

        TMC_Stop_Timer(timer);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TMC_Start_Timer                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function is responsible for starting both application and   */
/*      task timers.  This routine must be called from Supervisor mode   */
/*      in a Supervisor/User mode switching kernel.                      */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      TMC_Control_Timer                   Control application timer    */
/*      TMC_Start_Task_Timer                Start task timer             */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      TMT_Read_Timer                      Read current timer counter   */
/*      TMT_Adjust_Timer                    Adjust the count-down timer  */
/*      TMT_Enable_Timer                    Enable count-down timer      */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      timer                               Timer control block pointer  */
/*      time                                Time associated with timer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Added logic to check for timer                   */
/*                        expiration before or during                    */
/*                        another LISR's access,                         */
/*                        resulting in version 1.0a                      */
/*      08-09-1993      Verified version 1.0a                            */
/*      03-01-1994      Removed disable timer logic to                   */
/*                        insure there is no timer loss,                 */
/*                        added register logic,                          */
/*                        resulting in version 1.1                       */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
VOID  TMC_Start_Timer(TM_TCB *timer, UNSIGNED time)
{

R1 TM_TCB      *list_ptr;                   /* Working pointer timer ptr */
UNSIGNED        elapsed;                    /* Elapsed time variable     */
INT             done;                       /* Search finished flag      */


    /* Note that protection over the active timer list is in force when this
       function is called.  */

    /* Determine if the active list is empty.  */
    if (TMD_Active_Timers_List == NU_NULL)
    {

        /* Place the timer on an empty list.  */
        timer -> tm_next_timer =      timer;
        timer -> tm_previous_timer =  timer;

        /* Link the timer to the list head.  */
        TMD_Active_Timers_List =  timer;

        /* Setup the actual count-down timer structures.  */
        TMD_Timer_Start =  time;
        timer -> tm_remaining_time =  time;


        /* BUG FIX FOR NU_RESET WITH INITIAL TIME OF 0 */
        /* Determine if there is any time remaining on the timer.
           If so, enable the timer. Otherwise, the Timer HISR is
           already pending, so skip starting the timer again.  */

        if (time != 0)
           /* Start the actual count-down timer.  */
           TMT_Enable_Timer(TMD_Timer_Start);
        else
           TMD_Timer_State =  TM_EXPIRED;

    }
    else
    {

        /* Place the new timer into the list.  */

        /* Pickup the head of the list.  */
        list_ptr =  TMD_Active_Timers_List;

        /* Determine if the timer is being added while the timer
           expiration task is running.  If so, don't attempt to adjust
           the expiration list.  If not, adjust the list.  */
        if (!TMD_Active_List_Busy)
        {

            /* Calculate the elapsed amount of time from the last timer
               request.  */
            elapsed =  TMD_Timer_Start -  TMT_Read_Timer();

            /* Adjust the first entry in the timer list and the timer
               start value accordingly.  */
            TMD_Timer_Start =  TMD_Timer_Start - elapsed;

            /* Make sure the remaining time is never below zero.  */
            if (list_ptr -> tm_remaining_time > elapsed)
            {
                list_ptr -> tm_remaining_time = list_ptr -> tm_remaining_time
                    - elapsed;
            }
            else
            {
                list_ptr -> tm_remaining_time = 0;
            }


        }

        /* At this point the timer list is accurate again.  Find the
           appropriate place on the timer list for the new timer.  */

        /* Determine where to place the timer in the list.  */
        done =  NU_FALSE;
        do
        {

            /* Determine if the timer belongs before the current timer
               pointed to by list_ptr.  */
            if (time < list_ptr -> tm_remaining_time)
            {

                /* Update the time of the next timer.  */
                list_ptr -> tm_remaining_time =
                                list_ptr -> tm_remaining_time - time;

                /* Determine if an insertion at the head of the list is
                   present.  */
                if (list_ptr == TMD_Active_Timers_List)

                    /* Move the list head to the new timer.  */
                    TMD_Active_Timers_List =  timer;

                /* Set the done flag to end the search.  */
                done =  NU_TRUE;
            }
            else
            {

                /* Decrement the time by the remaining value of each timer in
                   the list.  In this way, the list never has to be searched
                   again.  */
                time =  time - list_ptr -> tm_remaining_time;

                /* Move the list pointer to the next timer in the list.  */
                list_ptr =  list_ptr -> tm_next_timer;

                /* Check to see if the list has wrapped around.  */
                if (list_ptr == TMD_Active_Timers_List)

                    /* Searching is done.  */
                    done =  NU_TRUE;
            }
        } while (!done);

        /* Link the new timer into the list.  */
        timer -> tm_next_timer =      list_ptr;
        timer -> tm_previous_timer =  list_ptr -> tm_previous_timer;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品九九99久久| 亚洲精品日韩专区silk| 91首页免费视频| 麻豆精品一区二区av白丝在线| 久久久美女艺术照精彩视频福利播放| 91行情网站电视在线观看高清版| 国内外成人在线视频| 亚洲成人激情自拍| 亚洲女爱视频在线| 国产午夜亚洲精品羞羞网站| 91精品午夜视频| 亚洲午夜精品在线| **性色生活片久久毛片| 欧美精品一区二区不卡| 91精品国产91久久久久久一区二区| 97久久精品人人爽人人爽蜜臀| 国产一区二区三区高清播放| 青青草一区二区三区| 亚洲成人av一区二区| 亚洲欧洲日产国产综合网| 精品国产一区二区三区久久久蜜月| 奇米精品一区二区三区四区| 亚洲综合精品自拍| 日韩久久一区二区| 国产精品麻豆网站| 国产农村妇女毛片精品久久麻豆| 精品国产乱码久久久久久夜甘婷婷 | 精品国产污污免费网站入口| 欧美高清www午色夜在线视频| 亚洲一卡二卡三卡四卡| 亚洲美女视频一区| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲国产成人自拍| 国产精品久久久久婷婷二区次| 久久久综合激的五月天| 国产亚洲1区2区3区| 国产欧美一区视频| 中文字幕欧美区| 国产精品卡一卡二卡三| 中文字幕一区在线观看视频| 国产精品理论片| 亚洲日本欧美天堂| 亚洲国产综合91精品麻豆| 亚洲国产精品久久久男人的天堂 | 天堂久久一区二区三区| 日韩中文字幕不卡| 精品一区二区三区在线播放| 国产精品中文字幕日韩精品| 成人免费的视频| 91日韩精品一区| 欧美日韩国产影片| 日韩欧美国产一区二区三区| 久久久久久99精品| 1024成人网| 亚洲18影院在线观看| 久久99久久久欧美国产| 高清成人免费视频| 在线观看一区不卡| 日韩一级片网站| 久久精品一区蜜桃臀影院| 国产精品欧美综合在线| 亚洲在线视频一区| 久久99热这里只有精品| 不卡大黄网站免费看| 欧美日韩三级视频| 亚洲精品在线观看网站| 亚洲视频1区2区| 人禽交欧美网站| 成人白浆超碰人人人人| 欧美日韩精品一区二区三区| 精品国产99国产精品| 亚洲人成网站精品片在线观看| 欧美一区二区三区日韩视频| 日本一区二区久久| 午夜欧美电影在线观看| 国产v日产∨综合v精品视频| 欧美在线视频日韩| 国产精品18久久久久久vr| 日本乱码高清不卡字幕| 精品国产乱码久久久久久牛牛| 亚洲欧美在线视频| 日本美女视频一区二区| av电影天堂一区二区在线观看| 91精品久久久久久蜜臀| 亚洲色图一区二区三区| 九色porny丨国产精品| 日本乱人伦aⅴ精品| 国产欧美精品一区aⅴ影院| 制服丝袜亚洲网站| 中文字幕日韩欧美一区二区三区| 免费成人av资源网| 色欧美片视频在线观看| 久久精品欧美一区二区三区麻豆| 亚洲国产毛片aaaaa无费看 | 亚洲成人综合视频| 成人av影院在线| 欧美成人r级一区二区三区| 91麻豆自制传媒国产之光| 精品久久久久香蕉网| 亚洲夂夂婷婷色拍ww47| www.日韩精品| 久久免费看少妇高潮| 日韩av在线免费观看不卡| 色激情天天射综合网| 欧美国产日韩一二三区| 国内外成人在线视频| 欧美高清视频一二三区| 亚洲综合小说图片| 色综合色综合色综合| 久久午夜电影网| 捆绑调教美女网站视频一区| 欧美日韩五月天| 亚洲一区二区不卡免费| 91蜜桃在线免费视频| 国产精品免费aⅴ片在线观看| 精品一区二区久久| 日韩一区二区免费在线电影| 日日摸夜夜添夜夜添国产精品| 在线亚洲一区观看| 亚洲黄色尤物视频| 色又黄又爽网站www久久| 自拍偷自拍亚洲精品播放| 成人亚洲一区二区一| 欧美精彩视频一区二区三区| 国产精品1区2区3区| 久久婷婷色综合| 国产精品一区二区你懂的| 久久这里只有精品视频网| 精品影院一区二区久久久| 精品国产一区二区三区忘忧草 | 日韩视频永久免费| 免费成人av在线| 欧美电视剧在线观看完整版| 蜜桃视频一区二区| 精品1区2区在线观看| 国产一区高清在线| 欧美激情综合在线| av在线不卡电影| 亚洲色图在线看| 在线观看av不卡| 五月激情综合婷婷| 欧美va日韩va| 国产成都精品91一区二区三| 国产精品久久久久影院| 色哟哟日韩精品| 亚洲电影激情视频网站| 欧美一级欧美三级| 国产精品一区二区三区乱码 | 蜜桃一区二区三区四区| 国产精品99久久久久久久女警 | 久久久久久久久久久久电影| 国产乱一区二区| 亚洲欧洲av在线| 欧美在线观看视频在线| 男男gaygay亚洲| 久久嫩草精品久久久久| 99久久久精品| 日日夜夜精品视频免费| 欧美变态tickle挠乳网站| 国产在线精品视频| 国产精品美女久久久久aⅴ国产馆| 91免费观看视频| 久久精品国产澳门| 国产精品视频一二| 欧美美女直播网站| 国内精品久久久久影院一蜜桃| 中文字幕一区二区三| 欧美日本韩国一区二区三区视频 | 色综合天天综合色综合av| 亚洲国产一区二区三区| 精品国产乱码久久久久久老虎| av影院午夜一区| 日韩精品乱码免费| 久久久国际精品| 在线视频一区二区免费| 国产资源精品在线观看| 一区二区在线观看免费视频播放 | 亚洲高清视频的网址| xnxx国产精品| 91久久国产综合久久| 国产一区啦啦啦在线观看| 亚洲一区在线观看网站| 久久嫩草精品久久久精品一| 欧美视频一区二区| 国产激情一区二区三区四区| 亚洲va在线va天堂| 国产精品日产欧美久久久久| 69堂成人精品免费视频| 91麻豆福利精品推荐| 精品综合久久久久久8888| 亚洲午夜一二三区视频| 中文成人av在线| 日韩三级在线观看| 欧美在线免费观看视频| 成人黄色片在线观看| 久久电影网电视剧免费观看| 亚洲午夜免费视频| 国产精品久久久一区麻豆最新章节| 日韩精品一区二区三区三区免费| 色999日韩国产欧美一区二区|