From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32380 invoked by alias); 15 Nov 2007 10:21:22 -0000 Received: (qmail 32371 invoked by uid 22791); 15 Nov 2007 10:21:21 -0000 X-Spam-Status: No, hits=0.4 required=5.0 tests=BAYES_05,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from smtpout09.attiva.biz (HELO smtpout09.attiva.biz) (85.37.16.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 Nov 2007 10:21:14 +0000 Received: from FBCMFE02B20.fbc.local ([192.168.31.245]) by smtpout09.attiva.biz with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Nov 2007 11:21:10 +0100 Received: from tirreno.coeing.it ([87.24.137.193]) by FBCMFE02B20.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Nov 2007 11:21:08 +0100 Received: from [172.28.1.99] (copperbottom.coeing.it [172.28.1.99]) by tirreno.coeing.it (8.13.4/8.13.4) with ESMTP id lAFAL8r9019079; Thu, 15 Nov 2007 11:21:08 +0100 Message-ID: <473C1D9B.9040401@unimore.it> Date: Thu, 15 Nov 2007 10:21:00 -0000 From: Alessandro Valenti User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Thomas_Kl=F6ber?= , ecos-devel@sourceware.org Subject: Re: Masking single interrupts question References: <200711141311.50046.thomas@kdut.de> In-Reply-To: <200711141311.50046.thomas@kdut.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 15 Nov 2007 10:21:08.0834 (UTC) FILETIME=[3D014420:01C82771] Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2007-11/txt/msg00001.txt.bz2 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