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

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

?? tms.c

?? 基于OMAP1510的Nucleus移植代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               Copyright Mentor Graphics Corporation 2002              */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      tms.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      TM - Timer Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains supplemental routines for the timer           */
/*      management component.                                            */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      TMS_Create_Timer                    Create an application timer  */
/*      TMS_Delete_Timer                    Delete an application timer  */
/*      TMS_Reset_Timer                     Reset application timer      */
/*      TMS_Control_Timer                   Enable/Disable application   */
/*                                            timer                      */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      tm_extr.h                           Timer functions              */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1994      Created initial version 1.1 from                 */
/*                        previous version of TMC.C                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      03-24-1998      Released version 1.3.                            */
/*      03-26-1999      Released 1.11m (new release                      */
/*                        numbering scheme)                              */
/*      04-17-2002      Released version 1.13m                           */
/*      11-07-2002      Released version 1.14                            */
/*************************************************************************/
#define         NU_SOURCE_FILE


#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "tm_extr.h"                 /* Timer functions           */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* ProView interface         */


/* Define external inner-component global data references.  */

extern CS_NODE        *TMD_Created_Timers_List;
extern UNSIGNED        TMD_Total_Timers;
extern TM_TCB         *TMD_Active_Timers_List;
extern INT             TMD_Active_List_Busy;
extern TC_PROTECT      TMD_Created_List_Protect;


/* Define internal function prototypes.  */

VOID            TMC_Start_Timer(TM_TCB *timer, UNSIGNED time);
VOID            TMC_Stop_Timer(TM_TCB *timer);



/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TMS_Create_Timer                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates an application timer and places it on the  */
/*      list of created timers.  The timer is activated if designated by */
/*      the enable parameter.                                            */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      TMSE_Create_Timer                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add node to linked-list      */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Data structure protect       */
/*      TCT_Unprotect                       Un-protect data structure    */
/*      TMS_Control_Timer                   Enable the new timer         */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      timer_ptr                           Timer control block pointer  */
/*      name                                Timer name                   */
/*      expiration_routine                  Timer expiration routine     */
/*      id                                  Timer expiration ID          */
/*      initial_time                        Initial expiration time      */
/*      reschedule_time                     Reschedule expiration time   */
/*      enable                              Automatic enable option      */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function prototype,                      */
/*                        resulting in version 1.1                       */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  TMS_Create_Timer(NU_TIMER *timer_ptr, CHAR *name,
                VOID (*expiration_routine)(UNSIGNED), UNSIGNED id,
                UNSIGNED initial_time, UNSIGNED reschedule_time, OPTION enable)
{

R1 TM_APP_TCB  *timer;                      /* Timer control block ptr   */
INT             i;                          /* Working index variable    */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* Move input timer pointer into internal pointer.  */
    timer =  (TM_APP_TCB *) timer_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_CREATE_TIMER_ID, (UNSIGNED) timer,
                               (UNSIGNED) name, (UNSIGNED) expiration_routine);

#endif

    /* First, clear the timer ID just in case it is an old Timer
       Control Block.  */
    timer -> tm_id =             0;

    /* Fill in the timer name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        timer -> tm_name[i] =  name[i];

    /* Load the timer with the appropriate values.  */
    timer -> tm_expiration_routine =            expiration_routine;
    timer -> tm_expiration_id =                 id;
    timer -> tm_expirations =                   0;
    timer -> tm_initial_time =                  initial_time;
    timer -> tm_reschedule_time =               reschedule_time;
    timer -> tm_actual_timer.tm_timer_type =    TM_APPL_TIMER;
    timer -> tm_enabled =                       NU_FALSE;

    /* Initialize link pointers.  */
    timer -> tm_created.cs_previous =           NU_NULL;
    timer -> tm_created.cs_next =               NU_NULL;
    timer -> tm_actual_timer.tm_next_timer =    NU_NULL;
    timer -> tm_actual_timer.tm_previous_timer= NU_NULL;
    timer -> tm_actual_timer.tm_information =   (VOID *) timer;

    /* Protect against access to the list of created timers.  */
    TCT_Protect(&TMD_Created_List_Protect);

    /* At this point the timer is completely built.  The ID can now be
       set and it can be linked into the created timer list.  */
    timer -> tm_id =                     TM_TIMER_ID;

    /* Link the timer into the list of created timers and increment the
       total number of timers in the system.  */
    CSC_Place_On_List(&TMD_Created_Timers_List, &(timer -> tm_created));
    TMD_Total_Timers++;

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpTimer(RT_PROF_CREATE_TIMER,timer,RT_PROF_OK);
#endif

    /* Release protection against access to the list of created timers.  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色一区二区三区| 久久久国产一区二区三区四区小说| 国产成人av一区二区三区在线| 精品一区二区久久久| 国产69精品久久99不卡| 色呦呦日韩精品| 精品少妇一区二区三区在线视频| 精品久久久久久久久久久久包黑料 | 国产精品久久二区二区| 欧美一区二区三区视频在线观看 | 欧美一级久久久| 26uuu国产一区二区三区| 久久久久久影视| 亚洲精品高清在线观看| 国产一区91精品张津瑜| 色综合久久99| 久久久久久久久久电影| 亚洲精品视频免费观看| 精品一区二区久久久| 在线观看视频91| 国产精品久久久久影视| 久久精品国产免费看久久精品| 成人蜜臀av电影| 欧美一区二区福利视频| 一级特黄大欧美久久久| 国产成人av一区二区三区在线 | 亚洲一区二区影院| 国产成人小视频| 2017欧美狠狠色| 日韩av中文字幕一区二区| 99久久国产综合精品色伊 | 亚洲精品一区二区三区四区高清 | 国产主播一区二区| 欧美一级高清片| 亚洲二区视频在线| 在线观看91视频| 亚洲精品欧美激情| 91激情五月电影| 亚洲少妇30p| 日本久久一区二区三区| 综合网在线视频| 欧美在线视频你懂得| 中文字幕亚洲一区二区va在线| 成人av资源在线观看| 国产精品区一区二区三区| 成人福利视频在线| 亚洲综合精品自拍| 4hu四虎永久在线影院成人| 日本sm残虐另类| www精品美女久久久tv| 国产精品影视在线| 亚洲日本护士毛茸茸| 欧美亚洲国产一区在线观看网站| 午夜激情一区二区三区| 欧美大片一区二区三区| 北岛玲一区二区三区四区| 亚洲免费观看高清完整版在线| 欧美日韩一区高清| 精品夜夜嗨av一区二区三区| 国产精品久久国产精麻豆99网站| 欧美视频第二页| 国产乱理伦片在线观看夜一区| 国产精品久久影院| 日韩精品中文字幕在线一区| 国产成人精品一区二 | www.亚洲人| 亚洲精品欧美激情| 久久综合狠狠综合久久激情| 欧美亚洲国产一区在线观看网站 | 欧美精品在线观看播放| 国产成人免费视频网站 | 亚洲精品一区二区三区香蕉| 在线这里只有精品| 色综合久久久久网| 成人福利在线看| 国产馆精品极品| 精品在线播放午夜| 免费观看一级欧美片| 亚洲成av人综合在线观看| 亚洲欧洲日本在线| 国产欧美日韩视频一区二区| 精品av久久707| www亚洲一区| 欧美国产一区视频在线观看| 日韩精品资源二区在线| 日韩一级黄色片| 日韩欧美高清一区| 精品剧情v国产在线观看在线| 欧美精品乱人伦久久久久久| 日韩一区和二区| 精品国产乱码久久| 欧美一区永久视频免费观看| 九九热在线视频观看这里只有精品| 亚洲成人先锋电影| 久草精品在线观看| 最新热久久免费视频| 欧美主播一区二区三区美女| 欧美三级中文字幕在线观看| 欧美精品v日韩精品v韩国精品v| 日韩欧美成人午夜| 国产色婷婷亚洲99精品小说| 亚洲美女视频在线观看| 亚洲高清中文字幕| 国产一区二区三区视频在线播放| 成人激情av网| 欧美成人综合网站| 亚洲精品国产a久久久久久| 麻豆精品在线看| 欧美性受极品xxxx喷水| 国产欧美日韩麻豆91| 国产成人av一区二区三区在线观看| www.欧美色图| 久久女同互慰一区二区三区| 亚洲第一福利视频在线| 国产一区二区毛片| 日韩三级中文字幕| 亚洲一级在线观看| 色婷婷亚洲精品| 中文字幕一区在线| 成人手机电影网| 中文字幕第一区第二区| 国产麻豆视频精品| 久久蜜臀中文字幕| 国产乱码一区二区三区| 精品少妇一区二区三区免费观看 | 国产精品1区2区3区| 欧美成人vps| 国产一区二区三区视频在线播放| 91精品一区二区三区在线观看| 亚洲超碰精品一区二区| 欧美日韩一区二区三区在线| 午夜视频在线观看一区二区三区 | 亚洲成人手机在线| 欧美喷潮久久久xxxxx| 天天影视色香欲综合网老头| 欧美日韩国产经典色站一区二区三区 | 洋洋av久久久久久久一区| 日本高清不卡视频| 午夜精品久久久久影视| 7878成人国产在线观看| 激情综合色丁香一区二区| 国产精品家庭影院| 欧美性色黄大片手机版| 国产一区二区电影| 亚洲福利视频导航| 亚洲三级在线免费观看| 国产一区二区免费在线| 中文字幕乱码亚洲精品一区| www.av亚洲| 午夜天堂影视香蕉久久| 欧美视频精品在线观看| 琪琪久久久久日韩精品| 亚洲乱码国产乱码精品精的特点 | 中文字幕中文字幕一区二区| 欧美日韩亚洲国产综合| aaa欧美大片| 国产精品资源在线看| 一区二区三区四区亚洲| 在线播放视频一区| 日本二三区不卡| 不卡的电视剧免费网站有什么| 久久99精品国产.久久久久久| 亚洲激情自拍偷拍| 亚洲欧美aⅴ...| 一区二区三区不卡视频在线观看| 国产欧美日韩精品a在线观看| 精品免费日韩av| 亚洲欧美日韩中文播放| 国产精品女同一区二区三区| 欧美国产精品v| 欧美激情一区二区三区不卡| 欧美韩国日本不卡| 亚洲美女视频一区| 一区二区三区加勒比av| 一区二区激情视频| 婷婷夜色潮精品综合在线| 五月婷婷色综合| 麻豆视频一区二区| 国产成人综合在线播放| 94色蜜桃网一区二区三区| 91久久国产最好的精华液| 欧美私人免费视频| 日韩精品一区二区三区视频| 久久品道一品道久久精品| 亚洲视频免费在线观看| 五月天网站亚洲| 国产成人亚洲精品狼色在线| 91成人在线免费观看| 精品日韩在线观看| 亚洲精品老司机| 国产一区二区三区在线观看免费 | 91麻豆精品91久久久久久清纯| 日韩欧美一区中文| 亚洲另类在线视频| 国产一区二区在线看| 91福利在线看| 亚洲欧美日韩国产综合| 久久99国产精品免费| 欧洲国内综合视频| 中文字幕免费不卡|