This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Masking single interrupts question
- From: Alessandro Valenti <alessandro dot valenti at unimore dot it>
- To: Thomas Klöber <thomas at kdut dot de>, ecos-devel at sourceware dot org
- Date: Thu, 15 Nov 2007 11:21:15 +0100
- Subject: Re: Masking single interrupts question
- References: <200711141311.50046.thomas@kdut.de>
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