[ECOS] question about interrupt service?
Tue Nov 20 20:16:00 GMT 2001
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
> #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.
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
More information about the Ecos-discuss