Keyboard driver :(
Re:Keyboard driver :(
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.....
[url]http://www.mega-tokyo.com/forum/index.php?board=1;action=display;threadid=1819]look here and scroll down to see my code.....
Re:Keyboard driver :(
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...
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...
Re:Keyboard driver :(
I put functions in my header file since I like the C++ style...and soon moving my kernel to C++.
Re:Keyboard driver :(
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.
Re:Keyboard driver :(
Function perhaps work fine, but I don't understand with IRQ...
I need to set IRQ1 vector to my KBD_Key() function?
I need to set IRQ1 vector to my KBD_Key() function?