This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
How to handle IRQ0 interrupt?
- From: Neeraja <neeraja dot kothala at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 8 Mar 2007 02:34:26 -0800 (PST)
- Subject: [ECOS] How to handle IRQ0 interrupt?
Hi,
I am working on at91rm9200 board. I want to catch the interrupt when the
button is pressed which is connected to IRQ0 line.
But what is happening is that when I run the application the interrupt isr
is being called always irrespective of the button press.
Can anyone suggest me how to configure so that the interrupt comes only when
the button is pressed ?
Here is the part of the code I am using
interrupt = CYGNUM_HAL_INTERRUPT_IRQ0;
cyg_interrupt_create(interrupt,
0, // Priority - what goes
here?
(cyg_addrword_t)0, // Data item passed to
interrupt handler
(cyg_ISR_t *)IRQ0_isr,
(cyg_DSR_t *)IRQ0_dsr,
&interrupt_handle,
&interrupt_object);
cyg_interrupt_attach(interrupt_handle);
cyg_interrupt_acknowledge(interrupt);
cyg_interrupt_unmask(interrupt);
Thanks,
Neeraja.
--
View this message in context: http://www.nabble.com/How-to-handle-IRQ0-interrupt--tf3368441.html#a9372163
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss