diff options
author | 2022-02-24 23:26:09 +0000 | |
---|---|---|
committer | 2022-02-24 23:26:09 +0000 | |
commit | f2feeb2595fe8f281a50d63055c65d6ac064ae11 (patch) | |
tree | 27cd5fc7911950d4bdc52cd84bfae24e2207f9f5 /src | |
parent | db8bea29e61d4659942539f8da7fe4f39c02729f (diff) | |
download | cortex-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.rs | 3 |
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(|_| { |