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

📄 option.h

📁 TP900掌机功能测试C源码大全(含开发头文件)
💻 H
字号:
#ifndef __OPTION_H__
#define __OPTION_H__

// ************* OPTIONS **************

#define NAND_BASE_ADDR		0x4000000		//nand flash的起始地址

#define HZDICTION				ROMBASEADDR + 0x40b00	//拼音输入法的起始地址


#ifdef _SRAM_NOUSE	//sdram
#define _RAM_STARTADDRESS	0xc000000	//8MB SDRAM
#define _ISR_STARTADDRESS	0xc7fff00     //GCS6:64Mbit(8MB) DRAM/SDRAM
#define _RAM_ENDADDRESS		0xc800000
#define _SYS_STARTADDRESS	0x50000		//0x00处为bios,程序目前的起始地址设置为0x50000

#else	//sram

#define _RAM_STARTADDRESS	0x6000000	//8MB SDRAM
#define _ISR_STARTADDRESS	0x601ff00	//0xc81ff00     //GCS6:64Mbit(8MB) DRAM/SDRAM
#define _RAM_ENDADDRESS		0x6040000
#define _SYS_STARTADDRESS	0xb000

#endif


#define MCLK (40000000)

#define PLLON 1

#if (MCLK==66000000)
#define PLL_M (0x3a)
#define PLL_P (0x3)
#define PLL_S (0x1)

#elif (MCLK==60000000)
#define PLL_M (0x34)
#define PLL_P (0x3)
#define PLL_S (0x1)

#elif (MCLK==40000000)
#define PLL_M (0x48)
#define PLL_P (0x3)
#define PLL_S (0x2)

#elif (MCLK==20000000)
#define PLL_M (0x48)
#define PLL_P (0x3)
#define PLL_S (0x3)

#endif

#define WRBUFOPT (0x8)   //write_buf_on

#define SYSCFG_8KBn (0x6)
#define SYSCFG_0KB (0x0|WRBUFOPT)
#define SYSCFG_4KB (0x2|WRBUFOPT)
#define SYSCFG_8KB (0x6|WRBUFOPT)

#define DRAM	    1		//In case DRAM is used
#define SDRAM	    2		//In case SDRAM is used
#define BDRAMTYPE   SDRAM	//used in power.c,44blib.c

#define BUSWIDTH    (16)

#define CACHECFG    SYSCFG_8KB

// NOTE: rom.mak,option.a have to be changed
#endif /*__OPTION_H__*/

⌨️ 快捷键说明

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