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

📄 xpmain.h

📁 摩托罗拉Motolola公司网络处理器C3的示范代码.实现了ATM的AAL2层交换功能.想了解网络处理器的可以
💻 H
字号:
/* *  Copyright (c) 2000, 2001, 2002 C-Port Corporation, a Motorola Company *  All Rights Reserved * *  The information contained in this file is confidential and proprietary. *  Any reproduction, use or disclosure, in whole or in part, of this *  program, including any attempt to obtain a human-readable version of this *  program, without the express, prior written consent of C-Port *  Corporation is strictly prohibited. */#ifndef XPMAIN_H#define XPMAIN_H#include <dcpKernelSvcs.h>/* * For C3E Processors, set the system timer ticks to * 180000, * For C5 Processors, set the system timer ticks to 200000 * For C5E, set it to 266000. */#if DCP_CHIP_REV < DCP_C5_A0#define SYS_TIMER_TICKS_PER_MILLISEC 180000#elif DCP_CHIP_REV < DCP_C5E_A0#define SYS_TIMER_TICKS_PER_MILLISEC 200000#else#define SYS_TIMER_TICKS_PER_MILLISEC 266000#endif   /*    * Set Timer to expire in 500ms.  We need to update the defect    * soak counts to be able to time out and set the defect    * indications.    * At 200MHz, it is 5ns/cycles.  500ms/5ns = 100,000,000 cycles or    * 5f5e100    * For simulation, set this to 300 so we can test out the code but    * don't hav    * to run for hours on the simulator to get the alarm condition.    */#ifdef SIM#if DCP_CHIP_REV < DCP_C5_A0#define XP_SONET_SOAK_TIME     900000#elif DCP_CHIP_REV < DCP_C5E_A0#define XP_SONET_SOAK_TIME    1000000#else#define XP_SONET_SOAK_TIME    1330000#endif#else#if DCP_CHIP_REV < DCP_C5_A0#define XP_SONET_SOAK_TIME   90000000#elif DCP_CHIP_REV < DCP_C5E_A0#define XP_SONET_SOAK_TIME  100000000#else#define XP_SONET_SOAK_TIME  133000000#endif#endif#define CU_TIMER_GRANULARITY         1#ifdef SIM#define CU_TIMER_VALUE               1#else#define CU_TIMER_VALUE               10 #endif#define CU_TIMER_TICKS               (CU_TIMER_VALUE / CU_TIMER_GRANULARITY)void    aal2Core (void);SINLINE QsStatus qsMessageReceive(QsQueueId qId, QsMessage* msg);#endif /* XPMAIN_H */

⌨️ 快捷键说明

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