Hi Ismael,
I am just going through the process of changing the display driver to suit my own display too. We are using a different type of 800x480 display (7”) which operates in Data Enable Only Mode (does not use HSYNC or VSYNC).
The display driver for WCE is in two parts. A basic driver in Eboot code to display the splash image and a secondary driver for windows CE to control. You will need to change both places.
For example the display driver code for eboot is in C:\WINCE600\PLATFORM\iMX28-EVK-PDK1_9\SRC\BOOTLOADER\COMMON\display.c
This code is responsible for putting the splash screen image on the display.
In this file you will find similar #defines at the top BUT watch out because the #defines for the screen resolution are not actually used by the code!!
I.e. at the top of display.c you will find:
#define DOTCLK_H_ACTIVE 800
#define DOTCLK_V_ACTIVE 480
Later in the function ConfigurePanel() you find:
LCDIFSetTransferCount(800,480);
So the #defines are not used here for some reason – they used direct values. You would need to change this too.
You may also need to adjust your display timings to ensure your vsync/hsync pulses are correct (if used) and your Data Enable blanking times are correct for the display you are using. Take a look at this document I found for more info, it is on a different processor so has different driver code, but good read to get the principles:
http://www.freescale.com/files/dsp/doc/app_note/AN4041.pdf
Hope this helps,
Mark