From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25956 invoked by alias); 23 Nov 2008 14:52:08 -0000 Received: (qmail 25923 invoked by uid 22791); 23 Nov 2008 14:52:07 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mailout2.zih.tu-dresden.de (HELO mailout2.zih.tu-dresden.de) (141.30.67.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Nov 2008 14:51:21 +0000 Received: from rmc67-31.zih.tu-dresden.de ([141.30.67.31] helo=server-n) by mailout2.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1L4GIo-0003N0-K7 for ecos-devel@ecos.sourceware.org; Sun, 23 Nov 2008 15:51:10 +0100 Received: from localhost (p5B0EFD1C.dip.t-dialin.net [91.14.253.28]) by server-n (Postfix) with ESMTP id 59968100A08E for ; Sun, 23 Nov 2008 15:51:10 +0100 (CET) Date: Sun, 23 Nov 2008 14:52:00 -0000 To: "ecos-devel@ecos.sourceware.org" Subject: Re: Patch for CYGPKG_IO_SERIAL_ARM_LPC2XXX From: "Martin Laabs" Content-Type: text/plain; charset=iso-8859-1 MIME-Version: 1.0 References: <20081123135238.GB2813@lunn.ch> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20081123135238.GB2813@lunn.ch> User-Agent: Opera Mail/9.51 (Linux) X-TUD-Virus-Scanned: mailout2.zih.tu-dresden.de 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: 2008-11/txt/msg00061.txt.bz2 Hi Andrew, > I extended the patch a little. I added a ChangeLog entry and some CDL > as i suggested to ensure the priorities are different between the > serial ports. Thank you. > However if some other device is using the same priority > this will not be detected. The correct place to fix that is in the > HAL. Humm, interesting. If you have asserts enabled, which you should > when developing, the function hal_interrupt_set_level() has: > > > CYG_ASSERT((reg_val == 0) || (reg_val == (vector | 0x20)), > "Priority already used by another vector"); Yes - this was my starting point. I wonder that nobody else had this error since eCos crashed with the two serial ports enabled. (And IMHO the LPC2XXX serial driver is quite old.) Greetings, Martin