Driver needed

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
System Halted

Driver needed

Post by System Halted »

Hello. I am looking for a keyboard driver writing tutorial i really need help with this.

Thanks--
Adek336

RE:Driver needed

Post by Adek336 »

pmode yes? try polling port 0x60. It returns scan codes, in example ESC has 0x01. I think you can test if an event has happened by polling port 0x64 for something.

You can also make a kbd interrupt, that is IRQ 1. The handler has to inportb(0x60) and outportb(0x20, 0x20) to work. PIC programming will also be needed.

google search "osdev keyboard" gives me for example: http://osdev.neopages.net/docs/wout_kbd.php

cheers,
Adrian
Post Reply