This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Interrupt doesn't work witth the new ecos repository. ref: ARME7T board.
- From: "Qiang Huang" <jameshq at liverpool dot ac dot uk>
- To: "Ecos-Discuss \(E-mail\)" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 5 Jul 2002 18:28:33 +0100
- Subject: [ECOS] Interrupt doesn't work witth the new ecos repository. ref: ARME7T board.
Hi all:
I downloaded the newest ecos repository and try to use external interrupt
for ARM E7T board. it seems it does work as before. Has anyone got such
problem? Thanks a lot!
program attached:
cyg_handle_t ext_IRQ0_H;
cyg_interrupt intr;
cyg_uint32 EXT_IRQ0_handler(cyg_vector_t vector, cyg_addrword_t data)
{
diag_printf("\n EXT_IO ISR!!\n");
cyg_interrupt_acknowledge(vector);
return CYG_ISR_HANDLED;
}
int cyg_user_start(void)
{
// set the Port8 as Ext IRQ0 and enabled
IOPCON = 0x010;
cyg_interrupt_configure(CYGNUM_HAL_INTERRUPT_EXT0,1,0);
cyg_interrupt_unmask(CYGNUM_HAL_INTERRUPT_EXT0);
cyg_interrupt_create(CYGNUM_HAL_INTERRUPT_EXT0,3, 0,
&EXT_IRQ0_handler,NULL, &ext_IRQ0_H, &intr);
cyg_interrupt_attach(ext_IRQ0_H);
cyg_interrupt_enable();
while(1)
{
}
return 0;
}
when the external IO port set high, no interrupt generated.
Thanks a lot
best regards
james
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss