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

📄 test_platform.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
字号:
#ifndef TEST_PLATFORM
#define TEST_PLATFORM

/* TODO :
   This file determines on what ever platform you are working on.
   
   Using EVB on your PC using WIN_XP
   1. Un comment the WIN_XP flag
   

   Using OMAP platform (P2)
   1. Un comment the OMAP flag
   2. Un comment the proper CS that you are using
   3. Un comment the proper JTAG that you are using




*/

/*************  Platform ************************/
#define P2_OR_F_SAMPLE
//#define WIN_XP
//#define MAINSTONE
/*************  Jtag     ************************/
//#define OST
#define TRACE32 


/*
  P2_OR_F_SAMPLE
*/
#ifdef P2_OR_F_SAMPLE

/* types*/
#define TRUE            1
 
//#define MDOC_CS3 /* Un comment as necessary*/
#define MDOC_CS2

/*
TC EMIFS REG
 	CS0 CONF    0xFFFECC10 
	CS1 CONF    0xFFFECC14 
	CS2 CONF    0xFFFECC18 
	CS3 CONF    0xFFFECC1c 

 Memory Map
  CS0 0x00000000 /0x0C000000
  CS1 0x04000000
  CS2 0x08000000 
  CS3 0x0c000000 /0x00000000
  
  CS4 0x10000000 SDRAM
  CS5 0x20000000 intrnal SRAM
  	
 
*/
#ifdef MDOC_CS3
#define DOC_WIN_ADD  			0x10000000	/* 0x0c000000 MDOC address */
#define BUS_CONF_REG1_ADD  		0xFFFECC1C  /* nCSx configure register */ 
#define BUS_CONF_REG1_VALUE  	0xfff3      /* '0x2BF' for System Clock=52MHz, wait cycle=6, 16 bit mode, write enable, dummy cycle=1 */	
#endif

#ifdef MDOC_CS2
#define DOC_WIN_ADD  			0x08000000	/* MDOC address */
#define BUS_CONF_REG1_ADD  		0xFFFECC18  /* nCSx configure register */ 
#define BUS_CONF_REG1_VALUE  	0x0000fff3  /* '0x2BF' for System Clock=52MHz, wait cycle=6, 16 bit mode, write enable, dummy cycle=1 */	
#endif

#ifdef OST
#define PRINTF printf
#endif /* OST */

#ifdef TRACE32
 #define PRINTF myPrintf
#endif /* TRACE32*/


#define BUS_CONF_REG2_ADD  		0
#define BUS_CONF_REG3_ADD  		0 

#define BUS_CONF_REG2_VALUE  	0
#define BUS_CONF_REG3_VALUE  	0               


#endif /* P2_OR_F_SAMPLE*/


#ifdef MAINSTONE

#define MDOC_CS5 /*MDOC_CS2  */ /* Un comment as necessary*/

#ifdef MDOC_CS5
#define DOC_WIN_ADD  			0x14000000	/* MDOC address */
#define BUS_CONF_REG1_ADD  		0x48000010  /* MSC2 configure register */ 
#define BUS_CONF_REG1_VALUE  	0x7FF0FFF9  /* '0x2BF' for System Clock=52MHz, wait cycle=6, 16 bit mode, write enable, dummy cycle=1 */	
#endif

#ifdef MDOC_CS0
#define DOC_WIN_ADD  			0x00000000	/* MDOC address */
#define BUS_CONF_REG1_ADD  		0x48000008  /* MSC0 configure register */ 
#define BUS_CONF_REG1_VALUE  	0x0000fff3  /* '0x2BF' for System Clock=52MHz, wait cycle=6, 16 bit mode, write enable, dummy cycle=1 */	
#endif

#define BUS_CONF_REG2_ADD  		0
#define BUS_CONF_REG3_ADD  		0 

#define BUS_CONF_REG2_VALUE  	0
#define BUS_CONF_REG3_VALUE  	0               

#define  TREC32PRINT

#ifdef TREC32PRINT
#define PRINTF	myPrintf  
#endif

#endif /*MAINSTONE*/


/*
WIN EX
*/
#ifdef WIN_XP
 #include <memory.h> 
 #include <windows.h> 
 #include <winbase.h>
 #include "mapmemapi.h"
 
#define PRINTF printf

#define DOC_WIN_ADD  0xd8000


#endif /* WIN_XP*/
/* General types definitions */
typedef unsigned char   BYTE;

typedef int            FLBoolean;
typedef unsigned char  FLByte;           /* 8  bit unsigned variable */
typedef unsigned short FLWord;           /* 16 bit unsigned variable */
typedef unsigned long  FLDword;          /* 32 bit unsigned variable */
typedef unsigned int   FLNative;         /* Native variable at least 16 bits */
typedef signed char    FLSByte;          /* 8  bit signed variable */
typedef signed short   FLSWord;          /* 16 bit signed variable */
typedef signed long    FLSDword;         /* 32 bit signed variable */
typedef int            FLSNative;        /* Signed native variable at least 16 bits */
typedef FLSWord        FLWchar;          /* Unicode type variable */
typedef FLDword        CardAddress ;	 /* Physical offset on card */

#ifndef PRINTF
#define PRINTF printf
#endif /* PRINTF */


#endif /* TEST_PLATFORM*/


⌨️ 快捷键说明

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