aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-02-24 23:26:09 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2022-02-24 23:26:09 +0000
commitf2feeb2595fe8f281a50d63055c65d6ac064ae11 (patch)
tree27cd5fc7911950d4bdc52cd84bfae24e2207f9f5 /src
parentdb8bea29e61d4659942539f8da7fe4f39c02729f (diff)
downloadcortex-m-f2feeb2595fe8f281a50d63055c65d6ac064ae11.tar.gz
cortex-m-f2feeb2595fe8f281a50d63055c65d6ac064ae11.tar.zst
cortex-m-f2feeb2595fe8f281a50d63055c65d6ac064ae11.zip
Tweaks to enable building and doctesting on host platform
Diffstat (limited to 'src')
-rw-r--r--src/peripheral/mod.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index d1dfb6a..56b663e 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -59,8 +59,6 @@
use core::marker::PhantomData;
use core::ops;
-
-#[cfg(cortex_m)]
use crate::interrupt;
#[cfg(cm7)]
@@ -164,7 +162,6 @@ static mut TAKEN: bool = false;
impl Peripherals {
/// Returns all the core peripherals *once*
- #[cfg(cortex_m)]
#[inline]
pub fn take() -> Option<Self> {
interrupt::free(|_| {