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

📄 custom.h

📁 GSM手机设计软件代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*
+-----------------------------------------------------------------------------
|  Project :  GSM-PS (6147)
|  Modul   :  CUSTOM
+-----------------------------------------------------------------------------
|  Copyright 2002 Texas Instruments Berlin, AG
|                 All rights reserved.
|
|                 This file is confidential and a trade secret of Texas
|                 Instruments Berlin, AG
|                 The receipt of or possession of this file does not convey
|                 any rights to reproduce or disclose its contents or to
|                 manufacture, use, or sell anything it may describe, in
|                 whole, or in part, without the specific written consent of
|                 Texas Instruments Berlin, AG.
+-----------------------------------------------------------------------------
|  Purpose :  Custom dependent definitions
|
|             Use this header for definitions to integrate the
|             protocol stack in your target system !
+-----------------------------------------------------------------------------
*/

#ifndef CUSTOM_H
#define CUSTOM_H

/*
 * OPTION_MULTITHREAD
 *
 * Description :  For Operationg systems where the entire protocol
 *                stack is linked as an process and the entitys are
 *                started as threads, this option must be set. In
 *                this case all the pei_ functions of one entity
 *                were prefixed by the entity name like cc_pei...
 *
 * Options:       #define OPTION_MULTITHREAD
 *                                       Multithread application
 *                #undef  OPTION_MULTITHREAD
 *                                       No multithread application.
 *                                       Each entity is linked seperatly.
 *
 */
/*
#undef OPTION_MULTITHREAD must be passed as compile switch
*/
/*==== ENTITY DEPENDENT CONFIGURATION PARAMETER ===================*/
#ifndef __PFRAME_C__ /* do not include the entity specific custom
                        header if we compile the frame */

#ifdef ENTITY_CST
#include "cus_cst.h"
#endif

#if defined (ENTITY_SMI) || defined (ENTITY_MFW) || defined (ENTITY_ACI) || defined (ENTITY_MMI)
#include "cus_aci.h"
#endif

#ifdef ENTITY_PAN
#endif

#ifdef ENTITY_DL
#include "cus_dl.h"
#endif

#ifdef ENTITY_RR
#include "cus_rr.h"
#endif

#ifdef ENTITY_MM
#include "cus_mm.h"
#endif

#ifdef ENTITY_CC
#include "cus_cc.h"
#endif

#ifdef ENTITY_SS
#include "cus_ss.h"
#endif

#ifdef ENTITY_SMS
#include "cus_sms.h"
#endif

#ifdef ENTITY_PL
#ifdef ALR
#include "cus_alr.h"
#else
#include "cus_til.h"
#endif
#endif

#ifdef ENTITY_L1
#include "cus_l1.h"
#endif

#ifdef ENTITY_SIM
#include "cus_sim.h"
#endif

#ifdef ENTITY_L2R
#include "cus_l2r.h"
#endif

#ifdef ENTITY_RLP
#include "cus_rlp.h"
#endif

#ifdef ENTITY_T30
#include "cus_t30.h"
#endif

#ifdef ENTITY_FAD
#include "cus_fad.h"
#endif

#ifdef ENTITY_RA
#include "cus_ra.h"
#endif

#ifdef ENTITY_WAP
#include "cus_wap.h"
#endif

#ifdef ENTITY_UDP
#include "cus_udp.h"
#endif

#ifdef ENTITY_IP
#include "cus_ip.h"
#endif


#endif
/*==== ENTITY NAMES ===============================================*/
/*
 *  The names are used as identifier for the communication resource
 */

#define NULL_NAME     "NULL"
#define L1_NAME       "L1"
#define PL_NAME       "PL"
#define DL_NAME       "DL"
#define RR_NAME       "RR"
#define MM_NAME       "MM"
#define CC_NAME       "CC"
#define SS_NAME       "SS"
#define SMS_NAME      "SMS"
#define SIM_NAME      "SIM"
#define PAN_NAME      "PAN"
#define DMYA_NAME     "DMYA"
#define DMYB_NAME     "DMYB"
#define CST_NAME      "CST"
#define GRR_NAME      "GRR"

#define ACI_NAME      "MMI"
#define AAA_NAME      "AAA"
#define RIV_NAME      "RIV"

#define L2R_NAME      "L2R"
#define TRA_NAME      L2R_NAME  /* TRA running in L2R task */
#define RLP_NAME      "RLP"
#define T30_NAME      "T30"
#define FAD_NAME      "FAD"
#define RA_NAME       "RA"
#define WAP_NAME      "WAP"
#define UDP_NAME      "UDP"
#define IP_NAME       "IP"
#define PPP_NAME      "PPP"
#define UART_NAME     "UART"
#define DTI_NAME      "DTI"
#define TAP_NAME      "TAP"
#define BTI_NAME      "BTI"   /* BTI is not an entity, but the name is used to identify BTI */
#define LC_NAME       "LC"
#define RRLP_NAME     "RRLP"
#ifdef FF_TRACE_OVER_MTST
#define MTST_NAME     "MTST"
#endif /* FF_TRACE_OVER_MTST */
#ifdef GPRS
#define GMM_NAME      "GMM"
#define GRR_NAME      "GRR"
/* The name should have been "PKTIO", but this seems to be too long */
#define PKTIO_NAME    "PKT"
#define GPL_NAME      "GRR"
#endif /* #ifdef GPRS */

#ifndef NEW_FRAME
/*==== STATIC CONFIGURATION =======================================*/
/*
 * TRACE_FKT
 *
 * Description :  A trace string is send to the environment when a
 *                function is called.
 *
 * Options:       #define TRACE_FKT     configuration is active
 *                #undef  TRACE_FKT     configuration is not active
 *                #define TC_FUNC  <n>  used trace class
 *
 * Function Traces only under Windows and for MMI
 */

/*
 * It is nearly impossible to debug ACI/MFW/SMI without function traces
 */
#if defined(WIN32) OR defined(ENTITY_MFW) OR defined(ENTITY_ACI) OR defined(ENTITY_SMI)
#define  TRACE_FKT
#define TC_FUNC             1
#else
#undef TRACE_FKT
#endif

/*
 * TRACE_EVE
 *
 * Description :  A trace string is given to the environment when
 *                an event has happened, for example start of cell
 *                selection.
 *
 * Options:       #define TRACE_EVE     configuration is active
 *                #undef  TRACE_EVE     configuration is not active
 *                #define TC_EVENT  <n> used trace class
 */

#if !defined (NTRACE)
#define TRACE_EVE
#define TC_EVENT           2
#else
#undef TRACE_EVE
#endif

/*
 * TRACE_ERR
 *
 * valid for   :  Mobile and Base Station
 *
 * Description :  A trace string is given to the environment when
 *                an error has occured, for example parameter error
 *                by dynamic configuration.
 *
 * Options:       #define TRACE_ERR     configuration is active
 *                #undef  TRACE_ERR     configuration is not active
 *                #define TC_ERROR  <n> used trace class
 */

#if !defined (NTRACE)
#define TRACE_ERR
#define TC_ERROR           3
#else
#undef TRACE_ERR
#endif

/*
 * TRACE_PRIM
 *
 * Description :  A trace string is send to the environment when a
 *                primitive is received or send.
 *
 * Options:       #define TRACE_PRIM     configuration is active
 *                #undef  TRACE_PRIM     configuration is not active
 *                #define TC_PRIM   <n>  used trace class
 */

#if !defined (NTRACE)
#define TRACE_PRIM
#define TC_PRIM            4
#else
#undef TRACE_PRIM
#endif

/*
 * TRACE_STATE
 *
 * Description :  A trace string is send to the environment when a
 *                state variable is changed or retrieved.
 *
 * Options:       #define TRACE_STATE     configuration is active
 *                #undef  TRACE_STATE     configuration is not active
 *                #define TC_STATE   <n>  used trace class
 */

#if !defined (NTRACE)

⌨️ 快捷键说明

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