aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Hugues de Valon <hugues.devalon@arm.com> 2020-01-14 11:38:34 +0000
committerGravatar Hugues de Valon <hugues.devalon@arm.com> 2020-03-02 09:06:34 +0000
commit2bbfd8c976fed21e24865618b0a9975d9ab542c4 (patch)
tree453957fade88692549fbbc40ffb1639ae2036398 /src/lib.rs
parent72befe4c163e59393789d3043afe1e67a7fc0044 (diff)
downloadcortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.tar.gz
cortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.tar.zst
cortex-m-2bbfd8c976fed21e24865618b0a9975d9ab542c4.zip
Initial Rust CMSE support
Armv8-M and Armv8.1-M architecture profiles have an optional Security Extension which provides a set of Security features. This patch adds initial support of the Cortex-M Security Extensions but providing support for the TT intrinsics and helper functions on top of it in the newly added cmse module of this crate. The code is a Rust idiomatic implementation of the C requirements described in this document: https://developer.arm.com/docs/ecm0359818/latest Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f8b5606..beaecd2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,6 +57,8 @@ extern crate volatile_register;
mod macros;
pub mod asm;
+#[cfg(armv8m)]
+pub mod cmse;
pub mod interrupt;
#[cfg(not(armv6m))]
pub mod itm;