BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Option.h
Go to the documentation of this file.
1 /**************************************************************
2  NAME: option.h
3  DESC: To measuure the USB download speed, the WDT is used.
4  To measure up to large time, The WDT interrupt is used.
5  HISTORY:
6  Feb.20.2002:Shin, On Pil: Programming start
7  Mar.25.2002:purnnamu: S3C2400X profile.c is ported for S3C2440X.
8  **************************************************************/
9 
10 #ifndef __OPTION_H__
11 #define __OPTION_H__
12 
13 #define MEGA (1000000)
14 
15 #define FIN (12000000) //hzh
16 
17 #define FCLK 400000000
18 #define HCLK (FCLK/4)
19 #define PCLK (HCLK/2)
20 
21 #define UCLK 48000000
22 
23 
24 
25 // BUSWIDTH : 16,32
26 #define BUSWIDTH (32)
27 
28 //64MB
29 // 0x30000000 ~ 0x30ffffff : Download Area (16MB) Cacheable
30 // 0x31000000 ~ 0x33feffff : Non-Cacheable Area
31 // 0x33ff0000 ~ 0x33ff47ff : Heap & RW Area
32 // 0x33ff4800 ~ 0x33ff7fff : FIQ ~ User Stack Area
33 // 0x33ff8000 ~ 0x33fffeff : Not Useed Area
34 // 0x33ffff00 ~ 0x33ffffff : Exception & ISR Vector Table
35 
36 #define _RAM_STARTADDRESS 0x30000000
37 #define _ISR_STARTADDRESS 0x33ffff00
38 #define _MMUTT_STARTADDRESS 0x33ff8000
39 #define _STACK_BASEADDRESS 0x33ff8000
40 #define HEAPEND 0x33ff0000
41 #define _NONCACHE_STARTADDRESS 0x31000000
42 
43 //If you use ADS1.x, please define ADS10
44 #define ADS10 1
45 
46 //USB Device Options
47 #define USBDMA 1 //1->0, hzh
48 #define USBDMA_DEMAND 0 //the downloadFileSize should be (64*n)
49 #define BULK_PKT_SIZE 64
50 
51 // note: makefile,option.a should be changed
52 
53 #endif /*__OPTION_H__*/