Re: LCD Driver porting



"guru" <gurunandan.ug@xxxxxxxxx> wrote in
news:1147269643.903786.106220@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

[...]
I am very new to Windows CE. Presently we are trying to port some
custom lcd driver written for nucleus rtos based system to win CE
based system. The problem we are facing is:

1) there is a third party graphics library which provides UI in
case of nucleus based system. We want exactly the same UI in
wince.
2)we want to port the whole software to wince OS based as
we require to add many new features to it for which no support is
provided in basic nucleus rtos.

Now the question which I want to ask is as follows:-

1)Is there any way or API for accessing the lcd device directly
from Win CE so that we can just perform little modification to
present UI library and use it in wince based system?

You can use DirectX to draw directly on the display (in this case
your code will be more portable) or you can remove the Windows CE
graphics, events and windows subsystem (GWES) and replace it with
your own version. In this case you should write your own display
controller "driver" (it could be a driver or part of your UI library)
and use GWES only for input or replace also this part.
As Steve Maillet pointed out, this is a large programming task and
you will lose part of the functionality of Windows CE.
If there is a Windows version of your UI library and you've got the
source code and the rights to modify it, you may try to port it on
Windows CE, without breaking the UI layer of your application and
keeping the features of CE that require GWES.
If you need to customize the appearance of the UI, you can do that on
Windows CE. Check the Networked Media Device feature pack for an
example of how can look a custom UI built on top of Windows CE GWES.

2)Are there any alternate way of accessing control register of LCD
using win CE API?

Alternate to what?
Usually the LCD controller is accessed by the display driver but it's
possible (but only if you don't have a better solution!) to access it
inside an application or a DLL library using APIs to map it's
registers (MMAPIoSpace) and then using them via memory access (ARM)
or I/O (x86).
This kind of UI management could be complicated if you've many
applications trying to access the display at the same time. On CE
this kind of synchronization is provided by GWES.
If you have many processes on your current RT os you may/have to
convert them to threads (you will have to do that if you have more
than 25-30 processes because CE has a limit of 32 processes and
you've to include, at least, the kernel, the device manager and the
filesystem manager and, depending on your device configuration, GWES
and the services manager, and for debug configurations, the debug
shell and the "servers" of the remote tools).

3)Is there standard support for 1/4VGA LCD driver on WinCE? Can we
include the driver for this device using Platform Builder?

The driver in CE is used to control the LCD controller (or graphic
card), not the "display" panel. You need (or have to write) a driver
for your LCD controller and then configure it to work at your desired
resolution and with the timings and data modes needed by your LCD
panel.
If you are going to work on a 240x320 portrait display, window CE
provide a component that will include in your image dialog boxes and
resource that will fit this display). If you're working in 320x240
landscape you may have to "retouch" some of the default dialog boxes
because the default UI is designed for a 640x480 VGA display and some
of the elements don't fit inside a smaller display.

--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.



Relevant Pages

  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... It sure sounds like the display adapter/driver is not set up correctly to ... Maybe the hardware is set up to drive 800x600, but the driver is ... got a black strip at the right side of the LCD ... I've got full 800 pixel wide desktop image when I run Win XP on the ...
    (microsoft.public.windowsce.platbuilder)
  • Re: A black strip on right side of LCD
    ... I am going to check the frequencies tomorrow. ... SBC board can drive a CRT and an LCD at the same time. ... the CPU will spend time to run two display drivers to drive them seperately. ... This is driver dependent. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Video Mode 13h in windows XP ... impossible?
    ... >> but this goes a bit deeper and needs hardware specific routines, ... I was thinking.Would it be possible to install a driver ... > windows to record anything send to the Nvidia driver and from the ... of any reason why it couldn't work...basically, write a display device ...
    (alt.lang.asm)
  • Re: HELP: BIG "Display" PROBLEM
    ... In the device manager window that appears double click on display ... Right click on the video driver and choose uninstall. ... Now reboot into normal mode and windows will reinstall the video ... I cannot get access to windows in normal mode. ...
    (microsoft.public.windowsxp.general)
  • display resolution and huge windows
    ... Fonts in general became unacceptably large on windows XP re-instal, ... I re-installed the display driver and the chip driver, ... I have to reset the display resolution every start-up as I cannot find ...
    (microsoft.public.windowsxp.device_driver.dev)

Loading