?? option.h
字號:
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
option.h
Abstract:
Header file related to pre-compile option
Environment:
Keil C51 Compiler
Revision History:
08/28/2001 Chi-Yeh Tsai created
K_FIRMWARE_VERSION :0x02
1.07 from 1.06
playback JPG for card improve 10/19
ui add 10/26
USB OHCI add 10/30
upload test 10/30
--*/
//------------------------------------------------------------------------------
//Constant
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//DPOF_OPTION = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define DPOF_OPTION 1
//------------------------------------------------------------------------------
//Audio Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define AUDIO_OPTION 0 //always set to 0 for backward compatibility
//------------------------------------------------------------------------------
//OSD Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define OSD_OPTION 0 //always set to 0 for backward compatibility
//------------------------------------------------------------------------------
//Power Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define POWER_OPTION 0
//------------------------------------------------------------------------------
//Debug Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define DEBUG_OPTION 0 //always set to 0 for backward compatibility
//------------------------------------------------------------------------------
//DbgPrint Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define DBGPRINT_OPTION 1
//------------------------------------------------------------------------------
//PlayBack Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define PLAYBACK_OPTION 1
//------------------------------------------------------------------------------
//USB Audio Device Class Option =
// 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define USBAUDC_OPTION 1
//------------------------------------------------------------------------------
//USB Mass Storage Device Class Option =
// 0 Disable
// 1 Control/Bulk/Interrupt (CBI) Transport Protocol
// 2 Bulk-Only Transport Protocol
//------------------------------------------------------------------------------
#define USBMSDC_OPTION 2
//patch4.5@richie@mlun begin
//------------------------------------------------------------------------------
//USB MSDC Multi-LUN Option =
// 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define MLUN_OPTION 0
//patch4.5@richie@mlun end
//------------------------------------------------------------------------------
//USB Still Image Device Class Option =
// 0 Disable
// 1 PIMA 15740 Bulk-Only Transport Protocol
//------------------------------------------------------------------------------
#define USBSIDC_OPTION 1
//------------------------------------------------------------------------------
//AE/AWB/AF Option =
// 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
//patch4.2@andrew@0523
#ifdef ICM107B
#define AAA_OPTION 1
#endif
#ifdef OV13
#define AAA_OPTION 1
#endif
#ifdef OV2610 //patch5.0@jhyu@OV2610AE
#define AAA_OPTION 1
#endif
#ifdef OV3610 //patch5.2.1@jhyu@OV3610
#define AAA_OPTION 1
#endif
#ifdef OV3620
#define AAA_OPTION 1
#endif
//patch4.3@andrew@0618
//Now table only for MN39472+TLV990
#ifdef MN39472
#ifdef TLV990
#define AAA_OPTION 1
#endif
#endif
#ifdef MCM20027 //patch4.3@jhyu@0612
#define AAA_OPTION 1
#endif
//patch4.5@andrew@IR3Y48A_A
#ifdef SHARP_LZ24BP
#ifdef IR3Y48A
#define AAA_OPTION 1
#endif
#endif
//patch4.5@andrew@sony442_AE/AWB_1
#ifdef SONY442
#ifdef AD9843
#define AAA_OPTION 1
#endif
#endif
#ifndef AAA_OPTION
#define AAA_OPTION 0
#endif
// wyeo@0509
//------------------------------------------------------------------------------
//AVI Free Cluster Option =
// 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
//When record avi WITH audio, should turn on this option.
//This option search all free clusters before recording. This
//prevent audio and video not sync problem when the clusters
//are not very contiguous.But this option require many pre-processing
//time when searching whole BIG capacity flash with SMALL cluster.
//It is suggested that you define the time to record for your product,
//then caluclate approximate size require to search. For example, if
//you define your product could record 200 second, also assume that
//frame rate for your product is 10, and maximal size of each frame
//is 12K, the require size is 200*10*12K = 24,000K + 500K = 24,500K.
//If G_DOS_ClusterSize is 2K, then 24,500K/2K=12,250 cluster. Then
//set this value to G_DOS_LinearFATMax before calling file recording
//function. G_DOS_LinearFATMax is initial in Card_InitGlobal at cardlink.c
//to 0xFFFF(maximal clusters) whcih search whole flash.
#define K_Link_AllFreeCluster 1
//version4.0@ada@0513 for Multi-Directory
//------------------------------------------------------------------------------
//Single Directory Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define SINGLE_DIRECTORY 0
//patch4.4@ada@MP3 begin
//------------------------------------------------------------------------------
//MP3 Option = 0 Disable
// 1 Enable
//------------------------------------------------------------------------------
#define MP3_OPTION 0
//patch4.4@ada@MP3 end
//------------------------------------------------------------------------------
//Flash Card Option
//------------------------------------------------------------------------------
// WWWW start
#ifndef K_SDRAM_SUPPORTED_BIT
#define K_SDRAM_SUPPORTED_BIT 0 // 0x0001
#endif
#ifndef K_DOSRAM_SUPPORTED_BIT
#define K_DOSRAM_SUPPORTED_BIT 1 // 0x0002
#endif
#ifndef K_NANDF_SUPPORTED_BIT
#define K_NANDF_SUPPORTED_BIT 2 // 0x0004
#endif
#ifndef K_SMC_SUPPORTED_BIT
#define K_SMC_SUPPORTED_BIT 3 // 0x0008
#endif
#ifndef K_CFC_SUPPORTED_BIT
#define K_CFC_SUPPORTED_BIT 4 // 0x0010
#endif
#ifndef K_SDF_SUPPORTED_BIT
#define K_SDF_SUPPORTED_BIT 5 // 0x0020
#endif
#ifndef K_MMC_SUPPORTED_BIT
#define K_MMC_SUPPORTED_BIT 6 // 0x0040
#endif
#ifndef K_NORF_SUPPORTED_BIT
#define K_NORF_SUPPORTED_BIT 7 // 0x0080
#endif
#ifndef K_NEXTF_SUPPORTED_BIT
#define K_NEXTF_SUPPORTED_BIT 8 // 0x0100
#endif
#ifndef K_SDRAM_SUPPORTED
#define K_SDRAM_SUPPORTED (1<<K_SDRAM_SUPPORTED_BIT)
#endif
#ifndef K_DOSRAM_SUPPORTED
#define K_DOSRAM_SUPPORTED (1<<K_DOSRAM_SUPPORTED_BIT)
#endif
#ifndef K_NANDF_SUPPORTED
#define K_NANDF_SUPPORTED (1<<K_NANDF_SUPPORTED_BIT)
#endif
#ifndef K_SMC_SUPPORTED
#define K_SMC_SUPPORTED (1<<K_SMC_SUPPORTED_BIT)
#endif
#ifndef K_CFC_SUPPORTED
#define K_CFC_SUPPORTED (1<<K_CFC_SUPPORTED_BIT)
#endif
#ifndef K_SDF_SUPPORTED
#define K_SDF_SUPPORTED (1<<K_SDF_SUPPORTED_BIT)
#endif
#ifndef K_MMC_SUPPORTED
#define K_MMC_SUPPORTED (1<<K_MMC_SUPPORTED_BIT)
#endif
#ifndef K_NORF_SUPPORTED
#define K_NORF_SUPPORTED (1<<K_NORF_SUPPORTED_BIT)
#endif
#ifndef K_NEXTF_SUPPORTED
#define K_NEXTF_SUPPORTED (1<<K_NEXTF_SUPPORTED_BIT)
#endif
//---- Option Constant Define ---------
//------------------------------------------------------------------------------
// wyeo@0509
#define CODE_IS_MULTIBANK 1//set 1 for multibank code, must 1 for 533
#define SQUEEZE_CODE_SPACE 0//must 0 for 533 // wyeo@0509
#if (K_CARD_TYPE > 1)
#define CARD_OPTION 1
#else
#define CARD_OPTION 0
#endif
#define SDRAM_OPTION 0
//patch4.2@richie@ds0509 begin
#if (K_CARD_TYPE & K_DOSRAM_SUPPORTED)
#define DOSRAM_OPTION 1
#else
#define DOSRAM_OPTION 0
#endif
//patch4.2@richie@ds0509 end
#if (K_CARD_TYPE & K_NANDF_SUPPORTED)
#define NANDF_OPTION 1
#else
#define NANDF_OPTION 0
#endif
#if (K_CARD_TYPE & K_SMC_SUPPORTED)
#define SMC_OPTION 1
#else
#define SMC_OPTION 0
#endif
#if (K_CARD_TYPE & K_NORF_SUPPORTED)
#define NORF_OPTION 1
#else
#define NORF_OPTION 0
#endif
#if (K_CARD_TYPE & K_CFC_SUPPORTED)
#define CFAIDE 1 // either CFAIDE or CFAMEM is 1
#define CFAMEM 0
#define CFC_OPTION 1 // always 1 here
#else
#define CFAIDE 0
#define CFAMEM 0
#define CFC_OPTION 0
#endif
#if (K_CARD_TYPE & K_MMC_SUPPORTED)
#define MMC_OPTION 1
#else
#define MMC_OPTION 0
#endif
#if (K_CARD_TYPE & K_NEXTF_SUPPORTED)
#define NEXTF_OPTION 1
#else
#define NEXTF_OPTION 0
#endif
#if (K_CARD_TYPE & K_SDF_SUPPORTED)
#define SDF_OPTION 1
#else
#define SDF_OPTION 0
#endif
// WWWW end
// wyeo@0509
/* obsolete, use K_Use_Pat_FAT at cardopt.h, wyeo@0509
//------------------------------------------------------------------------------
// Search DOS FAT free clusters using Pattern Search function
//
//------------------------------------------------------------------------------
//yichang
//#define SEARCHPATTERN
#define NONSEACHPATTERN
*/
//------------------------------------------------------------------------------
// Options for AVI
//
//------------------------------------------------------------------------------
#if (Audio) //audio device exists
#define AVIAUDIO_OPTION 1 //In videoclip, the option to record audio
#define PLAYAUDIO_OPTION 1 //In playback video, the option to play audio
#else
#define AVIAUDIO_OPTION 0
#define PLAYAUDIO_OPTION 0
#endif
// wyeo@0509
//To record a large file, turn on the option to search
//all free clusters before recording
//#define K_Link_AllFreeCluster 0
//patch4.4@yichang@0705 UI for ISP
#define UI_FOR_ISP 1
//patch4.5@richie@checksum isp
#define ISPCHECKSUM_OPTION 0
//Joe@2003.3.22 9:12 add begin
#define TURNKEY_OPTION 1
//Joe@2003.3.22 9:12 add end//HX@2003.3.25 ADD FOR 1.3M TO 2.0M PIX
#define ONE2TWO_OPTION 0
#define INTERPOLATION_OPTION 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -