|
你没有用Source insight 建工程吗?
可以直接在下面改:
LDI_ERROR LDI_fill_output_device_information(void *pDevInfo)
{
LDI_ERROR error = LDI_SUCCESS;
tDevInfo *pDeviceInfo;
LDI_MSG((_T("[LDI]++LDI_fill_output_device_information()\n\r")));
if (pDevInfo == NULL)
{
LDI_ERR((_T("[LDI:ERR] LDI_fill_output_device_information() : Null Parameter\n\r")));
error = DISP_ERROR_NULL_PARAMETER;
goto CleanUp;
}
pDeviceInfo = (tDevInfo *)pDevInfo;
switch(g_ModuleType)
{
case LDI_HUA350_RGB:
LDI_INF((_T("[LDI:INF] Output Devce Type [%d] = LDI_HUA350_RGB\n\r"), g_ModuleType));
pDeviceInfo->RGBOutMode = DISP_16BIT_RGB565_P;
pDeviceInfo->uiWidth = 320;
pDeviceInfo->uiHeight = 240;
pDeviceInfo->VBPD_Value = 14;
pDeviceInfo->VFPD_Value = 6;
pDeviceInfo->VSPW_Value = 3;
pDeviceInfo->HBPD_Value = 37;
pDeviceInfo->HFPD_Value = 19;
pDeviceInfo->HSPW_Value = 29;
pDeviceInfo->VCLK_Polarity = IVCLK_RISE_EDGE;
pDeviceInfo->HSYNC_Polarity = IHSYNC_HIGH_ACTIVE;
pDeviceInfo->VSYNC_Polarity = IVSYNC_HIGH_ACTIVE;
pDeviceInfo->VDEN_Polarity = IVDEN_HIGH_ACTIVE;
pDeviceInfo->PNR_Mode = PNRMODE_RGB_P;
pDeviceInfo->VCLK_Source = CLKSEL_F_LCDCLK;
pDeviceInfo->VCLK_Direction = CLKDIR_DIVIDED;
pDeviceInfo->Frame_Rate = 60;
break;
} |
|