From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4569 invoked by alias); 27 Mar 2011 19:55:46 -0000 Received: (qmail 4560 invoked by uid 22791); 27 Mar 2011 19:55:45 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from tirion.supremecenter202.com (HELO tirion.supremecenter202.com) (209.25.195.243) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Mar 2011 19:55:41 +0000 Received: from [46.217.15.218] (port=58851 helo=[192.168.1.68]) by tirion.supremecenter202.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Q3w3o-0007Pl-6G for ecos-devel@ecos.sourceware.org; Sun, 27 Mar 2011 19:55:40 +0000 Message-ID: <4D8F963A.6050501@siva.com.mk> Date: Sun, 27 Mar 2011 19:55:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: Re: tty.cdl References: <4D8DBE3F.2000708@siva.com.mk> <4D8F2207.7070701@siva.com.mk> <4D8F5BAD.6020708@siva.com.mk> <4D8F9147.10204@siva.com.mk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00032.txt.bz2 On 27.03.2011 21:39, Sergei Gavrikov wrote: > On Sun, 27 Mar 2011, Ilija Kocho wrote: > >> On 27.03.2011 19:11, Sergei Gavrikov wrote: >>> 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. >>> >> Thanks, >> In meantime I have a code that compiles and works. I will post to >> Bugzilla so we can continue there. >> >> Ilija > I was writing the below a few minutes ago > > Ilija, I tried something and I see that your request can be managed with > CDL property 'make' and external Tcl script to generate some kind of > io_serial_tty.inl on a fly like eCos 'heapgen.tcl' generates that > heap.hxx, but I have a doubt about such a "complexity". By other hand > the original tty and termios config files won't to have a mess with > complex scripting as all details can be hidden in the external Tcl > script. Eternal dilemma: Universality vs. Simplicity. I would prefer S. > here (c & p), but, this is my view only. > > I think that you have to create bugzilla report is describing your issue > (=request) without a solution and then we will discuss the ways to > resolve the issue and I hope you will have more hands for that. > Sergei, I started this discussion in order to discuss this issue before I drop any code. Your proposal sounds rational. I shall open a Bug and reference this discussion. Thanks Ilija. > Thank you, > Sergei