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: S3C2400X profile.c is ported for S3C2440X.
 *************************************************************
*/
 
#ifndef __OPTION_H__
#define __OPTION_H__

#define MEGA    (1000000)

#define FIN     (12000000)    
// #define FIN        (16934400)
// #define FCLK 304800000
// #define FCLK 296352000
// #define FCLK 271500000    
// #define FCLK 200000000
// #define FCLK 240000000
// #define FCLK 300000000
// #define FCLK 320000000
// #define FCLK 330000000
// #define FCLK 340000000
// #define FCLK 350000000
// #define FCLK 360000000
// #define FCLK 380000000
// #define FCLK 400000000
/*

// Main clock
#if FIN==12000000
    #if (FCLK==200000000)
    #define HCLK (FCLK/2)
    #define PCLK (HCLK/2)
    #elif (FCLK==304800000) || (FCLK==271500000) || (FCLK==240000000)
    #define HCLK (FCLK/3)
    #define PCLK (HCLK/2)
    #elif (FCLK==360000000) || (FCLK==380000000) || (FCLK==400000000)
    #define HCLK (FCLK/4)
    #define PCLK (HCLK/2)
    #elif (FCLK==340000000) || (FCLK==350000000) || (FCLK==300000000) || (FCLK==320000000) || (FCLK==330000000)
    #define HCLK (FCLK/4)
    #define PCLK (HCLK/1)
    #endif
#else    //FIN=16.9344MHz
    #if FCLK==266716800
    #define HCLK (FCLK/2)
    #define PCLK (HCLK/2)
    #elif FCLK==296352000
    #define HCLK (FCLK/3)
    #define PCLK (HCLK/2)
    #elif FCLK==399651840
    #define HCLK (FCLK/3)
    #define PCLK (HCLK/2)
    #endif
#endif

// USB clock
#define UCLK 48000000
*/
// use variable
#ifdef GLOBAL_CLK
    U32 FCLK;
    U32 HCLK;
    U32 PCLK;
    U32 UCLK;
#else
     extern unsigned  int FCLK;
     extern unsigned  int HCLK;
     extern unsigned  int PCLK;
     extern unsigned  int UCLK;
#endif

//  BUSWIDTH : 16,32
#define BUSWIDTH    (32)

// 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
#define _ISR_STARTADDRESS     0x33ffff00     
#define _MMUTT_STARTADDRESS    0x33ff8000
#define _STACK_BASEADDRESS    0x33ff8000
#define HEAPEND              0x33ff0000
#define _NONCACHE_STARTADDRESS    0x31000000

// If you use ADS1.x, please define ADS10
#define ADS10 1

// USB Device Options
#define USBDMA        1     // 1->0
#define USBDMA_DEMAND     0     // the downloadFileSize should be (64*n)
#define BULK_PKT_SIZE    64

//  note: makefile,option.a should be changed

// USER test program
#define LCD_LTS350Q1_PE1        1
#define LCD_V16C6448AC            0
#define LCD_VGA_640_480            1
#define LCD_VGA_800_600            1

#define LCD_TYPE_N35        1
#define LCD_TYPE_A70        2
#define LCD_TYPE_VGA1024x768    3
#define LCD_TYPE    LCD_TYPE_VGA1024x768

#endif /*__OPTION_H__*/

转载于:https://www.cnblogs.com/liuchengchuxiao/p/4169151.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu11 -E checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... no checking for x86_64-w64-mingw32-ar... no checking for x86_64-w64-mingw32-lib... no checking for x86_64-w64-mingw32-link... no checking for ar... ar checking the archiver (ar) interface... ar checking dependency style of gcc -std=gnu11... gcc3 checking for x86_64-w64-mingw32-as... no checking for as... as checking whether dlltool supports --temp-prefix... yes checking whether to build a w32api package for Cygwin... no checking whether to build the Win32 libraries... yes checking whether to build the Win64 libraries... yes checking whether to build the WinARM32 libraries... no checking whether to build the WinARM64 libraries... no checking whether to use genlib... no checking whether to enable globbing... no checking whether to enable private exports... no checking whether to enable delay import libs... no checking what to provide as libmsvcrt.a... msvcrt-os checking whether to include support for Control Flow Guard... no checking whether to enable experimental features... no checking whether the compiler supports -municode... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for _mingw_mac.h... no
最新发布
06-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值