aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/scb.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-01-15 19:22:20 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-01-15 19:22:20 +0100
commita8962d44d46ef3c16b3e5fb645fead4731cd2b24 (patch)
treebf76dbf189aec84e4c532ed6ed751693b272124d /src/peripheral/scb.rs
parentd4de1c2d45e64e1c67c115c573a9a0ed1252cd94 (diff)
downloadcortex-m-a8962d44d46ef3c16b3e5fb645fead4731cd2b24.tar.gz
cortex-m-a8962d44d46ef3c16b3e5fb645fead4731cd2b24.tar.zst
cortex-m-a8962d44d46ef3c16b3e5fb645fead4731cd2b24.zip
fixes and make sure the whole documentation is visible on docs.rs
Diffstat (limited to 'src/peripheral/scb.rs')
-rw-r--r--src/peripheral/scb.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/peripheral/scb.rs b/src/peripheral/scb.rs
index 9a922c7..41f3825 100644
--- a/src/peripheral/scb.rs
+++ b/src/peripheral/scb.rs
@@ -2,11 +2,11 @@
use volatile_register::RW;
-#[cfg(any(armv7m, has_fpu))]
+#[cfg(any(armv7m, has_fpu, target_arch = "x86_64"))]
use super::{CBP, SCB};
-#[cfg(armv7m)]
+#[cfg(any(armv7m, target_arch = "x86_64"))]
use super::CPUID;
-#[cfg(armv7m)]
+#[cfg(any(armv7m, target_arch = "x86_64"))]
use super::cpuid::CsselrCacheType;
/// Register block
@@ -108,16 +108,16 @@ impl SCB {
}
}
-#[cfg(armv7m)]
+#[cfg(any(armv7m, target_arch = "x86_64"))]
mod scb_consts {
pub const SCB_CCR_IC_MASK: u32 = (1 << 17);
pub const SCB_CCR_DC_MASK: u32 = (1 << 16);
}
-#[cfg(armv7m)]
+#[cfg(any(armv7m, target_arch = "x86_64"))]
use self::scb_consts::*;
-#[cfg(armv7m)]
+#[cfg(any(armv7m, target_arch = "x86_64"))]
impl SCB {
/// Enables I-Cache if currently disabled
#[inline]