-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c496c1
commit a81e344
Showing
4 changed files
with
25 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "cortex-a" | ||
version = "8.1.0" | ||
name = "aarch64-cpu" | ||
version = "9.0.0" | ||
authors = ["Andre Richter <[email protected]>"] | ||
description = "Low level access to Cortex-A processors" | ||
homepage = "https://github.com/rust-embedded/cortex-a" | ||
repository = "https://github.com/rust-embedded/cortex-a" | ||
description = "Low level access to processors using the AArch64 execution state" | ||
homepage = "https://github.com/rust-embedded/aarch64-cpu" | ||
repository = "https://github.com/rust-embedded/aarch64-cpu" | ||
readme = "README.md" | ||
keywords = ["arm", "aarch64", "cortex-a", "register"] | ||
keywords = ["arm", "aarch64", "cpu", "register"] | ||
categories = ["embedded", "hardware-support", "no-std"] | ||
license = "MIT/Apache-2.0" | ||
edition = "2018" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,24 @@ | |
// Author(s): | ||
// - Andre Richter <[email protected]> | ||
|
||
//! Low level access to Cortex-A processors. | ||
//! | ||
//! ## Currently Supported Execution States | ||
//! | ||
//! - [x] AArch64 | ||
//! - [ ] AArch32 | ||
//! Low level access to processors using the AArch64 execution state. | ||
//! | ||
//! ## Minimum Supported Rust Version | ||
//! | ||
//! Requires a recent nightly of Rust. | ||
//! Requires a recent nightly of Rust if the (default) `nightly` feature is enabled. Without this | ||
//! the register access module is not available. | ||
//! | ||
//! ## Usage | ||
//! | ||
//! Please note that for using this crate's [register definitions](src/registers) (as provided by | ||
//! `cortex_a::registers::*`), you need to also include | ||
//! `aarch64_cpu::registers::*`), you need to also include | ||
//! [`tock-registers`](https://crates.io/crates/tock-registers) in your project. This is because the | ||
//! `interface` traits provided by `tock-registers` are implemented by this crate. You should | ||
//! include the same version of `tock-registers` as is being used by this crate to ensure sane | ||
//! interoperatbility. | ||
//! | ||
//! For example, in the following snippet, `X.Y.Z` should be the same version of `tock-registers` | ||
//! that is mentioned in `cortex-a`'s [`Cargo.toml`](Cargo.toml). | ||
//! that is mentioned in `aarch64-cpu`'s [`Cargo.toml`](Cargo.toml#L27). | ||
//! | ||
//! ```toml | ||
//! [package] | ||
|
@@ -36,20 +32,16 @@ | |
//! | ||
//! [dependencies] | ||
//! tock-registers = "X.Y.Z" | ||
//! cortex-a = "A.B.C" # <-- Includes tock-registers itself. | ||
//! aarch64-cpu = "A.B.C" # <-- Includes tock-registers itself. | ||
//! ``` | ||
//! | ||
//! ### Example | ||
//! | ||
//! Check out | ||
//! [rust-raspberrypi-OS-tutorials](https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials) | ||
//! for usage examples. Listed below is a snippet of `rust-raspberrypi-OS-tutorials`'s early boot | ||
//! code. | ||
//! Check out https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials for usage examples. | ||
//! Listed below is a snippet of `rust-raspberrypi-OS-tutorials`'s early boot code. | ||
//! | ||
//! ```rust | ||
//! # #[cfg(feature = "nightly")] | ||
//! use cortex_a::{asm, registers::*}; | ||
//! # #[cfg(feature = "nightly")] | ||
//! use aarch64_cpu::{asm, registers::*}; | ||
//! use tock_registers::interfaces::Writeable; // <-- Trait needed to use `write()` and `set()`. | ||
//! | ||
//! // Some parts omitted for brevity. | ||
|