Keyboard driver :(

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
Unexpected

Keyboard driver :(

Post by Unexpected »

[attachment deleted by admin]
Unexpected

Re:Keyboard driver :(

Post by Unexpected »

Hey, please help... I don't know whats the problem :(
Tom

Re:Keyboard driver :(

Post by Tom »

ok...here is my code...couldn't find a error with yours....

[url]http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=1819]look here and scroll down to see my code.....

:D
Tom

Re:Keyboard driver :(

Post by Tom »

Did that help?
Whatever5k

Re:Keyboard driver :(

Post by Whatever5k »

By the way, it isn't a good idea to put functions in header files (.h). Code belongs into .c files, prototypes of functions into .h files...
Anyway, the KBD_Key() function doesn't print anything on the screen - it only returns a value. So perphaps the bug is your printf() function or something else...
Tom

Re:Keyboard driver :(

Post by Tom »

I put functions in my header file since I like the C++ style...and soon moving my kernel to C++.
Tom

Re:Keyboard driver :(

Post by Tom »

oh yea...was that My kernel you where talking about?
Tim

Re:Keyboard driver :(

Post by Tim »

You still get the same problems with C++. Header files define the interface to the code, source files define the actual implementation. Headers for prototypes and type definitions, sources for functions.
Unexpected

Re:Keyboard driver :(

Post by Unexpected »

Function perhaps work fine, but I don't understand with IRQ...
I need to set IRQ1 vector to my KBD_Key() function?
Post Reply