Library or example for HPET? #1395
-
Is there a Rust library or example for using the HPET? I see HPET in ACPI, but idk how to use it.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
No idea if there is a crate for this, but this is what Redox OS does: Parsing the ACPI table and allowing read/writes to the HPET MMIO: https://gitlab.redox-os.org/redox-os/kernel/-/blob/master/src/acpi/hpet.rs?ref_type=heads And the osdev wiki page for HPET in case you didn't see it yet: https://wiki.osdev.org/HPET |
Beta Was this translation helpful? Give feedback.
-
I'm not using the HPET with interrupts, but just as a clock. https://github.com/tsatke/devos/blob/0c818c24e0312c8dea3bf4541c636433bef65379/kernel/src/driver/hpet.rs |
Beta Was this translation helpful? Give feedback.
I'm not using the HPET with interrupts, but just as a clock.
https://github.com/tsatke/devos/blob/0c818c24e0312c8dea3bf4541c636433bef65379/kernel/src/driver/hpet.rs
https://github.com/tsatke/devos/blob/0c818c24e0312c8dea3bf4541c636433bef65379/kernel/src/time/mod.rs