> From: "Greeen-III" <greeen@iii.org.tw>
> Date: Mon, 12 Mar 2001 09:17:24 +0100 (MET)
> To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
> <linux-mips-request@fnet.fr>
> Subject: Keypad driver!!
>
> Hi all experts,
> I am trying to implement a keypad driver on Linux/MIPS.
> Could Any one explain the keypad work?
> I traced the /drivers/char/keyboard.c.
> It seemed to create a timer interrupt.
> The timer toggle the handle to check the status of the keyboard.
> Right?
>
> But!! How could we know the keypad is pressed?
> The driver didn't need to call request_irq()??
>
> Green
>
> ----- End forwarded message -----
I read keboard.c again, didn't see any timers at all.
Read pc_keyb.c, for example. Interrupts from keyboard are handled there.
Generally, a low level keyboard driver are responsible for it (and
pc_keyb.c is not worse example).
Regards,
Gleb.
|