option.h
来自「44b0(arm7)一个参考代码」· C头文件 代码 · 共 37 行
H
37 行
#ifndef __OPTION_H__
#define __OPTION_H__
// ************* OPTIONS **************
//#define MCLK 40000000
#define MCLK 60000000 //Must modify by__michael__
#define WRBUFOPT (0x8) //write_buf_on
#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
//BUSWIDTH; 16,32
#define BUSWIDTH (16)
#define CACHECFG SYSCFG_8KB
#define _RAM_STARTADDRESS 0xC000000
//#define _ISR_STARTADDRESS 0xc1fff00 //GCS6:16M DRAM
// #define _ISR_STARTADDRESS 0xc7fff00 //GCS6:64M DRAM/SDRAM
//#ifndef __CACHE_AS_SP__
// #define _ISR_STARTADDRESS 0x10001400 //cache=0kb, all as sdram
//#else
#define _ISR_STARTADDRESS 0xc7ff000 //GCS6:64M DRAM/SDRAM
//#endif
#define NonCacheStart 0x2000000
#define NonCacheEnd 0xc000000
// NOTE: rom.mak,option.a have to be changed
#endif /*__OPTION_H__*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?