4 releases (1 stable)
1.0.1-rc.1 | Aug 3, 2021 |
---|---|
0.1.1-rc.1 | Aug 3, 2021 |
0.1.0 | Aug 3, 2021 |
#46 in #interrupt
7KB
134 lines
x86 UART Serial Logger
Examples
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!");
}
Dependencies
~725KB
~13K SLoC