⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 option.h

📁 凌阳MP3 spSPCA755yuanma
💻 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
//------------------------------------------------------------------------------

//------------------------------------------------------------------------------
//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         0

//------------------------------------------------------------------------------
//USB Vendor Device Class Option =
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
#define USBVendor_OPTION        0

//------------------------------------------------------------------------------
//USB Vendor Configuration Option =
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
#define USBVendorConfiguration_OPTION	0

//------------------------------------------------------------------------------
//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

//patch3.5@chamber@SPCA757 Option begin
//------------------------------------------------------------------------------
//SPCA757 ComplierOption =		(Only MP3 Supportted, give-up WMA)
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
#define SPCA757_OPTION		0
//patch3.5@chamber@SPCA757 Option end

//patch3.5@chamber@ID3 Tag Supported Option begin
//------------------------------------------------------------------------------
//ID3 Tag Supported Option =
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
#define ID3Tag_OPTION		0
//patch3.5@chamber@ID3 Tag Supported Option end

//------------------------------------------------------------------------------
//support firmware detect MMC/SD
//support firmware detect      1
//support hardware detect      0
//------------------------------------------------------------------------------
#define FirmwareDetectMMCSD_OPTION	0


//------------------------------------------------------------------------------
//support auto repeat
//                            0 disable
//                            1 enable
//------------------------------------------------------------------------------
#define Auto_Repeat_OPTION              0

//patch3.5@chamber@EV Board Option begin
//------------------------------------------------------------------------------
//EV board I/O Setting Option =
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
#define EVBoard_OPTION		0
//patch3.5@chamber@EV Board Option end

//------------------------------------------------------------------------------
//Flash Card Option
//------------------------------------------------------------------------------
#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  ---------
//------------------------------------------------------------------------------
#define CODE_IS_MULTIBANK       1//set 1 for multibank code, must 1 for 533

#if (K_CARD_TYPE > 1)
#define CARD_OPTION             1
#else
#define CARD_OPTION             0
#endif

#define SDRAM_OPTION            0

#if (K_CARD_TYPE & K_DOSRAM_SUPPORTED)
#define DOSRAM_OPTION           1
#else
#define DOSRAM_OPTION           0
#endif

#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


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -