public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Interrupt doesn't work witth the new ecos repository. ref: ARME7T board.
@ 2002-07-05 10:28 Qiang Huang
  2002-07-07 22:05 ` Vinayak P Risbud
  0 siblings, 1 reply; 2+ messages in thread
From: Qiang Huang @ 2002-07-05 10:28 UTC (permalink / raw)
  To: Ecos-Discuss (E-mail)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-08  5:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-05 10:28 [ECOS] Interrupt doesn't work witth the new ecos repository. ref: ARME7T board Qiang Huang
2002-07-07 22:05 ` Vinayak P Risbud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).