?? option.h
字號:
#ifndef __OPTION_H__
#define __OPTION_H__
// ************* OPTIONS **************
//#define MCLK (48000000) //系統主頻設定
#define MCLK (66000000) //系統主頻設定
//#define PLLON 1
//Fout = (8 + M_DIV) * Fin / [ (2+P_DIV) * (2^S_DIV) ]
#if (MCLK==24000000)
#define PLL_M (22)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==32000000)
#define PLL_M (32)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==40000000)
#define PLL_M (42)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==48000000)
#define PLL_M (52)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==56000000)
#define PLL_M (62)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==64000000)
#define PLL_M (72)
#define PLL_P (3)
#define PLL_S (1)
#elif (MCLK==66000000)
#define PLL_M (58)
#define PLL_P (2)
#define PLL_S (1)
#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_Start (0x1000000) //S3C44B0X的特殊寄存器也不使用Cache進行讀寫
#define Non_Cache_End (0xc000000)
#define TRUE 1
#define FALSE 0
#define OK 1
#define FAIL 0
#define NULL 0
#define ON 1
#define OFF 0
#endif /*__OPTION_H__*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -