From f2feeb2595fe8f281a50d63055c65d6ac064ae11 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Thu, 24 Feb 2022 23:26:09 +0000 Subject: Tweaks to enable building and doctesting on host platform --- src/peripheral/mod.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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 { interrupt::free(|_| { -- cgit v1.2.3