lib.rs 765 B

123456789101112131415161718192021222324252627
  1. //! Low level access to RISC-V processors
  2. //!
  3. //! # Minimum Supported Rust Version (MSRV)
  4. //!
  5. //! This crate is guaranteed to compile on stable Rust 1.30 and up. It *might*
  6. //! compile with older versions but that may change in any new patch release.
  7. //! Note that `riscv64imac-unknown-none-elf` and `riscv64gc-unknown-none-elf` targets
  8. //! are not supported on stable yet.
  9. //!
  10. //! # Features
  11. //!
  12. //! This crate provides:
  13. //!
  14. //! - Access to core registers like `mstatus` or `mcause`.
  15. //! - Interrupt manipulation mechanisms.
  16. //! - Wrappers around assembly instructions like `WFI`.
  17. #![no_std]
  18. #![deny(warnings)]
  19. #![cfg_attr(feature = "inline-asm", feature(asm))]
  20. extern crate bare_metal;
  21. extern crate bit_field;
  22. pub mod asm;
  23. pub mod interrupt;
  24. pub mod register;