This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about interrupt service?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: li hui <lhbyron at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 29 Nov 2001 07:01:12 +0000
- Subject: Re: [ECOS] question about interrupt service?
- References: <20011123023829.52779.qmail@web14701.mail.yahoo.com>
li hui wrote:
>
> I try to write a mouse driver for ecos(i386).I meet a
> problem, I can't make my interrupt routine response
> the interrupt.my code is bleow,please give me some
> advice.
>
> #define MOUSE_BASE 0x300
> #define MOUSE_IRQ CYGNUM_HAL_INTERRUPT_COM2 //35
> static cyg_uint32 isr(cyg_vector_t
> vector,cyg_addrword_t data)
> {
> return 1;
> }
You should return CYG_ISR_HANDLED|CYG_ISR_CALL_DSR otherwise your DSR
won't be called.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine