diff options
Diffstat (limited to 'kernel/src/devices/keyboard.c')
| -rw-r--r-- | kernel/src/devices/keyboard.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/src/devices/keyboard.c b/kernel/src/devices/keyboard.c index 0a2e364..73c052c 100644 --- a/kernel/src/devices/keyboard.c +++ b/kernel/src/devices/keyboard.c @@ -15,6 +15,17 @@ bool is_pressed[128]; #define BUFFER_SIZE 10000 stdbuff* keyboard_buffer; +void init_keyboard() +{ +// outb(KEYBOARD_CMD_PORT, 0xF3); +// io_wait(); +// outb(KEYBOARD_DATA_PORT, 0x00); +// io_wait(); +// while (!(inb(KEYBOARD_STATUS_PORT) & 1)) {} +// if (inb(KEYBOARD_DATA_PORT) == 0xFA) +// printf("[keyboard init]\n"); +} + void keyboard_handler() { if (keyboard_buffer == NULL) { |
