public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Hitach H8S interrupt handling.
@ 2003-09-19 17:22 Uwe Kindler
  0 siblings, 0 replies; only message in thread
From: Uwe Kindler @ 2003-09-19 17:22 UTC (permalink / raw)
  To: ecos-discuss

Hello,

i'm currently porting eCos for the EDOSK 2674 board from Hitachi and have a
question about interrupt handling.
If the Hitachi H8S microcontroller works in interrupt control mode 2, then
an enhanced interrupt priority management is possible. If an interrupt
occures then only the interrupt level of this interrupt and all lower
interrupt levels (there are 8 different interrupt levels) are masked
immediatelly after the interrupt occurence.
That means interrupt nesting can happen if interrupts with a higher priority
level occur immediatelly after the current interrupt.

I read the "Default Interrupt Handling" part of the eCos Reference Manual
carefully and in point 5 is written:
"Re-enable interrupts to permit nesting". But I did not found anything about
disabling interrupts before.
So this is my question: If an interrupt occures, should i disable all
interrupts as fast as possible and re-enable higher priority interrupts
according to the manual. Or what is the best way to treat 8 different
interrupt levels?

Thank you very much and best regards,

Uwe Kindler


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

only message in thread, other threads:[~2003-09-19 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-19 17:22 [ECOS] Hitach H8S interrupt handling 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).