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

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

?? tmi.c

?? 關于nucleus系統的教程文檔
?? C
字號:
/*************************************************************************/
/*                                                                       */
/*        Copyright (c) 1993-2001 Accelerated Technology, Inc.           */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      tmi.c                                           PLUS  1.13       */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      TM - Timer Management                                            */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the initialization routine for the timer      */
/*      management component.                                            */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      TMI_Initialize                      Timer Management Initialize  */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      tc_extr.h                           Task function interfaces     */
/*      er_extr.h                           Error handling function      */
/*      tm_defs.h                           Timer component constants    */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Removed timer task creation,                     */
/*                        cleared the ID of the HISR                     */
/*                        control block, and casted the                  */
/*                        HISR priority, resulting in                    */
/*                        version 1.0a                                   */
/*      08-09-1993      Verified version 1.0a                            */
/*      03-01-1994      Changed names of HISR create                     */
/*                        function, removed reference to                 */
/*                        timer list protect since it                    */
/*                        was deleted, resulting in                      */
/*                        version 1.1                                    */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      03-24-1998      Released version 1.3                             */
/*                                                                       */
/*************************************************************************/
#define         NU_SOURCE_FILE


#include        "tc_extr.h"                 /* Task control functions    */
#include        "er_extr.h"                 /* Error handling function   */
#include        "tm_defs.h"                 /* Timer constants           */
#include        "tm_extr.h"                 /* Timer interfaces          */


/* 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;
extern UNSIGNED        TMD_System_Clock;
extern UNSIGNED        TMD_Timer;
extern INT             TMD_Timer_State;
extern UNSIGNED        TMD_Time_Slice;
extern TC_TCB         *TMD_Time_Slice_Task;
extern INT             TMD_Time_Slice_State;
extern TC_HCB          TMD_HISR;
extern VOID           *TMD_HISR_Stack_Ptr;
extern UNSIGNED        TMD_HISR_Stack_Size;
extern INT             TMD_HISR_Priority;


/* Define inner-component function prototypes.  */

VOID    TMC_Timer_HISR(VOID);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      TMI_Initialize                                                   */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function initializes the data structures that control the   */
/*      operation of the timer component (TM).  There are no application */
/*      timers created initially.                                        */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      INC_Initialize                      System initialization        */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      ERC_System_Error                    System error handing function*/
/*      TCC_Create_HISR                     Create timer HISR            */
/*      TCCE_Create_HISR                    Create timer HISR (error chk)*/
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      (Indirect)                                                       */
/*      TMD_HISR_Stack_Ptr                  Pointer to HISR stack area   */
/*      TMD_HISR_Stack_Size                 Size of HISR stack           */
/*      TMD_HISR_Priority                   Priority of timer HISR       */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      TMD_Created_Timers_List             Pointer to the linked-list   */
/*                                            of created application     */
/*                                            timers                     */
/*      TMD_Total_Timers                    Total number of created      */
/*                                            application timers         */
/*      TMD_Active_Timers_List              Pointer to the linked-list   */
/*                                            of active timers.          */
/*      TMD_Active_List_Busy                Flag indicating that the     */
/*                                            active timer list is in use*/
/*      TMD_Created_List_Protect            Created timer list protect   */
/*                                            structure                  */
/*      TMD_System_Clock                    System clock                 */
/*      TMD_Timer                           Timer count-down value       */
/*      TMD_Timer_State                     State of timer               */
/*      TMD_Time_Slice                      Time slice count-down value  */
/*      TMD_Time_Slice_Task                 Pointer to task to time-slice*/
/*      TMD_Time_Slice_State                State of time slice          */
/*      TMD_HISR                            Timer HISR control block     */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Removed timer task creation,                     */
/*                        cleared the ID of the HISR                     */
/*                        control block, and casted the                  */
/*                        HISR priority, resulting in                    */
/*                        version 1.0a                                   */
/*      08-09-1993      Verified version 1.0a                            */
/*      03-01-1994      Modified HISR create function                    */
/*                        interface, removed reference                   */
/*                        to timer list protect since it                 */
/*                        was deleted, resulting in                      */
/*                        version 1.1                                    */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
VOID  TMI_Initialize(VOID)
{

STATUS          status;                     /* Return status of creates */


    /* Initialize the created application timer's list to NU_NULL.  */
    TMD_Created_Timers_List =  NU_NULL;
    
    /* Initialize the total number of created application timers to 0.  */
    TMD_Total_Timers =  0;
    
    /* Initialize the active timer's list to NU_NULL.  */
    TMD_Active_Timers_List =  NU_NULL;
    
    /* Clear the active timer list busy flag.  */
    TMD_Active_List_Busy =  NU_FALSE;

    /* Initialize the system clock to 0.  */
    TMD_System_Clock =  0;
    
    /* Initialize the timer to 0 and the timer state to "not active."  */
    TMD_Timer =        0;
    TMD_Timer_State =  TM_NOT_ACTIVE;
    
    /* Initialize the time-slice timer, task pointer, and the associated 
       state variable.  */
    TMD_Time_Slice =        0;
    TMD_Time_Slice_Task =   NU_NULL;
    TMD_Time_Slice_State =  TM_NOT_ACTIVE;

    /* Initialize the list protection structures.  */
    TMD_Created_List_Protect.tc_tcb_pointer =      NU_NULL;

    /* Clear out the timer HISR control block.  */
    TMD_HISR.tc_id =  0;

    /* Create the timer HISR.  The timer HISR is responsible for performing
       the time slice function and activating the timer task if necessary.  */
#ifdef  NU_NO_ERROR_CHECKING

    status =  TCC_Create_HISR((NU_HISR *) &TMD_HISR, "SYSTEM H", 
                    TMC_Timer_HISR, (OPTION) TMD_HISR_Priority, 
                    TMD_HISR_Stack_Ptr, TMD_HISR_Stack_Size);
#else

    status =  TCCE_Create_HISR((NU_HISR *) &TMD_HISR, "SYSTEM H", 
                    TMC_Timer_HISR, (OPTION) TMD_HISR_Priority, 
                    TMD_HISR_Stack_Ptr, TMD_HISR_Stack_Size);

#endif

    /* Check for a system error creating the timer HISR.  */           
    if (status != NU_SUCCESS)

        /* Call the system error handler.  */
        ERC_System_Error(NU_ERROR_CREATING_TIMER_HISR);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩亚洲高清一区二区| 日韩一区二区电影网| 国产老肥熟一区二区三区| 午夜不卡在线视频| 亚洲一二三区在线观看| 亚洲欧美激情插| 1024亚洲合集| 一区二区三区在线免费观看| 一区二区三区色| 亚洲一区免费观看| 视频在线观看一区二区三区| 午夜精品123| 免费成人av在线| 国模娜娜一区二区三区| 国产美女av一区二区三区| 国产999精品久久| 99精品视频一区| 欧美性色黄大片| 在线不卡的av| 久久精品一级爱片| 成人欧美一区二区三区白人 | 日韩欧美国产午夜精品| 日韩精品一区二| 国产欧美一区二区精品性色| 亚洲同性gay激情无套| 亚洲在线免费播放| 日韩vs国产vs欧美| 国产在线精品一区二区不卡了 | 久久激情五月激情| 国产精品18久久久| 91网址在线看| 欧美伦理视频网站| 精品精品欲导航| 国产精品久久久久久妇女6080| 亚洲免费av观看| 免费不卡在线观看| 不卡免费追剧大全电视剧网站| 色天天综合久久久久综合片| 7777精品伊人久久久大香线蕉超级流畅 | 欧美一区二区美女| 久久精品人人爽人人爽| 一区二区三区不卡视频| 蜜桃av一区二区| 波多野结衣欧美| 69久久99精品久久久久婷婷| 国产视频在线观看一区二区三区 | 成人av小说网| 欧美人伦禁忌dvd放荡欲情| www国产成人| 亚洲日本电影在线| 麻豆视频观看网址久久| 国产精品91一区二区| 精品1区2区3区| 中文字幕乱码久久午夜不卡 | 国产一区二区成人久久免费影院| 99久久婷婷国产综合精品电影| 884aa四虎影成人精品一区| 国产精品美女久久福利网站| 日本不卡一区二区三区| 99久久久久免费精品国产 | 亚洲人吸女人奶水| 麻豆极品一区二区三区| 日本高清无吗v一区| 国产亚洲一区二区在线观看| 亚洲成人tv网| k8久久久一区二区三区| 欧美一区二区三区喷汁尤物| 亚洲激情综合网| 成人小视频免费在线观看| 日韩视频在线你懂得| 一区在线观看免费| 国产在线麻豆精品观看| 在线播放日韩导航| 亚洲女爱视频在线| 国产成人精品免费网站| 日韩一区二区电影| 亚洲韩国一区二区三区| 色综合久久99| 中文文精品字幕一区二区| 九一九一国产精品| 在线综合亚洲欧美在线视频| 亚洲综合小说图片| 91一区在线观看| 久久久高清一区二区三区| 久久99国产乱子伦精品免费| 欧美日韩国产一二三| 亚洲国产精品久久一线不卡| 91啪亚洲精品| 亚洲视频在线一区| 成人av午夜影院| 国产精品久久久久久久浪潮网站| 国产一区二区三区蝌蚪| 日韩欧美国产三级电影视频| 免费高清在线一区| 日韩手机在线导航| 美女视频一区二区三区| 欧美一区二区三级| 免费一级欧美片在线观看| 91精品国产综合久久香蕉麻豆| 亚洲不卡一区二区三区| 欧美日韩精品一区二区三区蜜桃 | 欧美吻胸吃奶大尺度电影| 亚洲码国产岛国毛片在线| 99久久久精品| 亚洲黄色av一区| 欧美亚洲高清一区| 午夜精品久久一牛影视| 欧美日韩不卡一区| 日韩电影在线免费| 欧美一三区三区四区免费在线看| 日韩av中文字幕一区二区三区| 91精品国产免费久久综合| 日本欧美大码aⅴ在线播放| 欧美一卡2卡三卡4卡5免费| 日本欧美韩国一区三区| 精品国产露脸精彩对白| 国产麻豆精品久久一二三| 国产日韩欧美高清| 成人免费高清在线观看| 亚洲欧美一区二区三区极速播放| 色先锋aa成人| 香蕉成人伊视频在线观看| 日韩欧美在线网站| 国产一区二区免费视频| 国产精品久久久久久久浪潮网站| 色美美综合视频| 偷拍一区二区三区四区| 久久蜜桃av一区二区天堂| 波多野结衣亚洲一区| 亚洲成人动漫在线观看| 精品国产欧美一区二区| 成人精品视频一区| 一区二区成人在线视频| 91精品免费观看| 丁香网亚洲国际| 一区二区三区四区精品在线视频| 欧美日韩一区久久| 国产精品资源网站| 亚洲免费av高清| 日韩欧美成人一区二区| 成人av免费网站| 首页综合国产亚洲丝袜| 欧美激情综合五月色丁香小说| 日本韩国一区二区三区| 精东粉嫩av免费一区二区三区 | caoporen国产精品视频| 亚洲第四色夜色| 国产亚洲精久久久久久| 色狠狠一区二区| 国内成人免费视频| 一区二区三区四区在线播放| 欧美成人精品3d动漫h| 91在线观看美女| 另类专区欧美蜜桃臀第一页| 亚洲青青青在线视频| 久久综合丝袜日本网| 欧洲色大大久久| 国产成人高清视频| 亚洲h动漫在线| 日本一区二区三级电影在线观看| 欧美欧美午夜aⅴ在线观看| 成人性生交大片免费看视频在线 | 日韩电影免费一区| 国产精品久久久久久久久快鸭 | 欧美高清视频一二三区 | 成人精品小蝌蚪| 久久精品国产亚洲高清剧情介绍 | 精东粉嫩av免费一区二区三区| 一区二区在线观看视频在线观看| 久久综合久久综合九色| 欧美日韩一区中文字幕| 不卡电影一区二区三区| 国产一级精品在线| 亚洲成人av电影在线| 中文字幕在线不卡| 久久综合狠狠综合久久激情| 精品视频在线免费看| 99久久久久久| 国产成人精品在线看| 久久国内精品视频| 亚洲永久免费av| 亚洲天堂av老司机| 欧美韩国一区二区| 国产亚洲自拍一区| 精品国产乱码久久久久久蜜臀| 欧美日韩一区二区不卡| 一本久道中文字幕精品亚洲嫩| 国产·精品毛片| 国产剧情一区二区| 久久激情五月婷婷| 美国av一区二区| 日韩成人av影视| 奇米精品一区二区三区四区| 亚洲国产毛片aaaaa无费看| 日韩一区在线看| 中文字幕在线不卡一区| 国产精品久久久久婷婷二区次 | 成人一区二区三区视频| 国产一区91精品张津瑜| 国内精品在线播放|