📄 option.h
字号:
/**************************************************************
NAME: option.h
DESC: To measuure the USB download speed, the WDT is used.
To measure up to large time, The WDT interrupt is used.
HISTORY:
Feb.20.2002:Shin, On Pil: Programming start
Mar.25.2002:purnnamu: S3C2440 profile.c is ported for S3C2440.
**************************************************************/
#ifndef __OPTION_H__
#define __OPTION_H__
//#define FCLK (296352000)
#define FCLK (399650000)//fax20060110
#define UCLK 48000000
#define HCLK (FCLK/3)
//#define HCLK (FCLK/4) //3
#define PCLK (HCLK/2)
//64MB
// 0x30000000 ~ 0x30ffffff : Download Area (16MB) Cacheable
// 0x31000000 ~ 0x33feffff : Non-Cacheable Area
// 0x33ff0000 ~ 0x33ff47ff : Heap & RW Area
// 0x33ff4800 ~ 0x33ff7fff : FIQ ~ User Stack Area
// 0x33ff8000 ~ 0x33fffeff : Not Useed Area
// 0x33ffff00 ~ 0x33ffffff : Exception & ISR Vector Table
#define _RAM_STARTADDRESS 0x30000000
//jayson_051212_01 #define _ISR_STARTADDRESS 0x31ffff00
#define _ISR_STARTADDRESS 0x31ffff00 //changed by finey 20060721 for 32M SDRAM
//jayson_051212_01 #define _MMUTT_STARTADDRESS 0x31ff8000
#define _MMUTT_STARTADDRESS 0x31ff8000 //changed by finey 20060721 for 32M SDRAM
#define _STACK_BASEADDRESS_END 0x31ff0000 //changed by finey 20060721 for 32M SDRAM //jayson_051212_01
//#define _NONCACHE_STARTADDRESS 0x31000000
//jayson_051212_01 #define _S200B_FLAG (*(volatile unsigned *)0x32040000) //test by changes 20051123
#define _S200B_FLAG (*(volatile unsigned *)CE_RUN_ADDRESS) //test by changes 20051123
#define _IBOOT_INSTALL_FLAG (*(volatile unsigned *)(CE_RUN_ADDRESS+4)) //fax060214 for 2G Iboot
//jayson_051212_01 #define _Nand_Id (*(volatile unsigned *)0x32040004) //test by changes 20051123
#define IBOOT_FLAG *(unsigned char*)0x00000ff0 //Iboot_fax
#define IBOOT_FLAG_2G *(unsigned char*)0x00000ff4//fax060215
#define VA_BASE 0x8C000000 // defined in OEMAddressTable
#define VIRTUAL_TO_PHYSICAL(va) ((va) - VA_BASE + _RAM_STARTADDRESS)
#define IPL_RUN_ADDRESS 0x30250000//changes 20060213
//USB Device Options
#define USBDMA 1
#define USBDMA_DEMAND 0 //the downloadFileSize should be (64*n)
#define BULK_PKT_SIZE 64//32
#define _MICROSOFTUSB_ 1 //handy 0606
#define _SUMSAMGUSB_ 0
#endif /*__OPTION_H__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -