option.h

来自「武汉创维特ARM7实验箱的全部源代码」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef __OPTION_H__
#define __OPTION_H__

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

#define MCLK (60000000)
#define BAUD (115200)
#define SDRAM_BASE_ADDRESS 0xc000000
#define DOWNLOAD_ADDRESS SDRAM_BASE_ADDRESS + 0x0200000

#define PLLON 1
#define PLL_M (0x34)
#define PLL_P (0x3)
#define PLL_S (0x1)

#define WRBUFOPT (0x8)   //write_buf_on
#define SYSCFG_0KB (0x0|WRBUFOPT)//Disable cache,ENable write buffer
#define SYSCFG_4KB (0x2|WRBUFOPT)//half cache enable,Enable write buffer
#define SYSCFG_8KB (0x6|WRBUFOPT)//full cache enable,Enable write buffer

#define SDRAM	    2		//In case SDRAM is used
#define BUSWIDTH    (16)
#define CACHECFG    SYSCFG_8KB
#define _RAM_STARTADDRESS 0x0c100000	
#define _ISR_STARTADDRESS 0x0c7fff00     

#endif /*__OPTION_H__*/

⌨️ 快捷键说明

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