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

📄 maindef.h

📁 LCD Monitor 部分源码
💻 H
字号:
//----------------------------------------------------------------------------------------------------
// Basic Settings
//----------------------------------------------------------------------------------------------------
//--------------------------------------------------
// Scaler Type
//--------------------------------------------------
#define _RTD2323                        0
#define _RTD2023L                       1
#define _RTD2023S                       2         
//--------------------------------------------------
// Debug Tool
//--------------------------------------------------
#define _ISPACK                         _ON
#define _RS232                          _OFF

// -----Andy Add-----
#define _SUPPORTDDCCI                   0

#define _ISPACK_RTD                     0              //MUST OPEN _ISPACK
#define _ISPACK_MCU                     1              //Must Open _ISPACK & SUPPORTDDCCI

#define _ISPACK_TYPE                    _ISPACK_RTD

#define _OSD_NORMAL                     0    // MUST CLOSE NEW_OSD_FUNC
#define _OSD001                         1    // A Empty OSD Templet    MUST OPEN NEW_OSD_FUNC
#define _OSD002                         2    // MUST OPEN NEW_OSD_FUNC
#define _OSD003                         3
#define _OSD900                         900	 //reltek osd
#define _OSD901                         901	 //sumsang osd
#define _OSD902                         4    //Genesis osd
#define _OSD903                         903	 //sumsang osd


#define _OSD_TYPE                       _OSD900

#if(_OSD_TYPE != _OSD_NORMAL) 
#define _NEW_OSD_FUNC                   1               // Use new osd functions set to 1.
#else
#define _NEW_OSD_FUNC                   0
#endif

// MUST BE USE NEW_OSD_FUNC
#define _FACTORY_MENU_EN                1//0               // FONT BASE ADDRESS MSET BE MORE THAN (15 * 30 + 15 + 1) = 466(0x1d2)
#define _LOGO_EN                        0
#define _BURNIN_EN                      1//0

#define _DDC_NONE                       0
#define _DDC_RTD_CODE                   1
#define _DCC_RTD_EEPROM                 2
#define _DDC_MTV512_CODE                3

#define _DDC_TYPE                       _DDC_MTV512_CODE


//--------------------------------------------------
// KEY Type
//--------------------------------------------------
#define _KEY_NORMAL                     0
#define _KEY_ADC                        1
//--------------------------------------------------
// MCU Type
//--------------------------------------------------
#define _MYSON_MTV312                   0
#define _MYSON_MTV512                   1
#define _STK_6021                       2
//--------------------------------------------------
// Definations of Input Port Max Numbers (Max Value: 4)
//--------------------------------------------------
#define _INPUT_PORT_MAX                 2//4
//--------------------------------------------------
// 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 _VIDEO_YUV_PORT                 8
#define _VIDEO_TV_PORT                  9
#define _YPBPR_A0_PORT                  10
#define _YPBPR_A1_PORT                  11

#define _INPUT_PORT_TYPE_0              _DSUB_A0_PORT
#define _INPUT_PORT_TYPE_1              _DVI_PORT
#define _INPUT_PORT_TYPE_2              _VIDEO_AV_PORT
#define _INPUT_PORT_TYPE_3              _VIDEO_SV_PORT
#define _INPUT_PORT_TYPE_4              _NO_PORT  //_VIDEO_YUV_PORT  // not ready
#define _INPUT_PORT_TYPE_5              _VIDEO_TV_PORT
#define _INPUT_PORT_TYPE_6              _NO_PORT

#define _AUTO_SCAN_SOURCE                1                   //ANDY ADD
//--------------------------------------------------
// Definations of Host Interface (Parallel/Serial Port)
//--------------------------------------------------
#define _SERIAL_PORT                    0
#define _PARALLEL_PORT                  1
//--------------------------------------------------
// Definations of RTD/MCU Crystal Frequency in KHz
//--------------------------------------------------
#define _XTAL12000K                     12000
#define _XTAL24576K                     24576
#define _XTAL24000K                     24000

//--------------------------------------------------
// Definitions for Backlight PWM Setting
//--------------------------------------------------
#define _PWM0                           0
#define _PWM1                           1
#define _PWM2                           2
//----------------------------------------------------------------------------------------------------
// Advance Settings
//----------------------------------------------------------------------------------------------------
#define _PWM_SCALER                     0
#define _PWM_MCU                        1
#define _AUDIO_NONE                     2

//--------------------------------------------------
// Definitions of APLL1 M/N Code
//--------------------------------------------------
#define _APLL1_M_CODE                   25//33
#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
//--------------------------------------------------
#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


//--------------------------------------------------
// Definitions of ADC Input Swap Settings
//--------------------------------------------------
#define _ADC_INPUT_SWAP_RG              _OFF
#define _ADC_INPUT_SWAP_RB              _OFF
#define _ADC_INPUT_SWAP_GB              _OFF


//--------------------------------------------------
// DVI Long Cable Supported
//--------------------------------------------------
#define _DVI_LONG_CABLE_SUPPORT         _ON
//--------------------------------------------------
// HDCP Supported
//--------------------------------------------------
#define _HDCP_SUPPORT                   _OFF
//--------------------------------------------------
//--------------------------------------------------
// YPbPr Supported
//--------------------------------------------------
#define _DVI_DE_ONLY_SUPPORT            _OFF


#define _MAX_PRESET_MODE                41
//--------------------------------------------------
// 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



// Not Modify the defines
#define _VIDEO_SUPPORT                  0
#define _VIDEO_TV_SUPPORT               0
#define _TV_NONE                        0
#define _TV_CHIP                        0
#define _IR_ENABLE                      0

⌨️ 快捷键说明

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