📄 config.h
字号:
/*****************************************************************************/
/* System Configurations */
/*****************************************************************************/
#ifndef __CONFIG_H__
#define __CONFIG_H__
//-----------------------------------------------------------------------------
// Firmware Version
//-----------------------------------------------------------------------------
#define FWVER 0x120 // Rev 1.20
//-----------------------------------------------------------------------------
// Compiler
//-----------------------------------------------------------------------------
//#define TASKINGC // Tasking C 5.0
#define KEILC // Keil C 5.0
//-----------------------------------------------------------------------------
// MPU Clock
//-----------------------------------------------------------------------------
//#define CLOCK_11M // 11.0592MHz
#define CLOCK_22M // 22.1184MHz
//-----------------------------------------------------------------------------
// TW88 Version
//-----------------------------------------------------------------------------
#define TW8804
#define TW8804D
#define TW8806
//-----------------------------------------------------------------------------
// Panel Resolution
//-----------------------------------------------------------------------------
// ---- Select Default Panel
//
//#define UXGA // 1600 x 1200
//#define SXGA // 1280 x 1024
//#define XGA // 1024 x 768
//#define SVGA // 800 x 600
//#define VGA // 640 x 480
//#define WXGA // 1280 x 768 (15:9) // 1366 x 768 (16:9)
//#define WSVGA // 1024 x 600 *** only video mode
//#define WVGA // 800 x 480
// If WVGA, you have to select panel.
//#define AU_10INCH
//#define SAMSUNG_10INCH
//#define SAMSUNG_TICONLESS_10INCH
//#define SHARP_TICONLESS_7INCH
#define AU_TICONLESS_7INCH
//#define AU_TICONLESS_10INCH
//#define HITACHI_T01
//#define HITACHI_TX23D12
//#define HVGA // 480 x 320
//#define QVGA // 320 x 240 *** only video mode
#define WQVGA // 480 x 234 *** only video mode
// If WQVGA, you have to select panel
#define ANALOG_7INCH
//#define SHARP_LQ043T3DX02 // 400 x 237
//-----------------------------------------------------------------------------
//---- Add Support One more panel with DIPSW#1
//---- Ex. Add Analog AU 7" Panel with Default Panel for evalution
//#define ADD_ANALOGPANEL // Added Analog panel(AU7") from default set panel(expect WQVGA) with DIP #1 switch.(DIP#1=L:ANALOG, H:DEFAULT)
// It can't support WQVGA and ADD_ANALOGPANEL same time!!
//#define ADD_ANALOG_7INCH
//#define ADD_TMD_LTA05B352A
//---- Support Wide panel function
#if (defined WXGA) || (defined WSVGA) || (defined WVGA) || (defined WQVGA)
#define WIDE_SCREEN // Can support 4 display mode, i.e. Normal, Wide, Full, Zoom
#endif // Tested panasonic WVGA panel.
//-----------------------------------------------------------------------------
// Panel Vendor Specific
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// TV Tuner
//-----------------------------------------------------------------------------
#define PHILIPS 0
#define ALPS 1 // ALPS, LG
#define TEMIC 2
#define TVAVA 3
#define LGTUNER 4
#define SAMSUNGMUTITUNER 5
#define TVTunerDevice 4
//-----------------------------------------------------------------------------
// IR Remote Controller Type
//-----------------------------------------------------------------------------
#define REMO_RC5 // RC5 style
#define TECHWELL_REMOCON
//#define REMO_NEC // NEC style
//#define PHILIPS_REMOCON // New remocon
//-----------------------------------------------------------------------------
// ADC Assignment for PC /DTV
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Teletext
//-----------------------------------------------------------------------------
#define PHILIPS_TTX 0
#define ET_TTX 1
#define TELETEXTDEVICE PHILIPS_TTX//ET_TTX
//-----------------------------------------------------------------------------
// I2C Device Access Address Mapping
//-----------------------------------------------------------------------------
#define ADCI2CAddress 0x8a // ADC for PC/DTV
#define EEPROMI2CAddress 0xa0 // EEPROM (24C16)
#define TW88I2CAddress 0x8a // TW880x
#define TW99I2CAddress 0x8c // TW99xx
#if TVTunerDevice==TVAVA
#define TVTunerI2CAddress 0xc2 // TVAVA Tuner
#else
#define TVTunerI2CAddress 0xc0 // Tuner
#endif
#define MSPI2CAddress 0x80 // MSP
#if TELETEXTDEVICE == PHILIPS_TTX
#define TEXTAddress 0x60 // Teletext
#else // ET_TTX
#define TEXTAddress 0x22
#endif
//-----------------------------------------------------------------------------
// Options for Possible Inputs
//-----------------------------------------------------------------------------
#define SUPPORT_SVIDEO
#define SUPPORT_COMPONENT // support component analog to decoder
//#define SUPPORT_TV // support TV function
#ifdef SUPPORT_TV
#define PAL_TV
//#define NTSC_TV
#endif
//#define SUPPORT_DTV // support DTV input through component( to ADC ).
#define SUPPORT_PC // support PC function
//#define SUPPORT_DVI // support DVI input
//-----------------------------------------------------------------------------
// Options for Possible Standards
// Default:NTSC
//-----------------------------------------------------------------------------
#define SUPPORT_PAL
#define SUPPORT_SECAM
#define SUPPORT_NTSC4
#define SUPPORT_PALM
#define SUPPORT_PALN
#define SUPPORT_PAL60
//#define ID_CHECK_BY_FW // in Video mode, check input system ID by firmware
//-----------------------------------------------------------------------------
// Options for Debugging/Release
//-----------------------------------------------------------------------------
//#define SUPPORT_PATTERN // support LCD test pattern
//#define SUPPORT_TELETEXT
//#define SUPPORT_CCD_VCHIP
#ifdef SUPPORT_CCD_VCHIP
//#define SUPPORT_CC_DECODER // support Z86129
#define SUPPORT_TW88_CC_DECODER // Don't disable this option temporary
#define SUPPORT_ENRICHED_CC // support optional BG and CH color for CC.
#endif
#ifndef WQVGA
#ifndef QVGA
#define SUPPORT_OSDPOSITIONMOVE
#endif
#endif
#define SERIAL // include serial communication routines
//#define SUPPORT_DEBUG // Support to use Read & Write in debug OSD Window by remocon.
#define DEBUG // include debug information
//#define DEBUG_MAIN
//#define DEBUG_TIME
//#define DEBUG_KEYREMO
//#define DEBUG_TW88
//#define DEBUG_DECODER
//#define DEBUG_I2C
//#define DEBUG_EEP
//#define DEBUG_CCEDS
//#define DEBUG_TELETEXT
//#define DEBUG_OSD
//#define DEBUG_TV
//#define DEBUG_AUDIO
//#define DEBUG_SETPANEL
//#define DEBUG_EXTOSD
//#define DEBUG_DTV
//#define DEBUG_PC
#define AUTOCALC_PC // in PC mode, Enable Auto Calcuration
//#define SUPPORT_USERCOLORFROMTXT // Use color setting of text file in Color mode=USER MODE which is as Brightness(Reg10), Contast(Reg11),
// Sat_U(Reg13),Sat_V(Reg14),Sharpness(Reg12,Reg78)
#define SUPPORT_GAMMA
//#define CHIP_MANUAL_TEST // DIPSW#1
//#define NO_INITIALIZE // After Power switch turn on with DIP SW4 Enable(Low),
// micom works to access only I2C bus by serial command.
//#define SUPPORT_KRS_OSDDEMO // For KRS Company Demo
//-----------------------------------------------------------------------------
// Board Specific
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
// Special Features
//-----------------------------------------------------------------------------
//#define TEST_MYSON_OSD //
//#define TEST_WSS
//#define SUPPORT_SELECTKEY // choose the keymap of using select key or left,right key.
//-----------------------------------------------------------------------------
#endif //__CONFIG_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -