option.h
来自「基于arm7的ucii的实时处理操作系统的移植」· C头文件 代码 · 共 56 行
H
56 行
#ifndef __OPTION_H__
#define __OPTION_H__
// ************* OPTIONS **************
#define MCLK (20000000)
#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) //写缓冲使能(Enabel write buffer operation)
#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 0x0c000000
//08M字节 SDRAM:0x0c000000-0x0c7fffff
//16M字节 SDRAM:0x0c000000-0x0cffffff
//32M字节 SDRAM:0x0c000000-0x0dffffff
//64M字节 SDRAM:0x0c000000-0x0fffffff
//#define _ISR_STARTADDRESS 0xc3fff00 //GCS6:32M bits(4M字节) DRAM/SDRAM
#define _ISR_STARTADDRESS 0xc7fff00 //GCS6:64M bits(8M字节) DRAM/SDRAM
#define Non_Cache_Start (0x2000000)
#define Non_Cache_End (0xc000000)
#endif /*__OPTION_H__*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?