2019-01-24 22:19:32 +08:00
|
|
|
//! Low level access to RISC-V processors
|
2017-09-19 22:04:12 +08:00
|
|
|
//!
|
|
|
|
//! This crate provides:
|
|
|
|
//!
|
|
|
|
//! - Access to core registers like mstatus or mcause.
|
|
|
|
//! - Interrupt manipulation mechanisms.
|
|
|
|
//! - Safe wrappers around assembly instructions like `mret`.
|
|
|
|
|
|
|
|
#![no_std]
|
|
|
|
#![deny(warnings)]
|
2018-12-22 17:32:52 +08:00
|
|
|
#![cfg_attr(feature = "inline-asm", feature(asm))]
|
2017-09-19 22:04:12 +08:00
|
|
|
|
|
|
|
extern crate bare_metal;
|
2018-11-09 22:42:46 +08:00
|
|
|
extern crate bit_field;
|
2017-09-19 22:04:12 +08:00
|
|
|
|
|
|
|
pub mod asm;
|
|
|
|
pub mod interrupt;
|
2018-03-28 02:17:44 +08:00
|
|
|
pub mod register;
|