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

📄 config.h

📁 Realtek RTD2523方案的全部源代碼
💻 H
📖 第 1 页 / 共 2 页
字号:
    5,  Y_INC,  VGIP_CTRL_04,       0x00,0x40,
    6,  Y_INC,  SYNC_CTRL_4A,       0x00,0x55,0x20,
    4,  N_INC,  MEAS_HI_52,         0x80,
    0
};

unsigned char code VGA_INI_SOG[]    =   //VGA SOG
{
    5,  Y_INC,  VGIP_CTRL_04,       0x00,0x40,
    6,  Y_INC,  SYNC_CTRL_4A,       0x00,0x57,0x20,
    4,  N_INC,  MEAS_HI_52,         0x80,
    0
};

unsigned char code DVI_INI[]        =   //DVI
{
    5,  Y_INC,  VGIP_CTRL_04,       0x10,0x00 | TMDS_LATCH,
    6,  Y_INC,  SYNC_CTRL_4A,       0x00,0x10,0x00,
    4,  N_INC,  MEAS_HS_LATCH_4E,   TMDS_HS_LATCH,
    4,  N_INC,  ANG_PERFORMANCE2_A3, 0x36,
    4,  N_INC,  TMDS_TEST_MODE1_B3,  0x0f,
    0
};

unsigned char code VIDEO_INI[]      =   //VIDEO
{
    5,  Y_INC,  VGIP_CTRL_04,       0x0c,0x00 | VIDEO_LATCH,
    4,  N_INC,  INT_FLD_DETECT_14,  0x1e,
    6,  Y_INC,  SYNC_CTRL_4A,       0x00,0x10,0x00,
    4,  N_INC,  MEAS_HS_LATCH_4E,   VIDEO_HS_LATCH,
    0
};

unsigned char code VGA_SET_SS[]     =   //VGA SS
{

    4,  N_INC,  VGIP_CTRL_04,       0x00,
    4,  N_INC,  VGIP_SIGINV_05,     0x40,
    5,  Y_INC,  SYNC_CTRL_4A,       0x00,0x14,

    4,  N_INC,  MEAS_HI_52,      0x00,

    0
};

unsigned char code VGA_SET_CS[]     =   //VGA CS
{
//    4,  N_INC,  VGIP_CTRL_04,       0x04,
    4,  N_INC,  VGIP_SIGINV_05,     0x40,
    5,  Y_INC,  SYNC_CTRL_4A,       0x00,0x55,

    4,  N_INC,  MEAS_HI_52,      0x80,

    0
};

unsigned char code VGA_SET_SOG[]    =   //VGA SOG
{
//    4,  N_INC,  VGIP_CTRL_04,       0x04,
    4,  N_INC,  VGIP_SIGINV_05,     0x40,
    5,  Y_INC,  SYNC_CTRL_4A,       0x00,0x57,

    4,  N_INC,  MEAS_HI_52,      0x80,

    0
};


#if(LVDS_TYPE == OUTPUT_BUS)
unsigned char code LVDS_POWERUP[]      =
{
#if(DOUBLE_PORT == DISPLAY_PORT)
     4, N_INC, LVDS_CTRL0_C0,      0xe0,
#else  //LVDS from even port, if from odd port, the below value should be 0xa0
     4, N_INC, LVDS_CTRL0_C0,      0xc0,
#endif

    0
};
unsigned char code LVDS_POWERDOWN[]  =
{
     4, N_INC, LVDS_CTRL0_C0,       0x00,
	 	
     0
};
#endif

/////////////////////////////////////////////////////////////////////////////////////////

unsigned char code Palette_Open[]   =
{
    4,  N_INC,  OVL_LUT_ADDR_6E,    0x80,   // Enable LUT access
    0
};
unsigned char code Palette_Close[]  =
{
    4,  N_INC,  OVL_LUT_ADDR_6E,    0x00,   // Disable LUT access
    0
};

#if (0)

// For OSD animetion

unsigned char code Palette_1[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xa8,     // 0000/0001
                                0x00,0x98,0x00, 0x20,0x60,0x80,     // 0010/0011
                                0x98,0x00,0x00, 0x60,0x00,0x00,     // 0100/0101
                                0x98,0x98,0x00, 0xa8,0xa8,0xa8,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xd8,     // 1000/1001
                                0x00,0xd8,0x00, 0x38,0xd8,0xd8,     // 1010/1011
                                0xd8,0x00,0x00, 0xd8,0x00,0xd8,     // 1100/1101
                                0xd8,0xd8,0x00, 0xd8,0xd8,0xd8,     // 1110/1111
    0
};
unsigned char code Palette_2[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xac,     // 0000/0001
                                0x00,0x9c,0x00, 0x28,0x68,0x88,     // 0010/0011
                                0x9c,0x00,0x00, 0x68,0x08,0x08,     // 0100/0101
                                0x9c,0x9c,0x00, 0xac,0xac,0xac,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xdc,     // 1000/1001
                                0x00,0xdc,0x00, 0x3c,0xdc,0xdc,     // 1010/1011
                                0xdc,0x00,0x00, 0xdc,0x00,0xdc,     // 1100/1101
                                0xdc,0xdc,0x00, 0xdc,0xdc,0xdc,     // 1110/1111
    0
};
unsigned char code Palette_3[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xb0,     // 0000/0001
                                0x00,0xa0,0x00, 0x30,0x70,0x90,     // 0010/0011
                                0xa0,0x00,0x00, 0x70,0x10,0x10,     // 0100/0101
                                0xa0,0xa0,0x00, 0xb0,0xb0,0xb0,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xe0,     // 1000/1001
                                0x00,0xe0,0x00, 0x40,0xe0,0xe0,     // 1010/1011
                                0xe0,0x00,0x00, 0xe0,0x00,0xe0,     // 1100/1101
                                0xe0,0xe0,0x00, 0xe0,0xe0,0xe0,     // 1110/1111
    0
};
unsigned char code Palette_4[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xb8,     // 0000/0001
                                0x00,0xa8,0x00, 0x36,0x76,0x96,     // 0010/0011
                                0xa8,0x00,0x00, 0x74,0x14,0x14,     // 0100/0101
                                0xa8,0xa8,0x00, 0xb8,0xb8,0xb8,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xe8,     // 1000/1001
                                0x00,0xe8,0x00, 0x48,0xe8,0xe8,     // 1010/1011
                                0xe8,0x00,0x00, 0xe8,0x00,0xe8,     // 1100/1101
                                0xe8,0xe8,0x00, 0xe8,0xe8,0xe8,     // 1110/1111
    0
};
unsigned char code Palette_5[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xc0,     // 0000/0001
                                0x00,0xb0,0x00, 0x3c,0x7c,0x9c,     // 0010/0011
                                0xb0,0x00,0x00, 0x78,0x18,0x18,     // 0100/0101
                                0xb0,0xb0,0x00, 0xc0,0xc0,0xc0,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xf0,     // 1000/1001
                                0x00,0xf0,0x00, 0x50,0xf0,0xf0,     // 1010/1011
                                0xf0,0x00,0x00, 0xf0,0x00,0xf0,     // 1100/1101
                                0xf0,0xf0,0x00, 0xf0,0xf0,0xf0,     // 1110/1111
    0
};
unsigned char code Palette_6[]  =
{
    51, N_INC,  OVL_PORT_6F,    0x00,0x00,0x00, 0x00,0x00,0xc8,     // 0000/0001
                                0x00,0xb8,0x00, 0x42,0x82,0xa2,     // 0010/0011
                                0xb8,0x00,0x00, 0x7c,0x1c,0x1c,     // 0100/0101
                                0xb8,0xb8,0x00, 0xc8,0xc8,0xc8,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xf8,     // 1000/1001
                                0x00,0xf8,0x00, 0x58,0xf8,0xf8,     // 1010/1011
                                0xf8,0x00,0x00, 0xf8,0x00,0xf8,     // 1100/1101
                                0xf8,0xf8,0x00, 0xf8,0xf8,0xf8,     // 1110/1111
    0
};

#endif

unsigned char code Palette_7[]  =
{
    51, N_INC,  OVL_PORT_6F,    /*0x00,0x00,0x00, 0x00,0x00,0xd0,     // 0000/0001
                                0x00,0xc0,0x00, 0x48,0x88,0xa8,     // 0010/0011
                                0xc0,0x00,0x00, 0x80,0x20,0x20,     // 0100/0101
                                0xc0,0xc0,0x00, 0xd0,0xd0,0xd0,     // 0110/0111
                                0x00,0x00,0x00, 0x00,0x00,0xff,     // 1000/1001
                                0x00,0xff,0x00, 0x60,0xff,0xff,     // 1010/1011
                                0xff,0x00,0x00, 0xff,0x00,0xff,     // 1100/1101
                                0xff,0xff,0x00, 0xff,0xff,0xff,     // 1110/1111
*/
    0x9F,0xED,0xAB,0xFF,0xFF,0xFF,
    0xFF,0x00,0x00,0x00,0x00,0xFF,
    0x00,0x00,0x00,0xFF,0xFF,0x00,
    0x00,0xFF,0xFF,0xFF,0x00,0xFF,
    0xFF,0x80,0x00,0xC0,0xC0,0xC0,
    0x80,0x80,0x80,0x7A,0xB4,0x81,
    0x56,0xF0,0x6D,0xCD,0xF8,0xD4,
    0x9F,0xED,0xAB,0xB4,0xF1,0xBF,
    0
};


#else   // #else of #ifdef __MAIN__

extern unsigned int code CAP_WIN[][5];
extern unsigned int code ADC_SD_SET[][3];

extern unsigned char code VGA_INI_SS[];
extern unsigned char code VGA_INI_CS[];
extern unsigned char code VGA_INI_SOG[];
extern unsigned char code VIDEO_INI[];
extern unsigned char code DVI_INI[];
extern unsigned char code VGA_SET_SS[];
extern unsigned char code VGA_SET_CS[];
extern unsigned char code VGA_SET_SOG[];
extern unsigned char code LVDS_POWERUP[];
extern unsigned char code LVDS_POWERDOWN[];
extern unsigned char code Palette_Open[];
extern unsigned char code Palette_Close[]; 
extern unsigned char code Palette_1[];
extern unsigned char code Palette_2[];
extern unsigned char code Palette_3[];
extern unsigned char code Palette_4[];
extern unsigned char code Palette_5[];
extern unsigned char code Palette_6[];
extern unsigned char code Palette_7[];
extern unsigned char code DCLK_OFFSET[16];

#endif

⌨️ 快捷键说明

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