aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar Stian Eklund <stian.eklund@gmail.com> 2020-04-28 22:11:31 +0200
committerGravatar Stian Eklund <stian.eklund@gmail.com> 2020-04-28 22:11:31 +0200
commitba7496c5bffeb31cc206f24de3c35b6cf7ae962c (patch)
tree04dd19ddf5afd42fbe27516f170fa1d755a69017 /src/lib.rs
parente41b27331c70865b89b5584b13c0b469de30daff (diff)
downloadcortex-m-ba7496c5bffeb31cc206f24de3c35b6cf7ae962c.tar.gz
cortex-m-ba7496c5bffeb31cc206f24de3c35b6cf7ae962c.tar.zst
cortex-m-ba7496c5bffeb31cc206f24de3c35b6cf7ae962c.zip
Use llmv_asm! macro for inline assembly
\ fixes #204 the `asm!` macro will soon be deprecated. This changes all of the `asm!` calls to `llvm_asm!` To my knowledge doing a direct replacement should be fine.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aedb95a..7a641d2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,4 @@
+#![feature(llvm_asm)]
//! Low level access to Cortex-M processors
//!
//! This crate provides:
@@ -12,7 +13,7 @@
//! ## `inline-asm`
//!
//! When this feature is enabled the implementation of all the functions inside the `asm` and
-//! `register` modules use inline assembly (`asm!`) instead of external assembly (FFI into separate
+//! `register` modules use inline assembly (`llvm_asm!`) instead of external assembly (FFI into separate
//! assembly files pre-compiled using `arm-none-eabi-gcc`). The advantages of enabling `inline-asm`
//! are:
//!