⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 txc_os_task.h

📁 TranSwitch Envoy CE2 & Envoy CE4 设备驱动及编程指南
💻 H
字号:
/*--------------------------------------------------------------------------

  *******                           ****
     *     *****     **    *    *  *       *    *   *  *****   ****   *    *
     *     *    *   *  *   **   *  *       *    *   *    *    *    *  *    *
     *     *    *  *    *  * *  *   ****   *    *   *    *    *       ******
     *     *****   ******  *  * *       *  * ** *   *    *    *       *    *
     *     *   *   *    *  *   **  *    *  **  **   *    *    *    *  *    *
     *     *    *  *    *  *    *   ****   *    *   *    *     ****   *    *

                        Proprietary and Confidential 

    This program is made available only to customers and prospective customers 
of TranSwitch Corporation under license and may be used only with TranSwitch 
semi-conductor products.

                      Copyright(c) 2004 TranSwitch Inc.
|-----------------------------------------------------------------------|
|                                                                       |
|                      ********        ******                           |
|                     **      **      **    **                          |
|                     **      **       **    *                          |
|                     **      **        **                              |
|                     **      **         **                             |
|                     **      **          **                            |
|                     **      **       *   ***                          |
|                     **      **      **    **                          |
|                      ********        ******                           |
|                                                                       |
|-----------------------------------------------------------------------|
|                       Task Header File                                |
|-----------------------------------------------------------------------|
|                                                                       |
|  Workfile:  txc_os_task.h                                             |
|                                                                       |
|  Description: this file contains defines for task management          |
|                                                                       |
-------------------------------------------------------------------------
                           Revision History
-------------------------------------------------------------------------
Rev #   Date        Author              Description
-----   ------      -------             -----------
1.0     06-Feb-01   R. Ruchandani       Initial Revision.
1.1     01-Jul-02   R. Kuhnen           Added conditional compile for pSOS and 
                                        vxWorks because vxWorks needed different 
                                        value for event define.
1.2     24-Oct-02   R. Kuhnen           Added NO_RTOS conditional compile for TXC_CMD_REPLY_EVENT
1.3     24-Oct-02   D. Shea             Redefined, PSOS, VXWORKS, NO_RTOS
1.4     17-Dec-02   R. Kuhnen           Moved EVENT defines to file, txc_platform.h
-----------------------------------------------------------------------*/
#ifndef TXC_OS_TASK_H
#define TXC_OS_TASK_H

/***********************************************************************
 **                            Defines                                **
 ***********************************************************************/

/* delay times */
#define TXC_OS_TASK_WAIT_FOREVER 0xffffffff
#define TXC_OS_TASK_WAIT_NEVER 0



/***********************************************************************
 **                          Structures                               **
 ***********************************************************************/


 /***********************************************************************
 **                       Exported Variables                          **
 ***********************************************************************/


 /***********************************************************************
 **                       Function Prototypes                         **
 ***********************************************************************/

TXC_U16BIT TXC_SpawnTask (const char * name, void * startAddr, 
    TXC_TASK_ID * taskIdPtr,TXC_U32BIT priority);
TXC_U16BIT TXC_DeleteTask(TXC_TASK_ID taskId);
TXC_U16BIT TXC_SleepTask (TXC_U32BIT milliseconds);
TXC_U16BIT TXC_GetTaskId(const char * name, TXC_TASK_ID * taskIdPtr);
TXC_U16BIT TXC_SignalTask(TXC_TASK_ID taskId, TXC_U32BIT signalMask);
TXC_U16BIT TXC_WaitOnSignal (TXC_U32BIT signalMask, TXC_U32BIT milliSecondsWait);


#endif /*TXC_OS_TASK_H*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -