This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Patch for CYGPKG_IO_SERIAL_ARM_LPC2XXX
- From: "Martin Laabs" <martin dot laabs at mailbox dot tu-dresden dot de>
- To: "ecos-devel at ecos dot sourceware dot org" <ecos-devel at ecos dot sourceware dot org>
- Date: Sun, 23 Nov 2008 15:51:09 +0100
- Subject: Re: Patch for CYGPKG_IO_SERIAL_ARM_LPC2XXX
- References: <op.uk02z1bx724k7f@localhost> <20081123135238.GB2813@lunn.ch>
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