Crates.io | x86_interrupts |
lib.rs | x86_interrupts |
version | 1.0.1-rc.1 |
source | src |
created_at | 2021-08-03 17:22:55.42129 |
updated_at | 2021-08-03 17:54:07.371059 |
description | A Simple x86 Interrupt Library |
homepage | |
repository | |
max_upload_size | |
id | 431035 |
size | 7,218 |
use x86_interrupts as interrupts;
pub fn main() {
interrupts::initialize().expect("Failed To Init Interrupts");
interrupts::set_irq_handler(1, on_keypress); // IRQ #1: PS2 Keyboard.
}
pub fn on_keypress() {
println!("Key Pressed!");
}