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

📄 config.h

📁 ADS88x BSP
💻 H
字号:
/* ads88x/config.h - Motorola DUETads board configuration header *//*Copyright (c) 1984-2005 Wind River Systems, Inc.The right to copy, distribute, modify or otherwise make useof this software may be licensed only pursuant to the termsof an applicable Wind River license agreement.*//*modification history--------------------01e,20apr05,cjj  Updated BSP_REV to "/1".  SPR#10828101d,10apr05,mig  Change BSP_VERSION. SPR# 10724501c,30mar05,mig  Fix compile warnings.01b,08mar04,dtr  Add Security engine include.01a,20feb04,dtr  created ads860/config.h.*//*This file contains the configuration parameters for theMotorola MPC860ADS board.*/#ifndef	INCconfigh#define	INCconfigh#ifdef __cplusplus    extern "C" {#endif/* BSP version/revision identification, should be placed * before #include "configAll.h" */#define BSP_VER_1_1     1#define BSP_VER_1_2     1#define BSP_VERSION     "2.0"		/* A vxWorks 6.0 BSP  */#define BSP_REV         "/1"		/* 0 for the first bsp revision */#include "configAll.h"#define FADS_885#define INCLUDE_MOT_FEC        /* Include FEC ethernet device config */#define INCLUDE_END#    define DEFAULT_BOOT_LINE \"motfec(0,0)host:/usr/vw/config/ads860/vxWorks h=90.0.0.3 e=90.0.0.50 u=target"#undef FORCE_DEFAULT_BOOT_LINE/* DRAM type on the ADS board */#undef EDO_DRAM			/* to define if the DRAM is EDO */ #define INCLUDE_SDRAM		/* to define in case of SDRAM *//* USE_KEYED_REGS significantly reduces the boot lockup problem when backup \   battery attached (h/w errata). It also increases the amount of time spent    in the timer interrupt handler. If defined, you should create a new    bootrom, both the bootrom and the vxWorks image must have this defined    for this to work.*/#undef USE_KEYED_REGS           /* When trying to build a rom resident image this BSP requires 32 bit    branching to branch to the handlers in the vxWorks image*/#undef INCLUDE_EXC_EXTENDED_VECTOR#ifdef INCLUDE_EXC_EXTENDED_VECTOR#define INCLUDE_SYS_HW_INIT_0#endif /*INCLUDE_EXC_EXTENDED_VECTOR */#ifdef INCLUDE_SYS_HW_INIT_0    /*     * Perform any BSP-specific initialisation that must be done before     * cacheLibInit() is called and/or BSS is cleared.     */#ifndef _ASMLANGUAGEIMPORT BOOL excExtendedVectors; extern void sysHwInit0();#endif /*_ASMLANGUAGE */#define SYS_HW_INIT_0 sysHwInit0#endif /* INCLUDE_SYS_HW_INIT_0 */#define USER_I_MMU_ENABLE#define USER_D_MMU_ENABLE#define INCLUDE_MMU_BASIC#define INCLUDE_CACHE_SUPPORT#define USER_D_CACHE_ENABLE#undef  USER_D_CACHE_MODE#define USER_D_CACHE_MODE  CACHE_COPYBACK /* select COPYBACK or WRITETHROUGH */#define USER_I_CACHE_ENABLE#undef  USER_I_CACHE_MODE#define USER_I_CACHE_MODE  CACHE_COPYBACK /* select COPYBACK or WRITETHROUGH *//* Number of TTY definition */#undef	NUM_TTY#define	NUM_TTY		N_SIO_CHANNELS		/* defined in ads860.h *//* Optional Auxilliary clock support */#undef  INCLUDE_AUX_CLK/* Optional timestamp support */#undef	INCLUDE_TIMESTAMP#ifdef INCLUDE_TIMESTAMP#define INCLUDE_AUX_CLK#endif/* Security Engine optional (requires additional software external to BSP)*/#undef INCLUDE_SECURITY_ENGINE/* optional TrueFFS support */#undef  INCLUDE_TFFS#ifdef INCLUDE_TFFS#define INCLUDE_DOSFS		/* dosFs file system */#define INCLUDE_SHOW_ROUTINES	/* show routines for system facilities*/#endif /* INCLUDE_DOSFS *//* clock rates */#define	SYS_CLK_RATE_MIN	1	/* minimum system clock rate */#define	SYS_CLK_RATE_MAX	8000	/* maximum system clock rate */#define	AUX_CLK_RATE_MIN	1	/* minimum auxiliary clock rate */#define	AUX_CLK_RATE_MAX	8000	/* maximum auxiliary clock rate *//* * Cristal Frequency - This macro defines the input oscillator frequency * clocking the PPC860. On the ADS board, the CPU is clocked by a cristal * running at 4 Mhz. */#define CRISTAL_FREQ		10000000		/* 10 Mhz *//* * SPLL_FREQ_REQUESTED - This macro defined the expected system PLL (SPLL) * frequency divided by 2. The only tested freq is 50Mhz. */#define SPLL_FREQ_REQUESTED  FREQ_50_MHZ             /* 50 Mhz */#define PLPRCR_VAL	PLPRCR_100/* * DRAM refresh frequency - This macro defines the DRAM refresh frequency. * e.i: A DRAM with 1024 rows to refresh in 16ms:  * DRAM_REFRESH_FREQ = 1024/ 16E-3 = 64E3 hz */#ifndef INCLUDE_SDRAM#   define DRAM_REFRESH_FREQ	64000			/* 64 kHz */#else /* INCLUDE_SDRAM */#   define DRAM_REFRESH_FREQ	SDRAM_REFRESH_FREQ	/* defined in ads860.h*/#endif /* INCLUDE_SDRAM *//* * Baud Rate Generator division factor - 0 for division by 1 *					 1 for division by 4 *					 2 for division by 16 *					 3 for division by 64 */#define BRGCLK_DIV_FACTOR  0#ifdef INCLUDE_MOT_FEC#define INCLUDE_FEC1#define INCLUDE_FEC2#endif/* miscellaneous definitions */ #define NV_RAM_SIZE     NONE            /* no NVRAM */ /* Memory addresses */#define LOCAL_MEM_LOCAL_ADRS	0x00000000	/* Base of RAM */#define LOCAL_MEM_SIZE		0x00800000 	/* 8 Mbyte memory available *//* * The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined * in config.h, MakeSkel, Makefile, and Makefile.* * All definitions for these constants must be identical. */#define ROM_BASE_ADRS		0x02800000	/* base address of ROM */#define ROM_TEXT_ADRS		ROM_BASE_ADRS + 0x100#define ROM_SIZE		0x00200000 	/* 2M ROM space *//* RAM address for ROM boot */#define RAM_HIGH_ADRS		0x00400000/* RAM address for sys image */#define RAM_LOW_ADRS		0x00010000#define USER_RESERVED_MEM	0x00000000	/* user reserved memory size *//* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE#include "ads88x.h"				/* include the ads860 params */#ifdef __cplusplus    }#endif#endif	/* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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