This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about interrupt service?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]