asterinas/kernel/comps/keyboard/src/lib.rs

19 lines
356 B
Rust

// SPDX-License-Identifier: MPL-2.0
//! Handle keyboard input.
#![no_std]
#![deny(unsafe_code)]
extern crate alloc;
use component::{init_component, ComponentInitError};
#[cfg(target_arch = "x86_64")]
mod i8042_chip;
#[init_component]
fn init() -> Result<(), ComponentInitError> {
#[cfg(target_arch = "x86_64")]
i8042_chip::init();
Ok(())
}