📄 config.h
字号:
/* config.h - Wind River PPMC74xx configuration header file *//* Copyright 1984-2002 Wind River Systems, Inc. *//*modification history--------------------01e,15may02,gjc Added #define DEFINE_AUX_CLK 01g,17feb02,g_h Add the NO_NETWORK option to BOOT_DEVICE type01f,04feb02,g_h Move some of the L2 cache macros to sysCache.h01e,29jan02,g_h Add #undef NV_RAM_SIZE before re-defining it.01d,12dec01,g_h Change RAM_HIGH_ADRS to 01E00000 01c,23oct01,g_h Cleaning for T2.201b,08apr01,g_h add support for vWare II01a,15aug98,est adopted from templatePpc/config.h*//*This file contains the configuration parameters for theWind River PPMC74xx evaluation board.*/#ifndef __INCconfigh#define __INCconfigh#ifdef __cplusplusextern "C" {#endif/* BSP version/revision identification, before configAll.h */#define BSP_VER_1_1 0#define BSP_VER_1_2 1#define BSP_VERSION "1.2"#define BSP_REV "/2" /* 0 for first revision */#include "configAll.h" /* Set the VxWorks default configuration *//* Memory configuration *//* * The constants ROM_TEXT_ADRS, ROM_SIZE, & RAM_HIGH_ADRS are defined in * config.h, MakeSkel, Makefile, and Makefile. All definitions for these * constants must be identical. */#define ROM_BASE_ADRS 0xFFF00000 /* Physical start of ROM */#define ROM_TEXT_ADRS 0xFFF00100 /* ROM entry address */#define ROM_SIZE 0x00100000 /* 1MB bytes of ROM space */#define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* Physical start of RAM */#define LOCAL_MEM_SIZE 0x04000000 /* 64 Megabyte */#define RAM_LOW_ADRS 0x00100000 /* RAM test/data address */#define RAM_HIGH_ADRS 0x01E00000 /* RAM address for ROM boot */#define USER_RESERVED_MEM 0x02000000 /* user reserved memory size */#define ROM_WARM_ADRS (ROM_TEXT_ADRS+8) /* warm reboot entry */#undef LOCAL_MEM_AUTOSIZE /* run-time memory sizing *//* NvRAM configuration */#define NV_RAM_ADRS ROM_BASE_ADRS#define NV_RAM_SIZE 0x0100#undef NV_BOOT_OFFSET#define NV_BOOT_OFFSET 0#define NV_ENET_OFFSET 0x00f0 /* Offset of Ethernet HW adrs from the boot offset *//* AltiVec configuration */#define INCLUDE_ALTIVEC/* Serial port configuration */#define INCLUDE_SERIAL#undef NUM_TTY#define NUM_TTY N_SIO_CHANNELS /* defined in wrPpmc74xx.h *//* Timer configuration */#define INCLUDE_TIMESTAMP#define INCLUDE_AUX_CLK/* * Cache configuration * * Note that when MMU is enabled, cache modes are controlled by * the MMU table entries in sysPhysMemDesc[], not the cache mode * macros defined here. */#define INCLUDE_CACHE_SUPPORT #define USER_I_CACHE_ENABLE#undef USER_I_CACHE_MODE#define USER_I_CACHE_MODE CACHE_COPYBACK#define USER_D_CACHE_ENABLE#undef USER_D_CACHE_MODE#define USER_D_CACHE_MODE CACHE_COPYBACK/* L2 Cache configuration. */#define INCLUDE_CACHE_L2 #define L2_CACHE_MODE CACHE_WRITETHROUGH /* Only type supported *//* MMU configuration */#define INCLUDE_MMU_BASIC#undef INCLUDE_MMU_FULL/* Network driver configuration */#define INCLUDE_NETWORK#define INCLUDE_NET_INIT#undef INCLUDE_SM_NET#undef INCLUDE_SM_SEQ_ADDR/* Only if using network */#ifdef INCLUDE_NETWORK/* Enhanced Network Driver (END) support */#define INCLUDE_END /* Enhanced Network Driver (see configNet.h) */#undef INCLUDE_BSD /* BSD 4.4 drivers (not supported) *//* Network Driver Types */#define NO_NETWORK 0#define FEI_END 1 /* only build in the FEI driver */#define BOOT_DEVICE FEI_END /* Choose your Boot Device: FEI_END */#endif /* INCLUDE_NETWORK *//* Boot device */#if (BOOT_DEVICE == FEI_END) #define BOOT_DEV_NAME "fei" #define INCLUDE_FEI82557END /* include FEI driver */ #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_END#elif (BOOT_DEVICE == NO_NETWORK) #define BOOT_DEV_NAME "none" #undef INCLUDE_FEI82557END /* include FEI driver */#else #define BOOT_DEV_NAME "none"#endif/* Debuging configuration *//* * If the FORCE_DEFAULT_BOOT_LINE is defined then the DEFAULT_BOOT_LINE * parameters are always used regardless of NVRAM values specified at * bootrom time. See target.nr for details. This is usually used to debug * downloaded images with out a bootrom present. */#undef FORCE_DEFAULT_BOOT_LINE#ifdef INCLUDE_WDB_COMM_VTMD#define FORCE_DEFAULT_BOOT_LINE /* When using TMD this macro should be undefined */#endif /* INCLUDE_WDB_COMM_VTMD *//* visionWARE configuration */#define INCLUDE_VWARE_LAUNCH/* Stuff to be excluded if FORCE_DEFAULT_BOOT_LINE defined */#ifdef FORCE_DEFAULT_BOOT_LINE#undef INCLUDE_VWARE_LAUNCH#undef NV_RAM_SIZE#define NV_RAM_SIZE NONE#endif /* FORCE_DEFAULT_BOOT_LINE *//* Boot line configuration */#ifdef BOOT_DEV_NAME#define DEFAULT_BOOT_LINE BOOT_DEV_NAME \ "(0,0)wrPpmc74xx:vxWorks " \ "h=90.0.0.1 " \ "e=90.0.0.2 " \ "g=90.0.0.3 " \ "u=vxworks " \ "f=0x0 tn=wrPpmc74xx" #ifdef INCLUDE_VWARE_LAUNCH#define VWARE_BOOT_LINE BOOT_DEV_NAME \ "(0,0)wrPpmc74xx:vxworks " \ "%s " \ "%s " \ "%s " \ "u=anonymous pw=user " \ "f=0x0 tn=ppmc74xx" #endif /* INCLUDE_VWARE_LAUNCH */#endif /* BOOT_DEV_NAME */#undef END_OVERRIDE /* define if you are using old boot ROMs. *//* PCI configuration */#define INCLUDE_PCI#ifdef INCLUDE_PCI#define INCLUDE_SHOW_ROUTINES #define INCLUDE_PCI_AUTOCONF#ifndef PCI_CFG_TYPE# ifdef INCLUDE_PCI_AUTOCONF# define PCI_CFG_TYPE PCI_CFG_AUTO# else# define PCI_CFG_TYPE PCI_CFG_FORCE# endif /* INCLUDE_PCI_AUTOCONF */#endif /* PCI_CFG_TYPE */#endif /* INCLUDE_PCI *//* * User application initialization * * USER_APPL_INIT must be a valid C statement or block. It is * included in the usrRoot() routine only if INCLUDE_USER_APPL is * defined. The code for USER_APPL_INIT is only an example. The * user is expected to change it as needed. The use of taskSpawn * is recommended over direct execution of the user routine. */#undef INCLUDE_USER_APPL#define USER_APPL_INIT \ { \ IMPORT int myAppInit(); \ taskSpawn ("myApp", 30, 0, 5120, \ myAppInit, 0x1, 0x2, 0x3, 0,0,0,0,0,0,0); \ }/* Include hardware header file */#include "wrPpmc74xx.h"#ifdef __cplusplus}#endif /* __cplusplus */#endif /* __INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -