aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/mod.rs
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-02-21 19:57:18 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2022-02-24 01:44:11 +0000
commit894f2aabdbd65f85eecf25debc2326f0387863c7 (patch)
treef08ad0ca10df764c5b29549421e874c4c3512bec /src/peripheral/mod.rs
parent9e8dd294b04510d727d50039a7f84292789aed0e (diff)
downloadcortex-m-894f2aabdbd65f85eecf25debc2326f0387863c7.tar.gz
cortex-m-894f2aabdbd65f85eecf25debc2326f0387863c7.tar.zst
cortex-m-894f2aabdbd65f85eecf25debc2326f0387863c7.zip
Remove outlined asm, replace with stable inline asm.
Diffstat (limited to 'src/peripheral/mod.rs')
-rw-r--r--src/peripheral/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index af922b1..d1dfb6a 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -60,6 +60,7 @@
use core::marker::PhantomData;
use core::ops;
+#[cfg(cortex_m)]
use crate::interrupt;
#[cfg(cm7)]
@@ -163,6 +164,7 @@ static mut TAKEN: bool = false;
impl Peripherals {
/// Returns all the core peripherals *once*
+ #[cfg(cortex_m)]
#[inline]
pub fn take() -> Option<Self> {
interrupt::free(|_| {