mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 12:24:37 +03:00
lesson 20, keyboard
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
#include "../cpu/isr.h"
|
||||
#include "../cpu/timer.h"
|
||||
#include "../drivers/keyboard.h"
|
||||
|
||||
void main() {
|
||||
isr_install();
|
||||
|
||||
asm volatile("sti");
|
||||
init_timer(50);
|
||||
// init_timer(50);
|
||||
/* Comment out the timer IRQ handler to read
|
||||
* the keyboard IRQs easier */
|
||||
init_keyboard();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user