//! Standard RISC-V peripherals for embedded systems written in Rust. //! //! ## Features //! //! - `aclint-hal-async`: enables the [`hal_async::delay::DelayNs`] implementation for the ACLINT peripheral. //! This feature relies on external functions that must be provided by the user. See [`hal_async::aclint`] for more information. #![deny(missing_docs)] #![no_std] pub use riscv; // re-export riscv crate to allow macros to use it pub use riscv_pac::result; // re-export the result module pub mod common; // common definitions for all peripherals pub mod hal; // trait implementations for embedded-hal #[cfg(feature = "embedded-hal-async")] pub mod hal_async; // async trait implementations for embedded-hal pub mod macros; // macros for easing the definition of peripherals in PACs pub mod aclint; // ACLINT and CLINT peripherals pub mod plic; // PLIC peripheral