📄 maindef.h.bak
字号:
//----------------------------------------------------------------------------------------------------
// Basic Settings
//----------------------------------------------------------------------------------------------------
//--------------------------------------------------
// Scaler Type
//--------------------------------------------------
#define _RTD2323 0
#define _RTD2023L 1
#define _RTD2023S 2
#define _SCALER_TYPE _RTD2323
//--------------------------------------------------
// Debug Tool
//--------------------------------------------------
#define _KINGMICE _OFF
#define _ISPACK _ON
#define _RS232 _OFF
//--------------------------------------------------
// Define panel 12v EVAN 050512
//--------------------------------------------------
#define _POWER12VUSE _ON
//--------------------------------------------------
// PCB Type
//--------------------------------------------------
#define _KINGMICE_PCB 0 // If using kingmice, please select this option
#define _RTD2323_QA_PCB 1 // RTD2323 QA Pcb
#define _RTD2323_QC_PCB 2 // RTD2323 QC Pcb
#define _RTD2323_DEMO1_PCB 3 // RTD2323 1A1D LVDS/RSDS Demo Pcb
#define _RTD2323_DEMO2_PCB 4 // RTD2323 2A1D LVDS Demo Pcb
#define _RTD2023LS_QA_PCB 5 // RTD2023LS QA Pcb
#define _RTD2023L_DEMO2_PCB 6 // RTD2323 & RTD2023L LVDS Co_lay Pcb
#define _RTD2023L_AOC_PCB 7 // RTD2023L AOC Pcb
#define _RTD2023L_DEMO_50x70_PCB 8 // RTD2023S LVDS 50x70 Pcb
#define _RTD2023S_DEMO1_PCB 9 // RTD2023S LVDS Demo Pcb
#define _PTX23A21 10
#define _PCB_TYPE _PTX23A21
//--------------------------------------------------
// MCU Type
//--------------------------------------------------
#define _WINDBOND_W78E65 0
#define _MYSON_MTV312 1
#define _MYSON_MTV512 2
#define _WELTREND_WT61P4 3
#define _MCU_TYPE _MYSON_MTV512
//--------------------------------------------------
// Panel Type
//--------------------------------------------------
#define _CMO_LVDS_17 0
#define _AU_RSDS_17 1
#define _AU_LVDS_15 2
#define _HST_HSD150MX15 3 // Evan 050512 LVDS Single port 15"
#define _CPT_CLAA150XG08 4
#define _AU_M150XN05 5 //add by cooriee 050520 TTL Double Port 15"
#define _SanYo_SanYox84 6 //add by cooriee 050520 Tcon Single Port 15"
#define _PANEL_TYPE _SanYo_SanYox84
//--------------------------------------------------
// Definations of Input Port Max Numbers (Max Value: 4)
//--------------------------------------------------
#define _INPUT_PORT_MAX 2
//--------------------------------------------------
// Definations of Input Port Types
//--------------------------------------------------
#define _NO_PORT 0
#define _DSUB_A0_PORT 1
#define _DSUB_A1_PORT 2
#define _DVI_PORT 3
#define _DVI_I_A0_PORT 4
#define _DVI_I_A1_PORT 5
#define _VIDEO_AV_PORT 6
#define _VIDEO_SV_PORT 7
#define _YPBPR_A0_PORT 8
#define _YPBPR_A1_PORT 9
#define _INPUT_PORT_TYPE_0 _DSUB_A0_PORT
#define _INPUT_PORT_TYPE_1 _VIDEO_AV_PORT
#define _INPUT_PORT_TYPE_2 _NO_PORT
#define _INPUT_PORT_TYPE_3 _NO_PORT
//--------------------------------------------------
// Definations of Host Interface (Parallel/Serial Port)
//--------------------------------------------------
#define _SERIAL_PORT 0
#define _PARALLEL_PORT 1
#define _HOST_INTERFACE _SERIAL_PORT
//--------------------------------------------------
// Definations of RTD/MCU Crystal Frequency in KHz
//--------------------------------------------------
#define _XTAL12000K 12000
#define _XTAL24576K 24576
#define _XTAL24000K 24000
#define _RTD_XTAL _XTAL24000K
#define _MCU_XTAL _XTAL24000K
//--------------------------------------------------
// Definitions for First DHS Masking
//--------------------------------------------------
#define _DHS_MASK (_DISABLE << 7)
//--------------------------------------------------
// Definitions for Display Signal
//--------------------------------------------------
#define _DVS_INVERT (_DISABLE << 2)
#define _DHS_INVERT (_DISABLE << 1)
#define _DEN_INVERT (_DISABLE)
#define _DISPLAY_INVERT (_DVS_INVERT | _DHS_INVERT | _DEN_INVERT)
//--------------------------------------------------
// Definitions for Display Control
//--------------------------------------------------
#define _DISPLAY_CTRL (_DHS_MASK | _DISPLAY_INVERT)
//--------------------------------------------------
// TMDS Supported
//--------------------------------------------------
#define _TMDS_SUPPORT _ON
//--------------------------------------------------
// Definitions for Backlight PWM Setting
//--------------------------------------------------
#define _PWM0 0
#define _PWM1 1
#define _PWM2 2
#define _MCUPWM 3 // Evan 050511
#define _BACKLIGHT_PWM _MCUPWM
#define _BACKLIGHT_PWM_INVERSE _DISABLE // modify by cooriee 050521
//----------------------------------------------------------------------------------------------------
// Advance Settings
//----------------------------------------------------------------------------------------------------
//--------------------------------------------------
// Support Timing
//--------------------------------------------------
#define _H_FREQ_MAX 930 // Unit in 0.1 kHZ
#define _H_FREQ_MIN 100 // Unit in 0.1 kHZ
#define _V_FREQ_MAX 890 // Unit in 0.1 HZ
#define _V_FREQ_MIN 490 // Unit in 0.1 HZ
//--------------------------------------------------
// Definitions of APLL1 M/N Code
//--------------------------------------------------
#define _APLL1_M_CODE 25 // 33 Updated by Realtek at 20050617
#define _APLL1_N_CODE 2
//--------------------------------------------------
// Definitions of DDS P Code
//--------------------------------------------------
#define _DDS_P_CODE 23
//--------------------------------------------------
// Definitions of APLL Fast Lock
//--------------------------------------------------
#define _APLL_FAST_LOCK _ON
//--------------------------------------------------
// Definitions of DPLL N Code
//--------------------------------------------------
#define _DPLL_N_CODE 16
//--------------------------------------------------
// Definitions of DPLL N Code //Updated by Realtek at 20050617
//--------------------------------------------------
#define _M2PLL_USE _OFF
#define _M2PLL_XTAL _XTAL12000K
#define _RTD_M2PLL_RATIO (_RTD_XTAL / _M2PLL_XTAL)
//--------------------------------------------------
// Definitions of ADC Fine Tune Delay (Value == 0 ~ 7)
//--------------------------------------------------
#define _ADC_FINE_TUNE_DELAY_RED 0
#define _ADC_FINE_TUNE_DELAY_GREEN 0
#define _ADC_FINE_TUNE_DELAY_BLUE 0
//--------------------------------------------------
// DVI Long Cable Supported
//--------------------------------------------------
#define _DVI_LONG_CABLE_SUPPORT _ON
//--------------------------------------------------
// HDCP Supported
//--------------------------------------------------
#define _HDCP_SUPPORT _OFF
//--------------------------------------------------
// Video Supported
//--------------------------------------------------
#define _VIDEO_SUPPORT _ON
//--------------------------------------------------
// Video Type (Add by zhang_dc)
//--------------------------------------------------
#define _VIDEO_7114 0
#define _VIDEO_5147 1
#define _VIDEO_TYPE _VIDEO_5147
//--------------------------------------------------
// YPbPr Supported
//--------------------------------------------------
#define _YPBPR_SUPPORT _OFF
//--------------------------------------------------
// Set Different Display Information by Mode
//--------------------------------------------------
#define _DISP_INFO_BY_MODE _OFF
//--------------------------------------------------
// Set DClk Spread Spectrum Range
//--------------------------------------------------
#define _DCLK_SPREAD_RANGE 0
//--------------------------------------------------
// Set Last Line Finetune Method
//--------------------------------------------------
#define _LAST_LINE_METHOD_0 0
#define _LAST_LINE_METHOD_1 1
#define _LAST_LINE_METHOD_2 2
#define _LAST_LINE_FINETUNE _LAST_LINE_METHOD_0
//--------------------------------------------------
// OSD Type selection Add by zhang_dc
//--------------------------------------------------
#define _OSD_REALTEK 0
#define _OSD_PREMIERME 1
#define _OSD_TYPE _OSD_PREMIERME
//-------------------------------------------------
// KEY Type selection Add by zhang_dc
//-------------------------------------------------
#define _3_KEY_PAD 0
#define _5_KEY_PAD 1
#define _7_KEY_PAD 2
#define _KEY_TYPE _5_KEY_PAD
//-------------------------------------------------
// Bar value showing type Add by zhang_dc
//-------------------------------------------------
#define _SHOW_PERCENT 0
#define _SHOW_RAW 1
#define _BAR_VALUE_TYPE _SHOW_PERCENT
//-------------------------------------------------
// Video default Bright/Contrast for RTD2523B Add by zhang_dc
//-------------------------------------------------
#define _VCONTRAST_DEFAULT 0x80
#define _VBRIGHT_DEFAULT 0x80
#define _VHUE_50_DEFAULT 0x80
#define _VHUE_60_DEFAULT 0x00
#define _VSATURATION_50_DEFAULT 0x80
#define _VSATURATION_60_DEFAULT 0x80
#define _VSHARPNESS_50_DEFAULT 0x00
#define _VSHARPNESS_60_DEFAULT 0x00
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -