/* Configure waveform parameters according to the timing of LCD panel.  */
static void setup_panel_params(lcdif_sync_waveform_t *syncWave)
/* Configure waveform parameters according to the timing of LCD panel.  */
static void setup_panel_params(lcdif_sync_waveform_t *syncWave)
{
    syncWave->frameWidth = WVGA_FW;
    syncWave->frameHeight = WVGA_FH;
    syncWave->enPresent = 1;
    syncWave->dotclkPol = 1;
    syncWave->hsyncPol = 0;
    syncWave->vSyncPol = 0;
    syncWave->enablePol = 1;
    syncWave->vSyncPeriodUnit = 1;
    syncWave->vSyncPulseUnit = 1;
    syncWave->vSyncPulseWidth = 10;
    syncWave->vSyncPeriod = 523;
    syncWave->hSyncPulseWidth = 10;
    syncWave->hSyncPeriod = 1063;
    syncWave->hWaitCount = 99;
    syncWave->vWaitCount = 33;
    syncWave->hValidDataCount = 800;
}