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

📄 global.h

📁 RTD2662板卡源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define _PRESET_MODE_TYPE               	0
#define _USER_MODE_TYPE                 	1


//--------------------------------------------------
// Definitions of Waiting Events
//--------------------------------------------------
#define _EVENT_IVS                      	0x01
#define _EVENT_IEN_START                	0x02
#define _EVENT_IEN_STOP                 	0x04
#define _EVENT_DVS                      	0x08
#define _EVENT_DEN_START                	0x10
#define _EVENT_DEN_STOP                 	0x20
#define _EVENT_UNDERFLOW                	0x40
#define _EVENT_OVERFLOW                 	0x80


//--------------------------------------------------
// Definations of Scaler Write/Read Type
//--------------------------------------------------
#define _NON_AUTOINC                  		1
#define _AUTOINC                        	0
#define _BURST                          	2
#define _END                            	0


//--------------------------------------------------
// Definations of Load OSD Font Table Type
//--------------------------------------------------
#define _NORMAL_FONT                    	0x00
#define _COMPRESS_FONT                  	0x01


//--------------------------------------------------
// Definations of Red/Green/Blue
//--------------------------------------------------
#define _RED                            0
#define _GREEN                          1
#define _BLUE                           2
#define USER_RED                      	3
#define USER_GREEN                  	4
#define USER_BLUE                     	5

#define _PR                            	0  
#define _SY                          	1
#define _PB                           	2

//--------------------------------------------------
// Definations of DDC Channel
//--------------------------------------------------
#define _DDC2                           0
#define _DDC3                           _BIT1

//--------------------------------------------------
// Definations of Scaling
//--------------------------------------------------
#define _SCALE_DOWN                 	0
#define _SCALE_UP                       1

//--------------------------------------------------
// Definitions of Display Delay
//--------------------------------------------------
#define _CAPTURE_HDELAY                 	3
#define _PROGRAM_HDELAY                 	10
#define _PROGRAM_VDELAY                 	2
#define _MEASURE_HDEALY                 	7

//--------------------------------------------------
// Signal Mode
//--------------------------------------------------

#define _SIG_MODE_MAX				4
#define _SIG_MODE_NTSC            	1//0   //for tv system //yf_zhang 2007-6-18 12:30
#define _SIG_MODE_PAL				0//1
#define _SIG_MODE_PAL_DK            2
#define _SIG_MODE_SECAM             3


// Scaler Type 
#define _RTD3580D					1

// Debug Tool
#define _NONE                                   0
#define _ISP_FOR_RTD3580D_EMCU                  1

// Video Input Selection
#define _VIDEO_8_IN                     		0
#define _VIDEO_16_IN                    		1

// MCU Type
#define _REALTEK_RTD3580D_EMCU		    		0

// Definations of RTD/MCU Crystal Frequency in KHz
#define _XTAL12000K                     		12000
#define _XTAL24576K                     		24576   // If using kingmice, please select this option
#define _XTAL24000K                     		24000
#define _XTAL40000K                     		40000
#define _XTAL27000K                     		27000
#define _XTAL24300K                     		24300

#define _HSYNC_ONLY                     		0	
#define _HSYNC_WITH_SOG                 		1
#define _HSYNC_WITH_SOG_SOY         			2

// YPbPr Sync Source
#define _SOG0                         			0
#define _SOG1                              		1

// Set Last Line Finetune Method
#define _LAST_LINE_METHOD_NONE          		0
#define _LAST_LINE_METHOD_0             		1   // Formula: Tne DEN End to DEN Start Length must be (1280*N)
#define _LAST_LINE_METHOD_1             		2   // Formula: Tne DEN End to DEN Start Length must be (4096*N + 128)
#define _LAST_LINE_METHOD_2             		3   // Formula: Last line limit


// Audio PLL Lock Mode
#define _HARDWARE_TRACKING              		0
#define _N_CTS                          		1

// Set Adjusting Vertical Position Direction Method
#define _V_POSITION_METHOD_0            		0
#define _V_POSITION_METHOD_1            		1


// Definitions of MCU Clock Divider Number
#define _DIV_1                          		1
#define _DIV_2                          		2
#define _DIV_3                          		3
#define _DIV_4                          		4
#define _DIV_5                          		5
#define _DIV_6                          		6
#define _DIV_7                          		7
#define _DIV_8                          		8
#define _DIV_9                          		9

#define _M2PLL_CLK_MHZ                  		243
#define _FLASH_CLK_80MHZ                		(_M2PLL_CLK_MHZ/80)
#define _FLASH_CLK_60MHZ                		(_M2PLL_CLK_MHZ/60)
#define _FLASH_CLK_48MHZ                		(_M2PLL_CLK_MHZ/48)
#define _FLASH_CLK_34MHZ                		(_M2PLL_CLK_MHZ/34)
#define _FLASH_CLK_27MHZ                		(_M2PLL_CLK_MHZ/27)




//--------------------------------------------------
// Global Macros
//--------------------------------------------------
#define LOBYTE(w)                       		((BYTE)(w))
#define HIBYTE(w)                       		((BYTE)(((WORD)(w) >> 8) & 0x00FF))
#define SEC(x)                          		(100 * x)
#define SHL(x,y)			    	    		((x) << (y))
#define SHR(x,y)				        		((x) >> (y))
#define AND(n1,n2)  			        		((n1) & (n2))
#define OR(n1,n2)   			        		((n1) | (n2))

//--------------------------------------------------
//            Audio definitions
//--------------------------------------------------
#define _AUDIO_SC7313                0
#define _AUDIO_PWM                   1
#define _AUDIO_NJW1144               2

//--------------------------------------------------
//            PWM definitions
//--------------------------------------------------
#define _RTD_PWM0                    0
#define _RTD_PWM1                    1
#define _RTD_PWM2                    2
#define _RTD_PWM3                    3
#define _RTD_PWM4                    4
#define _RTD_PWM5                    5


//--------------------------------------------------
// Definitions of
//--------------------------------------------------
#define _ANALOG_SOURCE_0               	0
#define _ANALOG_SOURCE_1               	1
#define _DIGISTAL_SOURCE_0              2
#define _DIGISTAL_SOURCE_1              3

#define _DE_ONLY_OFF                    0
#define _DE_ONLY_ON                     1

//--------------------------------------------------
// Definations of Input Port Types
//--------------------------------------------------
/******************************************************************* 
Select V8 input path, please modify following define to change input path.
If you select SV port, we only support,  V0 with V1 or V1 with V2 or V2 with V3.
********************************************************************/
#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 _YPBPR_A0_PORT                  		8
#define _YPBPR_A1_PORT                  		9
#define _VIDEO_YCBCR_PORT               		10
#define _VIDEO_AV_SV_PORT1              		11
#define _VIDEO_SCART_PORT                		12
#define _HDMI_PORT                      		13
#define _DVI_D0_PORT                            14
#define _DVI_D1_PORT                            15
#define _HDMI_D0_PORT                           16
#define _HDMI_D1_PORT                           17


//--------------------------------------------------
// Definitions of AD KEY
//--------------------------------------------------
#define MCU_ADC0                                0
#define MCU_ADC1                                1
#define MCU_ADC2                                2
#define MCU_ADC3                                3
#define MCU_ADC4                                4
#define MCU_ADC_NONE                            255

/*=====================  Extern Variables =================== */
#ifdef _IR_C
    #define EXTERN
#else
    #define EXTERN   extern
#endif

#undef EXTERN

/*======================= Extern Functions ================== */

#endif 

⌨️ 快捷键说明

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