aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripheral/mod.rs')
-rw-r--r--src/peripheral/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs
index 1b21bc5..e210c79 100644
--- a/src/peripheral/mod.rs
+++ b/src/peripheral/mod.rs
@@ -104,12 +104,16 @@ pub struct Cpuid {
pub isar: [RO<u32>; 5],
reserved1: u32,
/// Cache Level ID
+ #[cfg(armv7m)]
pub clidr: RO<u32>,
/// Cache Type
+ #[cfg(armv7m)]
pub ctr: RO<u32>,
/// Cache Size ID
+ #[cfg(armv7m)]
pub ccsidr: RO<u32>,
/// Cache Size Selection
+ #[cfg(armv7m)]
pub csselr: RW<u32>,
}