public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* LPC2xxx serial driver interrupt priorities
@ 2008-12-24 11:39 Uwe Kindler
  0 siblings, 0 replies; only message in thread
From: Uwe Kindler @ 2008-12-24 11:39 UTC (permalink / raw)
  To: ecos-patches; +Cc: Andrew Lunn

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-24 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-24 11:39 LPC2xxx serial driver interrupt priorities Uwe Kindler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).