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: Why this ps/2 mouse driver doesn't work


Jonathan Larmour wrote:
> 
> "Q. jason" wrote:
> >
> > Hi,every one.
> > Recently I wrote a ps/2 mouse driver for ecos.
> > I had learned that Ps/w mouse can only use IRQ12, so i assign 44 as its vector(12+32), but my mouse driver didn't respond to interrupt(my mouse can work correctly under Microsoft Windows).
> > I have wrote a little auxiliary program to enable me directly writing characters to scteen. And if I placed it in the serial driver's DSR, whenever there was a interrupt, it could print a character(for example: a 'D').
> > But when I placed it in my mouse driver's DSR, it can print nothing.
> > Who can tell me, what's happened to my mouse driver and what can I do?
> 
> Did you return (CYG_ISR_HANDLED|CYG_ISR_CALL_DSR) from the ISR?

Another "obvious" thing is to check you have masked off the interrupt in
the ISR, or acknowledged it, or something else to prevent it happening
again before you really process it. Otherwise you will probably get the
mouse interrupt over and over again.

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]