19 lines
374 B
Rust
19 lines
374 B
Rust
|
//! 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;
|
||
|
|
||
|
pub mod asm;
|
||
|
pub mod csr;
|
||
|
pub mod interrupt;
|