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

📄 config.h

📁 VxWorks下的PowerPC 824X系列CPU的bSP包!
💻 H
字号:
/* config.h - Wind River SBC8240/8245 board configuration header *//* Copyright 1984-2002 Wind River Systems, Inc.     *//*modification history--------------------01g,18apr02,gjc  Fixing CONSOLE_BAUD_RATE to reflect proper default.01f,17feb02,g_h  Add the NO_NETWORK option to BOOT_DEVICE type01e,29jan02,g_h  Add #undef NV_RAM_SIZE before re-defining it again01d,25jan02,g_h  Add EEPROM_DELAY macro.01c,29oct01,g_h  Bump REV number and add support for 824501b,11may01,g_h  Cleaning01a,16aug99,est  EST8240 BSP*//*This file contains the configuration parameters for the BSP.*/#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         "/28"	  #include "configAll.h"	/* Set the VxWorks default configuration *//* Bus Speed configuration */#define  BUS_SPEED_100MHZ#undef   BUS_SPEED_66MHZ#if (defined(BUS_SPEED_100MHZ) && defined(BUS_SPEED_66MHZ))#error "You can't have 100MHZ and 66MHZ Bus speed, undef one macro"#endif/* Memory configuration *//* Physical SDRAM size */ #define INCLUDE_64MEG_SDRAM#undef  INCLUDE_16MEG_SDRAM			    #if (defined(INCLUDE_16MEG_SDRAM) && defined(INCLUDE_64MEG_SDRAM))#error "You can't have 16MB SDRAM and 64MB SDRAM, undef one macro"#endif/*  *  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             0x00080000 /* 1/2M bytes of ROM space   */#define LOCAL_MEM_LOCAL_ADRS 0x00000000	/* Physical start of RAM     */#ifdef INCLUDE_16MEG_SDRAM#define LOCAL_MEM_SIZE	     0x01000000	/* 16 Megabyte               */#define RAM_LOW_ADRS         0x00100000 /* RAM test/data address     */#define RAM_HIGH_ADRS        0x00E00000 /* RAM address for ROM boot  */#define USER_RESERVED_MEM    0x00000000 /* user reserved memory size */#endif /* INCLUDE_16MEG_SDRAM */#ifdef INCLUDE_64MEG_SDRAM#define LOCAL_MEM_SIZE	     0x04000000	/* 64 Megabyte               */#define RAM_LOW_ADRS         0x00100000 /* RAM test/data address     */#define RAM_HIGH_ADRS	     0x01F00000 /* RAM address for ROM boot  */#define USER_RESERVED_MEM    0x02000000 /* upper 32Meg user reserved */                                        /* (see readme.txt)          */#endif /* INCLUDE_64MEG_SDRAM */#define ROM_WARM_ADRS	     (ROM_TEXT_ADRS+8)  /* warm reboot entry */#undef	LOCAL_MEM_AUTOSIZE	/* not supported *//* Serial port configuration */#define	INCLUDE_SERIAL#undef	NUM_TTY#define	NUM_TTY		     N_SIO_CHANNELS#undef  CONSOLE_BAUD_RATE 			#define CONSOLE_BAUD_RATE    9600 #undef	INCLUDE_Z85230_SIO        /* serial ports 3 & 4 via Z85230 */#define	INCLUDE_I8250_SIO         /* COM1 and COM2 via i8250 *//* Timer configuration */#define  INCLUDE_TIMESTAMP#define  INCLUDE_AUX_CLK/* NvRAM storage configuration */#define INCLUDE_EEPROM_LOCKING /* keep eeprom software locked between accesses */#define SMART_EEPROM_WRITE     /* skip an EEPROM write if already the value    */#define EEPROM_DELAY         50/* NvRAM configuration */#define NV_RAM_SIZE    	     EEPROM_LEN#define NV_RAM_ADRS          EEPROM_BASE#define NV_RAM_INTRVL        1#define RETRY_NVWRITE_COUNT  1000 /* abort loop after interations */#define NVRAM_INITIALIZED    "NVINFO" /* Initialization Indicator */#define NV_INIT_SIZE         (sizeof(NVRAM_INITIALIZED)-1)#undef  NV_BOOT_OFFSET	     /* room for init indicator */#define NV_BOOT_OFFSET       NV_INIT_SIZE  /* 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 *//*  * 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 /* select COPYBACK or WRITETHROUGH */#define USER_D_CACHE_ENABLE  #undef	USER_D_CACHE_MODE#define USER_D_CACHE_MODE    CACHE_COPYBACK /* select COPYBACK or WRITETHROUGH *//* MMU configuration */#define INCLUDE_MMU_BASIC#undef  INCLUDE_MMU_FULL#define USER_I_MMU_ENABLE#define USER_D_MMU_ENABLE/* Network driver configuration */#define	INCLUDE_NETWORK#define INCLUDE_NET_INIT#undef  INCLUDE_BP#undef	INCLUDE_EX#undef	INCLUDE_ENP#undef	INCLUDE_SM_NET#undef  INCLUDE_SM_SEQ_ADD/* 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 #define PNIC_END             2#define BOOT_DEVICE          FEI_END /* Specify Boot Device: FEI_END or PNIC_END */#endif /* INCLUDE_NETWORK *//* Boot device */#if (BOOT_DEVICE == FEI_END)#undef	INCLUDE_PNIC169END#define INCLUDE_FEI82557END #define BOOT_DEV_NAME	     "fei"#undef  WDB_COMM_TYPE 	     /* make WDB agent comm. path a END device */#define WDB_COMM_TYPE	     WDB_COMM_END    #elif (BOOT_DEVICE == PNIC_END)#define	INCLUDE_PNIC169END#undef  INCLUDE_FEI82557END #define BOOT_DEV_NAME	     "pnic"#undef  WDB_COMM_TYPE  	     /* make WDB agent comm. path a END device */#define WDB_COMM_TYPE	     WDB_COMM_END #elif (BOOT_DEVICE == NO_NETWORK)#undef	INCLUDE_PNIC169END#undef  INCLUDE_FEI82557END #define BOOT_DEV_NAME	     "none"#else#define BOOT_DEV_NAME	     "none"#endif /* BOOT_DEVICE == FEI_END *//* 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 * WR 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)wrSbc824x:vxWorks " \                             "e=24.42.124.92 " \                             "h=24.42.124.94 " \                             "g=0.0.0.0 "  \                             "u=vx pw=vx "     \                             "f=0x00 tn=wrSbc824x"#ifdef  INCLUDE_VWARE_LAUNCH#define VWARE_BOOT_LINE	     BOOT_DEV_NAME \                             "(0,0)wrSbc824x:vxworks " \                             "%s " \                             "%s " \                             "%s " \                             "u=anonymous pw=user " \                             "f=0x000 tn=wrSbc824x" #endif  /* INCLUDE_VWARE_LAUNCH */#endif  /* BOOT_DEV_NAME *//* * 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, \		   mpAppInit, 0x1, 0x2, 0x3, 0,0,0,0,0,0,0); \	}/* Include hardware header file */#include "wrSbc824x.h"#ifdef __cplusplus}#endif#endif	/* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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