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

📄 config.h

📁 Tornado 2.0 BSP for HaeDong HD860-R3 韩国HaeDong公司开发的基于Motorola的MPC860处理器的开发板的BSP
💻 H
字号:
/********************************************************************/
/*                                                                  */
/* Filename : hd860r3/config.h                                      */
/*                                                                  */
/* Purpose. : Conta the configuration parameters for the HD860-R3   */
/*            boards.                                               */
/*                                                                  */
/********************************************************************/

#ifndef	INCconfigh
#define	INCconfigh

/********************************************************************/
/*               HAEDONG BOARD SPECIFIC PARAMETERS                  */
/********************************************************************/
#define	YES	1
#define	NO	0

/*                                                                  */
/* CPU INTERNAL CLOCK SETTING (referenced in hd860r3.h, rominit.s)  */
/*                                                                  */
#define CLK50MHZ	YES
#define CLK65MHZ	NO
#define CLK80MHZ	NO

/*                                                                  */
/* Ethernet SCC1 TCLK selection  (referenced in sysLib.c)           */
/*                                                                  */
#define SCC1_TCLK_CLK4	YES		/* tclk -> clk4 */
#define SCC1_TCLK_CLK1	NO		/* tclk -> clk1 */

#define SYS_MODEL	"HD860-R3"	/* referenced in sysLib.c */

/********************************************************************/


/*                                                                  */
/* BSP version/revision identification, should be placed before the */
/* the #include "configAll.h"                                       */
/* /0   -    First Pass (Inhouse Only)                              */
/* /1   -    Alpha                                                  */
/*           - Added 32khz/25mhz detection                          */
/*           - Added Keyed Timer Register Accesses                  */
/*           - Added preA2 silicon detection for UPMA timing        */
/*           	                                                    */
/* /2	-	 Release												*/
/*			 - Added NVRAM Support                                  */
/*           - Fixed Decrementer clock problem                      */
/*           - Removed key writes (default is unlocked for nonRTC	*/
/*             registers, which we don't access)     			    */
/*           - Fixed network parameter passing bug                  */

/* New BSP version/revision id */
#define BSP_VER_1_2 	1
#define BSP_VER_1_1 	1 		/* compatible with 1.2 */
#define BSP_VERSION 	"1.2"	/* A Tornado 2.0 BSP */
#define BSP_REV 		"/2" 	/* increment with each revision */



/*                                                                  */
/* Now include the global configuration information.                */
/*                                                                  */
#include "configAll.h"




/********************************************************************/
/* Including Ethernet driver.                                       */
/********************************************************************/
#define INCLUDE_CPM	

/********************************************************************/
/* Including BSD for TCP/IP                                         */
/********************************************************************/
#define INCLUDE_BSD

/********************************************************************/
/* MMU:	must be Supported in Tornado II(important)                  */
/********************************************************************/
#undef INCLUDE_CACHE_SUPPORT
#undef USER_I_CACHE_ENABLE
#undef USER_D_CACHE_ENABLE
#undef INCLUDE_MMU_BASIC
#undef USER_I_MMU_ENABLE
#undef USER_D_MMU_ENABLE

#define INCLUDE_CACHE_SUPPORT
#define USER_I_CACHE_ENABLE
#define	USER_D_CACHE_ENABLE
#define INCLUDE_MMU_BASIC
#define USER_I_MMU_ENABLE
#define USER_D_MMU_ENABLE


/********************************************************************/
/* Excluding WDB Agent (optional)                                   */
/********************************************************************/
#ifdef EXCLUDE_WDB          /* if -DEXCLUDE_WDB defined in Makefile */
#undef INCLUDE_WDB          /* explicitly remove WDB agent          */		
#endif						/* (backend support)                    */

/********************************************************************/
/* Including Target Shell (optional)                                */
/********************************************************************/
#define INCLUDE_SHELL

/********************************************************************/
/* Including User Demo in usrConfig.c (optional)                    */
/********************************************************************/
#define notINCLUDE_DEMO


/********************************************************************/
/* Including Sample Application in usrConfig.c (optional)           */
/********************************************************************/
#define notINCLUDE_USER_APPL
#define	USER_APPL_INIT		taskSpawn ("sample_app", 20, 0, 2000, (FUNCPTR) sample_app, 0,0,0,0,0,0,0,0,0,0)


/**************************************************************************************************/
/* Define a default set of boot parameters.                                                       */
/**************************************************************************************************/
/* boot device          : cpm                                                                     */
/* unit number          : 0                                                                       */
/* processor number     : 0                                                                       */
/* host name            : host_name                                                               */
/* file name            : /tornado/target/config/hd860r3/vxWorks                                  */
/* inet on ethernet (e) : 0.0.0.0                                                                 */
/* host inet (h)        : 0.0.0.0                                                                 */
/* gateway inet (g)     : 0.0.0.0                                                                 */
/* user (u)             : anonymous                                                               */
/* ftp password (pw)    : anonymous                                                               */
/* flags (f)            : 0x8                                                                     */
/* target name (tn)     : hd860r3                                                                 */
/**************************************************************************************************/
/* $dev(0,procnum)host:/file h=# e=# b=# g=# u=usr [pw=passwd] f=# tn=targetname s=script o=other */
/*                                                                                                */
/* Boot flags:                                                                                    */
/*    0x02  - load local system symbols                                                           */
/*    0x04  - don't autoboot                                                                      */
/*    0x08  - quick autoboot (no countdown)                                                       */
/*    0x20  - disable login security                                                              */
/*    0x40  - use bootp to get boot parameters                                                    */
/*    0x80  - use tftp to get boot image                                                          */
/*    0x100 - use proxy arp                                                                       */
/**************************************************************************************************/


#define DEFAULT_BOOT_LINE \
"cpm(0,0)host_name:/tornado/target/config/hd860r3/vxWorks e=0.0.0.0 h=0.0.0.0 g=0.0.0.0 u=anonymous pw=anonymous f=0x8 tn=hd860r3"




/*
 * Number of TTY definition  
 */
#undef	NUM_TTY
#define	NUM_TTY		N_SIO_CHANNELS

/*
 * Console baud rate definition  
 */
#undef  CONSOLE_BAUD_RATE
#define CONSOLE_BAUD_RATE	38400  /* console baud rate (9600, 19200, 38400)*/

/* 
 *  NVRAM Definitions : Using SEEPROM (Microchip 24LC32A)
 */         
#define NVRAM_INITIALIZED  "INIT"     /* Initialization Indicator */
#define NV_INIT_SIZE        4		  /* (size of NVRAM_INITIALIZED) */
#undef  NV_BOOT_OFFSET	              /* room for init indicator  */
#define NV_BOOT_OFFSET      (NV_INIT_SIZE+1)  
#define NV_RAM_SIZE	        4096	  /* 32Kbit, 4KB, 4096 byte, 24LC32 */
#define NV_RAM_INTRVL       1



#define	SYS_CLK_RATE_MIN	1	    /* min system clock rate    */
#define	SYS_CLK_RATE_MAX	8000	/* max system clock rate    */
#define	AUX_CLK_RATE_MIN	0	    /* min auxiliary clock rate */
#define	AUX_CLK_RATE_MAX	0	    /* max auxiliary clock rate */

/*                                  
 * Remove unnecessary drivers      
 */                                  
#undef INCLUDE_BP
#undef INCLUDE_EX
#undef INCLUDE_ENP
#undef INCLUDE_SM_NET
#undef INCLUDE_SM_SEQ_ADD

/* 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				0xFFE00000				/* base address of ROM (also defined in makefile) */
#define ROM_TEXT_ADRS				ROM_BASE_ADRS + 0x100	/* (also defined in makefile) */
#define ROM_SIZE					0x00200000				/* 2MB ROM space (also defined in makefile) */

#define LOCAL_MEM_LOCAL_ADRS		0x00000000				/* Base of RAM (also defined in makefile) */
#define LOCAL_MEM_SIZE				0x01000000				/* 0x01000000(size of SDRAM 16MB) (also defined in makefile) */


/******************************************************************************************/
/* RAM base address for vxWorks System image (also defined in makefile)                   */
/* vxWorks System Image is located in [RAM_LOW_ADRS ~ RAM_HIGH_ADRS]                      */ 
/******************************************************************************************/
#define RAM_LOW_ADRS				0x00050000				

/******************************************************************************************/
/* RAM base address for ROM boot code (also defined in makefile)                          */
/* Boot Image is located in [RAM_HIGH_ADRS ~ (LOCAL_MEM_SIZE - USER_RESERVED_MEM) ]       */
/* So, user can change RAM_HIGH_ADRS according to vxWorks image size.                     */
/******************************************************************************************/
#define RAM_HIGH_ADRS				0x00100000				

/******************************************************************************************/
/* User reserved memory size                                                              */
/******************************************************************************************/
#define USER_RESERVED_MEM 			0x00000000	



#include "hd860r3.h"


#endif	/* INCconfigh */




 


⌨️ 快捷键说明

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