This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: tty.cdl
On Sun, 27 Mar 2011, Ilija Kocho wrote:
> On 27.03.2011 14:45, Sergei Gavrikov wrote:
> >
> > Hi Ilija,
> >
> > I get it (about your attempting to build the in-lines using CDL), but, I
> > would keep things simpler, i.e. just would add two absent entries for
> > TTY4, TTY5, TTYx in tty.c. Those are conditional definitions depend on
> >
> Adding two additional TTYs is an alternative indeed, it is simple and
> straightforward to implement.
>
> My idea was to make system auto extensible and configurable. I have
> fixed number of TTYs to 6, but as you suggest in your research below it
> could be defined as a variable. HAL could provide an override too. Also
> maintenance may be simpler since we avoid duplicated code?!
Indeed. But, now I think that I gave bad suggest about extension via
environment variable (How to document this "feature"? Who will know
about? It looks like a trick) Ilija, so far, I take a timeout to think
and test your substitutions and I will try to find compromise solution
without the tricks and complex Tcl/CDL expressions.
Sergei