This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Enable EDB7xxx interrupts
- To: "'Gary Thomas'" <gthomas at cambridge dot redhat dot com>
- Subject: RE: [ECOS] Enable EDB7xxx interrupts
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Mon, 25 Jun 2001 12:48:41 -0600
- Cc: "'Lewin A.R.W. Edwards'" <larwe at larwe dot com>,"'eCos discussion'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
>
> Did you use the create_interrupt() mechanism to attach to
> this interrupt? If not, the system will see it, treat it as
> spurious and simply clear and ignore it.
I do the following in cyg_user_start ()
cyg_interrupt_enable ();
cyg_interrupt_create (CYGNUM_HAL_INTERRUPT_EINT1, 99, 0,
InterruptHandler, 0, &hIntr, &intr);
cyg_interrupt_attach (hIntr);
cyg_interrupt_acknowledge(CYGNUM_HAL_INTERRUPT_EINT1);
cyg_interrupt_unmask(CYGNUM_HAL_INTERRUPT_EINT1);
Inside InterruptHandler () I do the following
cyg_interrupt_mask (CYGNUM_HAL_INTERRUPT_EINT1);
cyg_interrupt_acknowledge (CYGNUM_HAL_INTERRUPT_EINT1);
printf ("Interrupt Occured");
cyg_interrupt_unmask (CYGNUM_HAL_INTERRUPT_EINT1);
Then I have a thread that continuously prints out the PCMCIA controller
interrupt information.
Anyhow, the printf () in the interrupt handler never occurs. What could
be wrong?