1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! RISC-V platform crate for Drone, an Embedded Operating System.
//!
//! # Supported Cores
//!
//! | Architecture | Core name      | Rust target                    | `riscv_core` config flag |
//! |--------------|----------------|--------------------------------|--------------------------|
//! | RV32IMAC     | Bumblebee Core | `riscv32imac-unknown-none-elf` | `bumblebee`              |
//!
//! Rust target triple and `riscv_core` config flag should be set at the
//! application level according to this table.
//!
//! # Documentation
//!
//! - [Drone Book](https://book.drone-os.com/)
//! - [API documentation](https://api.drone-os.com/drone-riscv/0.14/)
//!
//! # Usage
//!
//! Add the crate to your `Cargo.toml` dependencies:
//!
//! ```toml
//! [dependencies]
//! drone-riscv = { version = "0.14.0", features = [...] }
//! ```
//!
//! Add or extend `std` feature as follows:
//!
//! ```toml
//! [features]
//! std = ["drone-riscv/std"]
//! ```

#![feature(asm)]
#![feature(naked_functions)]
#![feature(never_type)]
#![feature(prelude_import)]
#![warn(missing_docs, unsafe_op_in_unsafe_fn)]
#![warn(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

pub mod processor;
pub mod reg;
pub mod thr;

mod rt;

mod drone_core_macro_reexport {
    pub use drone_core::reg;
}

pub use drone_core_macro_reexport::*;

#[prelude_import]
#[allow(unused_imports)]
use drone_core::prelude::*;