From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3860 invoked by alias); 15 Dec 2005 13:55:09 -0000 Received: (qmail 3850 invoked by uid 22791); 15 Dec 2005 13:55:08 -0000 X-Spam-Check-By: sourceware.org Received: from xproxy.gmail.com (HELO xproxy.gmail.com) (66.249.82.198) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 15 Dec 2005 13:55:06 +0000 Received: by xproxy.gmail.com with SMTP id s8so288398wxc for ; Thu, 15 Dec 2005 05:55:04 -0800 (PST) Received: by 10.70.87.10 with SMTP id k10mr2715851wxb; Thu, 15 Dec 2005 05:55:00 -0800 (PST) Received: by 10.70.26.1 with HTTP; Thu, 15 Dec 2005 05:55:00 -0800 (PST) Message-ID: Date: Thu, 15 Dec 2005 13:55:00 -0000 From: Alluitz To: ecos-discuss@ecos.sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Triggering interrupt on the mpc5200 running eCos X-SW-Source: 2005-12/txt/msg00066.txt.bz2 Hello, I don=B4t speak English well and I don=B4t know if I have understood your message correctly. We are not working with the same board, but in our case interrupt pending register is 1 only when we push the button and interruption haven=B4t been yet. It is 1 since you push the button until interruption is done. We don=B4t understand well what does CYG_INTERRUPT_ATTACH. To configure interrupt detecting method, you can use cyg_interrupt_configur= e. Best regard, Alluitz 2005/12/15, Boni Jean : > hi everybody! > > i am working with the boa5200 evaluation board, which has an mpc5200 chip= on > it. > i want an interrupt to be triggered, once i pull external pin /IRQ2 down > low. > I created an interrupt with the cyg_interrupt_create function, using the > vector > number 27 (from #define CYGNUM_HAL_INTERRUPT_IRQ2 which i found in > cyg/hal/var_intr.h). > I set the right bits in the Mpc5200's register MPC5XXX_ICTL_EENAB (in > cyg/hal/mpc5xxx). > The main problem is that i am not able to attach the interrupt to the glo= bal > interrupt > vector, using the cyg_interrupt_attach command. From debugging, i see that > the attach() > command calls the HAL_INTERRUPT_SET_LEVEL macro from intr.cxx > (in ecos/packages/kernel/current/src/intr.cxx). From there, it jumps to t= he > EMPTY function > cyg_hal_interrupt_set_level in var_intr.c (in > ecos/packages/hal/powerpc/mpc5xxx/current/src/var_intr.c). > It then jumps back to the macro HAL_INTERRUPT_IN_USE in the intr.cxx > function, then to the > macro HAL_INTERRUPT_ATTACH in intr.cxx, but nothing more is done. > I also checked out the mpc5200 register Main Interrupt Status All Registe= r, > but > it does not indicate any pending interrupt, which means that the interrupt > has not been > attached. > please, HELP!!!! > > -John- > > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss