📄 config.h
字号:
/*****************************************************************************/
/* System Configurations */
/* rev 0.10 include auto test */
// 0.11 change DTV, PC input initial download data correct for Charge Pump
// 0.12 correct phase measurement routine '>>3'
// 0.13 enable function for SPI control... only EXT MCU case
// 0.14 corrected PC measurement......
/*****************************************************************************/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include "Typedefs.h"
//#define INTERNAL_MCU -- defined by Project Compiler session
//-----------------------------------------------------------------------------
// Firmware Version
//-----------------------------------------------------------------------------
//#define FWVER 0x120 // Rev 1.20
#define FWVER 0x014 // Rev 0.14
//-----------------------------------------------------------------------------
// Compiler
//-----------------------------------------------------------------------------
#define KEILC // Keil C 5.0
//-----------------------------------------------------------------------------
// MPU Clock
//-----------------------------------------------------------------------------
#ifndef INTERNAL_MCU
//#define CLOCK_11M // 11.0592MHz
#define CLOCK_22M // 22.1184MHz
#else // INTERNAL_MCU
#define CLOCK_27M // 27MHz
#define REG_START_ADDRESS 0xc000 // register start 0xc000, for page0, 0xc100-page1
#endif
//-----------------------------------------------------------------------------
// TW88 Version
//-----------------------------------------------------------------------------
#define TW8816
//-----------------------------------------------------------------------------
// Options for Backlight control
//-----------------------------------------------------------------------------
#define BACKLIGHT_CCFL
//#define BACKLIGHT_LED
//#define BACKLIGHT_PWM
#define DEBUG_ERR 1
#define DEBUG_WARN 2
#define DEBUG_INFO 3
#define DEBUG_BREAK 4
//-----------------------------------------------------------------------------
// Panel Resolution
//-----------------------------------------------------------------------------
struct _PANELDATA {
CODE_P WORD HActive;
CODE_P WORD VActive;
CODE_P WORD HPeriod;
CODE_P BYTE HSync;
CODE_P BYTE HBackporch;
CODE_P WORD VPeriod;
CODE_P BYTE VSync;
CODE_P BYTE VBackporch;
CODE_P BYTE DClock; // MHz
CODE_P BYTE OutputFlags; // 0x0b0 register setting
};
// ---- 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 HITACHI_640_B_160 //--> 640 x 160
//#define WXGA // 1280 x 768 (15:9) // 1366 x 768 (16:9)
//#define WX_SHARP_LQ106K1LA
//#define WSVGA // 1024 x 600 *** only video mode
//#define WVGA // 800 x 480
#ifdef WVGA
// If WVGA, you have to select panel.
//#define AU_10INCH
//#define WVGA_TPO
//#define SAMSUNG_10INCH
//#define SAMSUNG_TICONLESS_10INCH
//#define SHARP_TICONLESS_7INCH
//#define AU_TICONLESS_7INCH
#define AU_TICONLESS_7INCH_CCFL
//#define AU_TICONLESS_10INCH
//#define HITACHI_T01
//#define HITACHI_TX23D12
//#define HITACHI_TX18D24
//#define HITACHI_TX18D16
//#define TMD_LTA070A320F
//#define SAMSUNG_LTP700WV
#endif //WVGA
//#define HVGA // 480 x 320
//#define QVGA // 320 x 240 *** only video mode
//#define HITACHI_TX09D73
//#define AU_DELTARGB
//#define SHARP_LQ050Q5DR01
//#define SHARP_LQ035
#define WQVGA // 480 x 234 *** only video mode
#ifdef WQVGA
// If WQVGA, you have to select panel
#define ANALOG_7INCH
//#define SHARP_LQ043T3DX02 // 400 x 237
//#define LG_ANALOG
//#define TMD_ANALOG //TMD_LTA05B352A
#endif // WQVGA
//#define TICONLESS
//-----------------------------------------------------------------------------
//---- 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 LGTUNER_MK5 6
#define TVTunerDevice 6
#if TVTunerDevice==LGTUNER_MK5
#define TVTunerI2CAddress 0xc0 // Tuner
#define TVTunerIFI2CAddress 0x86 //Tune IF addr.
#else
#if TVTunerDevice==TVAVA
#define TVTunerI2CAddress 0xc2 // TVAVA Tuner
#else
#define TVTunerI2CAddress 0xc0 // Tuner
#endif
#endif
//-----------------------------------------------------------------------------
// IR Remote Controller Type
//-----------------------------------------------------------------------------
#define REMO_RC5 // RC5 style
#define TECHWELL_REMOCON
//#define REMO_NEC // NEC style
//#define PHILIPS_REMOCON // New remocon
//-----------------------------------------------------------------------------
// I2C Device Access Address Mapping
//-----------------------------------------------------------------------------
#define EEPROMI2CAddress 0xa0 // EEPROM (24C16)
#define TW88I2CAddress 0x8a // TW880x
#define MSPI2CAddress 0x80 // MSP
//-----------------------------------------------------------------------------
// Options for Possible Inputs
//-----------------------------------------------------------------------------
#define SUPPORT_SVIDEO
#define SUPPORT_COMPONENT // support component analog to decoder
//#define SUPPORT_DTV // support DTV input through component( to ADC ).
#define SUPPORT_PC // support PC function
//#define SUPPORT_DVI // support DVI input
#define SUPPORT_TV // support TV function
#ifdef SUPPORT_TV
#define PAL_TV
//#define NTSC_TV
#endif
//-----------------------------------------------------------------------------
// 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
#ifndef WQVGA
#ifndef QVGA
#define SUPPORT_OSDPOSITIONMOVE
#endif
#endif
#define SERIAL // include serial communication routines
#define DEBUG // include debug information
#ifdef DEBUG
//#define DEBUG_MAIN
//#define DEBUG_TIME
//#define DEBUG_KEYREMO
//#define DEBUG_TW88
//#define DEBUG_DECODER
//#define DEBUG_I2C
//#define DEBUG_EEP
//#define DEBUG_OSD
//#define DEBUG_AUDIO
//#define DEBUG_SETPANEL
//#define DEBUG_DTV
#define DEBUG_PC
//#define DEBUG_BANK
//#define DEBUG_PAUSE
#endif
#define AUTOCALC_PC // in PC mode, Enable Auto Calcuration
#define AUTOTUNEPHASE // in PC mode, Enable auto tune phase
//#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), or pressed MENU button for internal MCU
// micom works to access only I2C bus by serial command.
//#define SUPPORT_MSP_AUDIO
//-----------------------------------------------------------------------------
// Special Features
//-----------------------------------------------------------------------------
#ifndef INTERNAL_MCU
#define SUPPORT_DELTA_RGB
#endif
//#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 + -