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

📄 uconfig.h

📁 VIA VT6524 8口网管交换机源码
💻 H
字号:
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * This software is copyrighted by and is the sole property of
 * VIA Networking Technologies, Inc. This software may only be used
 * in accordance with the corresponding license agreement. Any unauthorized
 * use, duplication, transmission, distribution, or disclosure of this
 * software is expressly forbidden.
 *
 * This software is provided by VIA Networking Technologies, Inc. "as is"
 * and any express or implied warranties, including, but not limited to, the
 * implied warranties of merchantability and fitness for a particular purpose
 * are disclaimed. In no event shall VIA Networking Technologies, Inc.
 * be liable for any direct, indirect, incidental, special, exemplary, or
 * consequential damages.
 *
 *
 * File:    uconfig.h
 *
 * Purpose: Platform configuration
 *
 * Author:  Tevin Chen
 *
 * Date:    Jan 08, 2002
 *
 */


#ifndef __UCONFIG_H__
#define __UCONFIG_H__




/******* Platform Generic Configuration ************************************/

// cpu type is exclusive, none or at most one type could be defined
//#define __CPU_x86                       // CPU is x86
#define __CPU_8051                      // CPU is 8051
//#define __CPU_ARM                       // CPU is ARM

// cpu mode is exclusive, none or at most one type could be defined
//#define __REAL_MODE                     // DOS program, x86 CPU is in real mode
//#define __PROTECTED_MODE                // Windows/DPMI program, x86 CPU is in protected mode
//#define __V86_MODE                      // Console/DPMI program, x86 CPU is in V86 mode

// endian mode is exclusive, only one type could be defined
#define __BIG_ENDIAN                    // big endian
//#define __LITTLE_ENDIAN                 // little endian


/******* User configuration **********************************************/

// define for debug, un-remark some following lines, if want to debug
//#define __DEBUG                         // on/off for debug code
//#define __DEBUG_PRN                     // on/off for print debug message
//#define __DEBUG_BREAK                   // on/off for break point

// inline assembly is fast but poor compatibiliy
//#define __USE_INLINE_ASSSEMBLY          // use inline assembly code instead of C lib


/******* Implicit configuration ********************************************/

// In case some definitions are on, imply some other defs should on

// for Watcom C (_M_I86) or Borland C (__MSDOS__), then it's in real mode
#if (defined(_M_I86) || defined(__MSDOS__)) && !defined(__REAL_MODE)
#define __CPU_x86
#define __REAL_MODE
#endif

// for Watcom C (_M_I386)(__WINDOWS_386__) or Borland C (__WIN32__) or MS VC (_WIN32)
#if (defined(_M_I386) || defined(__WINDOWS_386__) || defined(__WIN32__) || defined(_WIN32)) && !defined(__PROTECTED_MODE)
#define __CPU_x86
#define __PROTECTED_MODE
#endif

// using C51 compiler, implies CPU is 8051
#if defined(__C51__) && !defined(__CPU_8051)
#define __CPU_8051
#endif

// if compiler support ARM or Thumb, implies CPU is ARM
#if (defined(__arm) || defined(__thumb)) && !defined(__CPU_ARM)
#define __CPU_ARM
#endif



// if CPU is x86, implies endian is little
#if defined(__CPU_x86)
#define __LITTLE_ENDIAN
#undef __BIG_ENDIAN
#endif

// if CPU is 8051, implies endian is big
#if defined(__CPU_8051)
#define __BIG_ENDIAN
#undef __LITTLE_ENDIAN
#endif

// if CPU is ARM and no endian defined, default endian is little
#if defined(__CPU_ARM) && !defined(__BIG_ENDIAN) && !defined(__LITTLE_ENDIAN)
#define __LITTLE_ENDIAN
#undef __BIG_ENDIAN
#endif




#endif /* __UCONFIG_H__ */

⌨️ 快捷键说明

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