2017-09-19 22:04:12 +08:00
|
|
|
//! Low level access to RISCV processors
|
|
|
|
//!
|
|
|
|
//! 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)]
|
|
|
|
#![feature(asm)]
|
|
|
|
#![feature(const_fn)]
|
|
|
|
|
|
|
|
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;
|