From be110ed6cc640b513be2330f8bc8c526c626a84c Mon Sep 17 00:00:00 2001 From: Able Date: Mon, 5 Dec 2022 07:46:29 -0600 Subject: [PATCH] add a ps2 driver --- drivers/keyboards/ps2_keyboard/.cargo/config.toml | 2 ++ drivers/keyboards/ps2_keyboard/Cargo.toml | 8 ++++++++ drivers/keyboards/ps2_keyboard/readme.md | 2 ++ drivers/keyboards/ps2_keyboard/src/main.rs | 5 +++++ 4 files changed, 17 insertions(+) create mode 100644 drivers/keyboards/ps2_keyboard/.cargo/config.toml create mode 100644 drivers/keyboards/ps2_keyboard/Cargo.toml create mode 100644 drivers/keyboards/ps2_keyboard/readme.md create mode 100644 drivers/keyboards/ps2_keyboard/src/main.rs diff --git a/drivers/keyboards/ps2_keyboard/.cargo/config.toml b/drivers/keyboards/ps2_keyboard/.cargo/config.toml new file mode 100644 index 0000000..f4e8c00 --- /dev/null +++ b/drivers/keyboards/ps2_keyboard/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +target = "wasm32-unknown-unknown" diff --git a/drivers/keyboards/ps2_keyboard/Cargo.toml b/drivers/keyboards/ps2_keyboard/Cargo.toml new file mode 100644 index 0000000..e1d1949 --- /dev/null +++ b/drivers/keyboards/ps2_keyboard/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "ps2_keyboard" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/drivers/keyboards/ps2_keyboard/readme.md b/drivers/keyboards/ps2_keyboard/readme.md new file mode 100644 index 0000000..01b468d --- /dev/null +++ b/drivers/keyboards/ps2_keyboard/readme.md @@ -0,0 +1,2 @@ + +This driver will take in keyboard scancodes and pass them to a server program that handles translation \ No newline at end of file diff --git a/drivers/keyboards/ps2_keyboard/src/main.rs b/drivers/keyboards/ps2_keyboard/src/main.rs new file mode 100644 index 0000000..7a38836 --- /dev/null +++ b/drivers/keyboards/ps2_keyboard/src/main.rs @@ -0,0 +1,5 @@ +#![no_std] +#![no_main] + +#[no_mangle] +fn start() {}