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

📄 txc_platform.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.
|--------------------------------------------------------------------|
|                                                                    |
|  Workfile:  txc_platform.h                                         |
|                                                                    |
|  Description: This file contains all platform variable defines     |
|                                                                    |
|               OK TO EDIT AS NEEDED                                 |
|                                                                    |
----------------------------------------------------------------------
                                  Revision History
----------------------------------------------------------------------
Rev #       Date        Author      Description
-----       ------      -------     -----------
1.0         01.Aug.2k   J. Esposito Initial Version
1.1         3/26/02     R. Kuhnen   Removed TXC_U8_IGNORE, TXC_U16_IGNORE,
                                    TXC_U32_IGNORE, TXC_U8_INVALID, TXC_U16_INVALID,
                                    and TXC_U32_INVALID. (Moved to txc_generic.h).
                                    Added "User RTOS Typedef" section.
1.2         4/30/02     B. Hawthorne Added VxWorks defines.
1.3         9/27/02     J. Federici Added TXC_REG_32.
1.4         12/17/02    R. Kuhnen   1) Moved CMD_REPLY_EVENT defines from file, txc_os_task.h
                                    2) Added RX_MBOX_EVENT
                                    3) Removed TXC_MAX_QUEUE_DEPTH, TXC_QUEUE_LOW_WATER_MARK,
                                       TXC_QUEUE_HIGH_WATER_MARK
                                    4) Added miscellaneous comments
                                    5) Increased TXC_TASK_STACK_SIZE to 2500
                                    6) Moved TXC_BPOOL_DELETE_BUSY_DELAY_TIME and
                                       TXC_MAX_BUFFER_POOLS to txc_os_buf_pool.h
                                    7) Moved TXC_BUFF_POOL_SEM_NAME to txc_mcs_platform.h
--------------------------------------------------------------------*/


#ifndef TXC_PLATFORM_H
#define TXC_PLATFORM_H

#ifdef TXC_VXWORKS
#include "signal.h"
#endif

/* compiler variable size specifics */
typedef signed char TXC_S8BIT;      /* 8 bit signed variable */
typedef unsigned char TXC_U8BIT;    /* 8 bit unsigned variable */
typedef signed short TXC_S16BIT;    /* 16 bit signed variable */
typedef unsigned short TXC_U16BIT;  /* 16 bit unsigned variable */
typedef signed int TXC_S32BIT;      /* 32 bit signed variable */
typedef unsigned int TXC_U32BIT;    /* 32 bit unsigned variable */


/* User hardware register access type */
typedef unsigned char TXC_REG;      /* Basic Register Access Unit */
typedef unsigned short TXC_REG_16; /* 16 Bit Register Access Unit */
typedef unsigned int TXC_REG_32; /* 32 Bit Register Access Unit */

/* Hardware Platform Definition */
#define SPI3_NUM_PORTS   32
#define FIFO_NUM_PORTS   32

/* compiler attributes */
#define TXC_VOLATILE volatile       /* volatile register attribute */  
#define TXC_CONST    const          /* constant variable attribute */

/* user hw platform configuration; for register based devices only */
#define TXC_WRITE_VERIFY_ENABLE 1   /* to read back after write, set to 0 to kill */

/* compiler variable size specifics */

#define TXC_TASK_STACK_SIZE             2500

/* User RTOS Typedef */
typedef unsigned long TXC_QUEUE_ID;
typedef unsigned long TXC_MSG_ID;       /* message que id type */
typedef unsigned long TXC_SEM_ID;       /* semaphore id type */
typedef int TXC_SIZE_T;                 /* malloc size */
typedef unsigned long TXC_TASK_ID;      /* task id type */

/* signal definition */
#ifdef TXC_PSOS
#define TXC_CMD_REPLY_EVENT 0x0001
#define TXC_RX_MBOX_EVENT 2
#endif

#ifdef TXC_VXWORKS
#define TXC_CMD_REPLY_EVENT SIGUSR1
#define TXC_RX_MBOX_EVENT SIGUSR2
#endif

#ifdef TXC_NO_RTOS
#define TXC_CMD_REPLY_EVENT 0
#define TXC_RX_MBOX_EVENT 0
#endif

/* end RTOS typedef */

#endif /* TXC_PLATFORM_H */

⌨️ 快捷键说明

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