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

📄 config.h

📁 标准arm vxworks bsp 模板
💻 H
字号:
/* config.h - template ARM configuration header *//* Copyright 2002 Wind River Systems, Inc. *//*TODO -  Remove the template modification history and begin a new history        starting with version 01a and growing the history upward with        each revision.modification history--------------------01c,17jul02,dat  remove obsolete information01b,28may02,scm  remove some platform specific items...01a,23may02,scm  written*//*This module contains the configuration parameters for the ARM BSP.*//* * TODO - Add/Remove/Define necessary vars for BSP... * * Present the user with simple straight forward options.  Do not ask the * user to encode values together to form a value to be loaded in a register. * Let the source code, or the pre-processor, do the computational work to * determine what value to load in a particular register. * */#ifndef	INCconfigh#define	INCconfigh#ifdef __cplusplusextern "C" {#endif/* TODO - values in this header file are dummy values, update as needed *//* BSP version/revision identification, before configAll.h */#define BSP_VER_1_1     1       /* 1.2 is backwards compatible with 1.1 */#define BSP_VER_1_2     1#define BSP_VERSION	"1.2"#define BSP_REV		"/0"	/* 0 for first revision */#include "configAll.h"#define DEFAULT_BOOT_LINE \        "mac(0,0) host:vxWorks h=192.168.2.105 e=192.168.2.222:ffffff00 "\        "u=target tn=targetname"/* Memory configuration */#undef	LOCAL_MEM_AUTOSIZE			/* run-time memory sizing */#define USER_RESERVED_MEM	0		/* see sysMemTop() *//* TODO - values in this header file are dummy values, update as needed *//* * Local-to-Bus memory address constants: * the local memory address always appears at 0 locally; * it is not dual ported. */#define LOCAL_MEM_LOCAL_ADRS	0x00000000	/* fixed at zero */#define LOCAL_MEM_BUS_ADRS	0x00000000	/* fixed at zero */#define LOCAL_MEM_SIZE	        0x02000000	/* 32 Mbytes */#define LOCAL_MEM_END_ADRS	(LOCAL_MEM_LOCAL_ADRS + LOCAL_MEM_SIZE)/* * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_HIGH_ADRS, and RAM_LOW_ADRS * are defined in config.h and Makefile. * All definitions for these constants must be identical. * * TODO - Make sure these values match those in your Makefile.  The values * shown below are the defaults for a 68000 series system.  Pay particular * attention to ROM_TEXT_ADRS and ROM_WARM_ADRS.  The correct default values * are in the Makefile for each template BSP. *//* * Boot ROM is an image written into Flash. Part of the Flash can be * reserved for boot parameters etc. (see the Flash section below). * * The following parameters are defined here and in the Makefile. * They must be kept synchronized; effectively config.h depends on Makefile. * Any changes made here must be made in the Makefile and vice versa. * * ROM_BASE_ADRS is the base of the Flash ROM/EPROM. * ROM_TEXT_ADRS is the entry point of the VxWorks image * ROM_SIZE is the size of the part of the Flash ROM/EPROM allocated to *		the VxWorks image (block size - size of headers) * * Two other constants are used: * ROM_COPY_SIZE is the size of the part of the ROM to be copied into RAM * 		 (e.g. in uncompressed boot ROM) * ROM_SIZE_TOTAL is the size of the entire Flash ROM (used in sysPhysMemDesc) * * The values are given as literals here to make it easier to ensure * that they are the same as those in the Makefile. */#define ROM_BASE_ADRS		0x10000000	/* base of Flash/EPROM */#define ROM_TEXT_ADRS		ROM_BASE_ADRS+0x40000	/* code start addr in ROM 										reserve 256kB */#define ROM_SIZE                0x00400000      /* size of ROM holding VxWorks 4MB*/#define ROM_COPY_SIZE		ROM_SIZE#define ROM_SIZE_TOTAL		0x01000000	/* total size of ROM 16MB*/#define RAM_LOW_ADRS		0x20001000	/* VxWorks image entry point */#define RAM_HIGH_ADRS		0x21c00000	/* RAM address for ROM boot *//* * Count for a CPU delay loop at the beginning of romInit. There have been * reports of problems with certain boards and certain power supplies, and * adding a delay at the start of romInit appears to help with this. This * value may need tuning for different board/PSU combinations. */#define ARMBSP_DELAY_VALUE	0x1000/* * Flash/NVRAM memory configuration * * A block of the Flash memory (FLASH_SIZE bytes at FLASH_ADRS) is * reserved for non-volatile storage of data. * * See also integrator.h */#undef INCLUDE_FLASH#ifdef INCLUDE_FLASH#define FLASH_SIZE		0x00020000	/* one 128kbyte block of Flash*/#define NV_RAM_SIZE		0x100		/* how much we use as NVRAM */#undef	NV_BOOT_OFFSET#define NV_BOOT_OFFSET		0		/* bootline at start of NVRAM */#define FLASH_NO_OVERLAY			/* do not read-modify-write all						 * of Flash */#define INCLUDE_FLASH_SIB_FOOTER		/* add a SIB footer to block */#else	/* INCLUDE_FLASH */#define NV_RAM_SIZE		NONE#endif	/* INCLUDE_FLASH *//* Serial port configuration */#define INCLUDE_SERIAL#undef	NUM_TTY#define NUM_TTY			N_SIO_CHANNELS/* * Cache/MMU 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. *//* * We use the generic architecture libraries, with caches/MMUs present. A * call to sysHwInit0() is needed from within usrInit before * cacheLibInit() is called. */#ifndef _ASMLANGUAGEIMPORT void sysHwInit0 (void);#endif#undef INCLUDE_SYS_HW_INIT_0#define SYS_HW_INIT_0()         sysHwInit0 ()/* * Cache configuration * * TODO - * All cache is turned off to begin with. Activate caching after basic * BSP functionality is achieved.  Start with instruction caching, followed * by data caching.  Begin without snooping options; and turn those on * later if the board supports it. * * Note that when MMU is enabled, cache modes are controlled by * the MMU table entries in sysPhysMemDesc[], not the cache mode * macros defined here. *//* 920T/940T/946ES has to be this. *//* * Include MMU BASIC and CACHE support for command line and project builds */#define INCLUDE_CACHE_SUPPORT#undef  USER_I_CACHE_MODE#define USER_I_CACHE_MODE       CACHE_WRITETHROUGH#undef  USER_D_CACHE_MODE#define USER_D_CACHE_MODE       CACHE_COPYBACK/* MMU configuration */#define	INCLUDE_MMU_BASIC#undef  INCLUDE_MMU_FULL        /* no MMU support */#undef  INCLUDE_MMU_MPU/* * TODO - * Only those options that are actually user changeable should be defined * here.  Options that cannot be changed should be moved to template.h. *//* * Network driver configuration. * * De-select unused (default) network drivers selected in configAll.h. */#undef	INCLUDE_SM_NET		/* include backplane net interface */#undef	INCLUDE_SM_SEQ_ADDR	/* shared memory network auto address setup *//* Enhanced Network Driver (END) Support */#undef  INCLUDE_END#ifdef	INCLUDE_END#define INCLUDE_DEC21X40END	/* include PCI-based DEC 21X4X END Ethernet */#define INCLUDE_FEI82557END	/* include PCI-based Intel END Ethernet */#undef  WDB_COMM_TYPE		/* WDB agent communication path is END */#define WDB_COMM_TYPE	WDB_COMM_END#ifdef INCLUDE_DEC21X40END#define INCLUDE_MIILIB#endif#endif  /* INCLUDE_END *//* PCI configuration */#undef INCLUDE_PCI/* * Interrupt mode - interrupts can be in either preemptive or non-preemptive * mode.  For non-preemptive mode, change INT_MODE to INT_NON_PREEMPT_MODEL */#define  INT_MODE	INT_PREEMPT_MODEL/* * Enable BSP-configurable interrupt priorities: order of servicing and * masking of interrupts will be determined by ambaIntLvlPriMap[] in * sysLib.c.  If AMBA_INT_PRIORITY_MAP is not defined, priority of * interrupts will be least-significant bit first. */#undef	AMBA_INT_PRIORITY_MAP	/* BSP-configurable interrupt priorities *//* * miscellaneous definitions * Note: ISR_STACK_SIZE is defined here rather than in ../all/configAll.h * (as is more usual) because the stack size depends on the interrupt * structure of the BSP. */#define ISR_STACK_SIZE	0x800	/* size of ISR stack, in bytes *//* Optional timestamp support */#undef	INCLUDE_TIMESTAMP	/* define to include timestamp driver *//* Optional TrueFFS support */#undef	INCLUDE_TFFS		/* define to include TrueFFS driver */#ifdef INCLUDE_TFFS#define INCLUDE_SHOW_ROUTINES#define INCLUDE_DOSFS#endif /* INCLUDE_TFFS */#include "template.h"#undef BSP_VTS#ifdef BSP_VTS/*************************************************** * Add these defines for the Validation Test Suite * ***************************************************/#define INCLUDE_SHELL#define INCLUDE_RLOGIN#define INCLUDE_SHOW_ROUTINES#define INCLUDE_NET_SYM_TBL#define INCLUDE_LOADER#define INCLUDE_PING#define INCLUDE_NET_SHOW#endif /*BSP_VTS*/#ifdef __cplusplus}#endif#endif  /* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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