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

📄 maindef.h

📁 RTD2662板卡源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
////////////////////////////////////////////////////////////////////////////
//         Copyright of Vector Co.,Ltd.                                   //
//                                                                        //
//                                                                        //
//                  Analog/DigitalVideo/TV source code                    //
//   Ver: V007                                                            //
//   Create file time: 2007.7.10                                          //
//   End modify time:  2007.11.16                                         //
//   For RTD2660/RTD2662                                                  //
////////////////////////////////////////////////////////////////////////////

//----------------------------------------------------------------------------------------------------
// Basic Settings
//----------------------------------------------------------------------------------------------------
#define _DEFAULT                            	0	//xx.xx%
#define _OVERSCAN_PERCENT_93_75             	1	//93.75%
#define _OVERSCAN_PERCENT_95_00             	2	//95.00%
#define _OVERSCAN_PERCENT_97_00             	3	//97.00%
#define _OVERSCAN_PANASONIC_SIZE            	4

#define _HDMI_OVERSCAN_PERCENT              	_OVERSCAN_PERCENT_93_75
#define _YPBPR_OVERSCAN_PERCENT             	_OVERSCAN_PERCENT_93_75
#define _VIDEO8_OVERSCAN_PERCENT            	_OVERSCAN_PANASONIC_SIZE

#undef CONFIG_VBI_ENABLE
#undef CONFIG_VBI_VCHIP
#define CONFIG_Ver_ENABLE                   	0
				                               																	//  _FALSE : Disable Italic Font
#define _TEXTMODE_TIMEOUTE_ENABLE           	_FALSE
#define _NEW_DV_CTRL_ENABLE                 	_DISABLE

#ifdef CONFIG_VBI_ENABLE
#define _VBI_ENABLE	                        	_ENABLE
#define _VBI_INTERRUPT                      	_ENABLE
#define _VBI_ITALIC_ENABLE                  	_ENABLE
#else
#define _VBI_ENABLE                         	_DISABLE
#define _VBI_INTERRUPT                      	_DISABLE
#define _VBI_ITALIC_ENABLE                  	_DISABLE
#endif

//--------------------------------------------------
// Debug Tool
//--------------------------------------------------
//_NONE,_ISP_FOR_RTD3580D_EMCU
#define _DEBUG_TOOL                             _ISP_FOR_RTD3580D_EMCU

//--------------------------------------------------
// OSD Type
//--------------------------------------------------
#define _OSD001									1
#define _OSD002			                        2
#define _OSD003			                        3
#define _OSD007                                 4

#define _001_OSD                                1//_DISABLE

#define _OSD_TYPE								_OSD003    

#define _FAC_OSD                                _DISABLE

///////////////////////////////////////////////////////////////////////////////
// This part is used for display mode and color mode select,                                                                          
// _PANEL_MODE_16_9_ for wide panel,_PANEL_MODE_4__3_ for normal panel
//
// AndyLiu 20080328 for ChuangFeng                                                                           
///////////////////////////////////////////////////////////////////////////////
#define _PANEL_MODE_16_9_       0
#define _PANEL_MODE_4__3_       1

#define _PANEL_MODE_       _PANEL_MODE_16_9_       
///////////////////////////////////////////////////////////////////////////////
// This part defined for rest and sleep function select,
// AndyLiu 20080328 for ChuangFeng                      
#define _RESET_ENABLE            0
#define _SLEEP_ENABLE            1

#define _FAST_KEY_SELECT_       _SLEEP_ENABLE   
///////////////////////////////////////////////////////////////////////////////



//--------------------------------------------------
// RTD2528R Set Adjusting ADC offset Method
//--------------------------------------------------
#define _ADJUST_BY_FW							0   //Adjust ADC offset by F/W
#define _ADJUST_BY_HW_OFF_LINE					1   //Enable Auto Black Level of H/W in Off-line Mode

//--------------------------------------------------
// Definitions of MPLL M Code
//--------------------------------------------------
#define _MPLL_M_CODE                    		0x34

//--------------------------------------------------
// Definitions of MPLL N Code
//--------------------------------------------------
#define _MPLL_N_CODE                    		0x02

//--------------------------------------------------
// Definitions of Data Latch Delay
//--------------------------------------------------
#define _ROW_WR_DELAY                   		2  //0~1:Resered, 2~5:2~5 MCLK, 6~7:Resered
#define _ROW_RD_DELAY                   		2  //0~1:Resered, 2~5:2~5 MCLK, 6~7:Resered
#define _SDR_ROW_DELAY                  		((_ROW_WR_DELAY << 3) | (_ROW_RD_DELAY))
#define _SDR_COL_DELAY                  		((2 << 5) | 0x04)  //0~1:Resered, 2~3:2~3 MCLK, 4~7:Resered

//--------------------------------------------------
//Nonlinear scale up method
//--------------------------------------------------
#define _ROOF              			         0
#define _BOUL              				     1

#define _NONLINEAR_SCALEUP_METHOD             _ROOF
                                            

//--------------------------------------------------
// Color Preference
//--------------------------------------------------
#define _REALTEK_STYLE					      0
#define _PANASONIC_STYLE				      1

#define _COLOR_PREFERENCE				       _PANASONIC_STYLE

//--------------------------------------------------
// VGA/DVI Information(H-Width/V-Height/V-Freq)
//--------------------------------------------------
#define _SYNC_TYPE						       0
#define _TABLE_TYPE						       1

#define _TIMING_INFO_TYPE				       _SYNC_TYPE


//--------------------------------------------------
// Definitions of Gamma Table Type
//--------------------------------------------------
#define _COMPACT_GAMMA_NORMAL_TABLE     		0
#define _FULL_GAMMA_NORMAL_TABLE        		1
#define _COMPACT_GAMMA_COMPRESS_TABLE   		2
#define _FULL_GAMMA_COMPRESS_TABLE      		3
#define _FULL_GAMMA_COMPRESS_TABLE2             4

#define _GAMMA_TYPE                         	_FULL_GAMMA_COMPRESS_TABLE2


//--------------------------------------------------
// Definitions of Nonlinear Scaling
//--------------------------------------------------
#define _NONLINEAR_SCALING              		_DISABLE

//--------------------------------------------------
// Definitions of APLL1 M/N Code
//--------------------------------------------------
#define _APLL1_M_CODE                   		25
#define _APLL1_N_CODE                   		2

//--------------------------------------------------
// Definitions of APLL1 M/N Code
//--------------------------------------------------
#define _APLL_M_CODE                   			25   //default = 25
#define _APLL_N_CODE                   			3    //default = 3

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


//--------------------------------------------------
// Definitions of DPLL N Code
//--------------------------------------------------
#define _M2PLL_USE                      		_OFF//_OFF
#define _M2PLL_XTAL                     		_XTAL12000K
#define _RTD_M2PLL_RATIO                		(_RTD_XTAL / _M2PLL_XTAL)

//--------------------------------------------------
// DVI Long Cable Supported
//--------------------------------------------------
#define _DVI_LONG_CABLE_SUPPORT         		_OFF

//--------------------------------------------------
// DVI-I Source Switch (VGA/DVI) Supported
//--------------------------------------------------
#define _DVI_I_SOURCE_SWITCH_SUPPORT    		_OFF

//--------------------------------------------------
// VGA/DVI Auto Switch (VGA/DVI) Supported
//--------------------------------------------------
#define _VGA_DVI_AUTO_SWITCH_SUPPORT     		_FALSE


//--------------------------------------------------
// Hsync Type Detection Select of Input VGA Port
//--------------------------------------------------
//_HSYNC_ONLY,_HSYNC_WITH_SOG,_HSYNC_WITH_SOG_SOY
#define _HSYNC_TYPE_SELECT              		_HSYNC_WITH_SOG_SOY  //The setting only for _A0_VGA_PORT or _A1_VGA_PORT

//--------------------------------------------------
// A0 and A1 Hsync Source Swap
//--------------------------------------------------
#define _HSYNC_SOURCE_SWAP              		_OFF

//--------------------------------------------------
// Peaking Filter and Coring Control Supported
//--------------------------------------------------
#define _PEAKING_CORING_SUPPORT         		_OFF

//--------------------------------------------------
// 
//--------------------------------------------------
#define _DVI_DE_ONLY_SUPPORT            		_OFF
 
//--------------------------------------------------
// Set Different Display Information by Mode

⌨️ 快捷键说明

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