public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Masking single interrupts question
@ 2007-11-14 12:12 Thomas Klöber
  2007-11-15 10:21 ` Alessandro Valenti
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Klöber @ 2007-11-14 12:12 UTC (permalink / raw)
  To: ecos-devel

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

Hello,

I am porting eCos to the Infineon Tricore TC1796 and have a question regarding 
the HAL_INTERRUPT_MASK / -UNMASK macros.

On the TC1796, each of up to 181 active interrupt sources must be assigned a 
priority (1-255), which also defines its vector number. Single interrupts 
only can be disabled by the corresponding source, not by priority level. 
Unfortunately, there is also no (simple) way, to find out, which source 
actually is set to a given priority.

eCos, on the other hand, expects interrupts to be maskable by their vector 
number, so what can I do, to accomplish this?

Thanks in advance & regards,

Thomas

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Masking single interrupts question
  2007-11-14 12:12 Masking single interrupts question Thomas Klöber
@ 2007-11-15 10:21 ` Alessandro Valenti
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Valenti @ 2007-11-15 10:21 UTC (permalink / raw)
  To: Thomas Klöber, ecos-devel

Do you plan to use, into your application, a run-time customized 
interrupt prioritization?
If not, you can insert a 1:1 mapping of all of 181 sources into 181 
different priority levels and use a biunivoc mapping table.

Bye,
Alessandro.

Thomas Klöber wrote:
> Hello,
> 
> I am porting eCos to the Infineon Tricore TC1796 and have a question regarding 
> the HAL_INTERRUPT_MASK / -UNMASK macros.
> 
> On the TC1796, each of up to 181 active interrupt sources must be assigned a 
> priority (1-255), which also defines its vector number. Single interrupts 
> only can be disabled by the corresponding source, not by priority level. 
> Unfortunately, there is also no (simple) way, to find out, which source 
> actually is set to a given priority.
> 
> eCos, on the other hand, expects interrupts to be maskable by their vector 
> number, so what can I do, to accomplish this?
> 
> Thanks in advance & regards,
> 
> Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-15 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 12:12 Masking single interrupts question Thomas Klöber
2007-11-15 10:21 ` Alessandro Valenti

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).