lib.rs 706 B

12345678910111213141516171819202122232425262728
  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.42 and up. It *might*
  6. //! compile with older versions but that may change in any new patch release.
  7. //!
  8. //! # Features
  9. //!
  10. //! This crate provides:
  11. //!
  12. //! - Access to core registers like `mstatus` or `mcause`.
  13. //! - Interrupt manipulation mechanisms.
  14. //! - Wrappers around assembly instructions like `WFI`.
  15. #![no_std]
  16. #![cfg_attr(feature = "inline-asm", feature(asm))]
  17. #![cfg_attr(feature = "inline-asm", feature(asm_const))]
  18. extern crate bare_metal;
  19. extern crate bit_field;
  20. pub mod asm;
  21. pub mod interrupt;
  22. pub mod register;
  23. #[macro_use]
  24. mod macros;