This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
LPC2xxx serial driver interrupt priorities
- From: Uwe Kindler <uwe_kindler at web dot de>
- To: ecos-patches at sourceware dot org
- Cc: Andrew Lunn <andrew at lunn dot ch>
- Date: Wed, 24 Dec 2008 12:38:26 +0100
- Subject: LPC2xxx serial driver interrupt priorities
Hello Andrew,
I saw that you patched the LPC2xxx serial driver interrupt priorities.
You defined the legal range for interrupt priority from 0 - 15. But the
LPC2xxx variants support interrupt priorities in the range 0 - 16. The
priorities 0 - 15 define vectored interrupts and the priority 16 defines
unvectored interrupts. Have a look at the LPC2xxx CAN driver or the
LPC2xxx interrupt handling code. I introduced the vectored interrupt
support.
In my opinion the safest way is to set the priority to 16 because all
interrupts may use this priority. If you use vectored interrupts then
there will always be a danger that you use a priority that is already in
use. So maybe interrupt priority 16 is the safer configuration value
here. If the user knows its application very well he may raise the
interrupt priority later.
The newer LPC2xxx variants like LPC24xx do only support vectored
interrupts. Therefore the LPC24xx serial driver supports interrupts in
the range from 0 to 15.
Regards and merry christmas,
Dipl. Inf. (FH)
Uwe Kindler
Software Engineering
--
cetoni GmbH
Am Wiesenring 6
D-07554 Korbussen
Tel.: +49 (0) 36602 338 28
Fax: +49 (0) 36602 338 11
uwe.kindler@cetoni.de
www.cetoni.de