This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Lcd support
- From: Gary Thomas <gary at mlbassoc dot com>
- To: "Ramiro C. Carvalho" <ramiro dot carvalho at uol dot com dot br>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 07 Nov 2005 16:41:24 -0700
- Subject: Re: [ECOS] Lcd support
- References: <038301c5e3f0$66528f30$966562c8@homeuser>
On Mon, 2005-11-07 at 21:10 -0200, Ramiro C. Carvalho wrote:
> Hi everybody.
>
> I was thinking about the best way to have support for the lcd in my target
> and then i took a look at some implementations in the repository.
>
> To my surprise, the implementations do not handle the lcd as a device, i
> mean, there is nothing like \ecos\packages\devs\lcd on the repository.
>
> What i could see are modules that export lcd specific routines and,
> sometimes, even including implementations of printf in the form of
> "lcd_printf". This is the case of AAED2000 target.
>
> My intention was to create a device, something like \dev\lcd0 and have the
> CHAR_DEVIO_TABLE and CHAR_DEVTAB_ENTRY structures for it filled with
> pointers to my lcd support routines. By doing so, i could set up the default
> console to this device and so everything the can print on stdout could
> automatically use the lcd (and so i would be taking credit of the ecos
> printf implementation).
>
> Does it make sense in terms of ECOS architecture? Why it was not done like
> this for some targets?
Most of the targets do support the LCD as a standard "debug" device
(i.e. you can configure diag_printf() to use it, RedBoot can use it,
etc). There wasn't much desire to extend this to a "serial"-like device
as you suggest as the effort was put into providing graphic interfaces.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss